Commit Graph

14 Commits

Author SHA1 Message Date
b983b9e953 feat(monitor): Introduce monitor.hook.sh and update version to 1.3.1 2025-10-06 09:49:43 +02:00
bb0531aeea feat(monitor): Add HANA statement queue monitoring
This commit introduces a new feature to monitor the HANA statement queue.

Added STATEMENT_QUEUE_THRESHOLD and STATEMENT_QUEUE_CONSECUTIVE_RUNS to monitor/monitor.conf.
Implemented logic in monitor/monitor.sh to query the statement queue length, track consecutive breaches of the defined threshold, and send notifications.
Updated the script version to 1.3.0.
Refactored log segment checks to only run when segments are found.
2025-10-01 13:10:57 +02:00
6b2132a7ab feat(monitor): Bump version to 1.2.3 and refactor notification logic
Updated monitor/monitor.sh to version 1.2.3.
Removed the redundant else block in the send_notification_if_changed() function in monitor/monitor.sh as it provided no functional change.
Updated the "Monitor Suite" version in packages.conf to 1.2.3 to reflect the script update.
2025-09-25 18:44:59 +02:00
2549ccf250 feat: Remove verbose "state unchanged" messages and bump version to 1.2.2 2025-09-25 18:42:43 +02:00
e083c5b749 fix(monitor): Remove 'local' from global variables and bump version to 1.2.1
Removed incorrect 'local' keyword from global variable declarations in monitor/monitor.sh as it's only valid within functions. Updated version to 1.2.1 in monitor/monitor.sh and packages.conf.
2025-09-25 18:38:41 +02:00
eeb5b2eb7b feat(monitor): Implement state-based notifications to prevent alert spam
Introduces state management to 'monitor.sh' to send notifications only when a monitored status changes (e.g., from healthy to alert, or alert to resolved). This prevents repetitive alerts for persistent issues. Creates a 'monitor_state' directory for tracking. Updates script version to 1.2.0.
2025-09-25 18:34:40 +02:00
a6150467e5 fix(monitor): Correct hdbsql command in backup monitoring
Fixes an issue in 'monitor.sh' where the HANA backup monitoring used incorrect variable names ('HANA_USERKEY' instead of 'HANA_USER_KEY') and did not explicitly use the configured 'HDBSQL_PATH' for the 'hdbsql' command. Updates script version to 1.1.1.
2025-09-25 18:33:58 +02:00
2424d55426 feat(monitor): Add HANA data backup age monitoring
Introduces a new monitoring check in 'monitor.sh' to verify the age of the last successful SAP HANA data backup. Alerts are sent if the backup age exceeds a configurable 'BACKUP_THRESHOLD_HOURS'. Updates script version to 1.1.0.
2025-09-25 18:33:49 +02:00
bb4b4ab5d5 update monitor, echo errors to stderr 2025-09-24 18:04:14 +02:00
c800c20f1b update monitor, sapcontrol as configurable path 2025-09-24 18:01:59 +02:00
01c1c6e2f6 update monitor, hide curl output 2025-09-24 17:31:02 +02:00
817fc83763 fix monitor 2025-09-24 17:14:48 +02:00
781c4654e5 fix monitor 2025-09-24 17:06:33 +02:00
32eb49f890 add monitoring 2025-09-24 15:18:26 +02:00