Imagine the script run from crontab/windows task scheduler.
How to monitor if this script was actually fired up and than ended? Please note, that this check cannot assume that the script itself will send such notification (using zabbix_sender) to Zabbix. Because of when it will not run it will not send any info.
I need to check if it was actually run (possible reasons why it could fail: scheduler failure, permissions changed, script was renamed/deleted etc).
One idea is to set value to some item in the script at the start and end and check if this item was actually set a value during the period of the scheduled run (at the beginning and end). If nothing would be changed then something went wrong. But it is a bit weird especially at the end, because I have to calculate when the script finishes. It is quite problematic.
To use other words: I need a watchdog for this script but using Zabbix only.
Any better ideas?
Regards
P.
How to monitor if this script was actually fired up and than ended? Please note, that this check cannot assume that the script itself will send such notification (using zabbix_sender) to Zabbix. Because of when it will not run it will not send any info.
I need to check if it was actually run (possible reasons why it could fail: scheduler failure, permissions changed, script was renamed/deleted etc).
One idea is to set value to some item in the script at the start and end and check if this item was actually set a value during the period of the scheduled run (at the beginning and end). If nothing would be changed then something went wrong. But it is a bit weird especially at the end, because I have to calculate when the script finishes. It is quite problematic.
To use other words: I need a watchdog for this script but using Zabbix only.
Any better ideas?
Regards
P.
Comment