Re: Integrating Monit alerts in ServiceNow

Lutz Mader <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
Hello Victor,
I don't know the reason, the command will not executed.
But it seems to me the used monit is an old version.

>> check program ntp-status with path /opt/vsd/sysmon/ntpStatus.sh
>>     if status != 0 then exec /usr/local/monit/scripts/snowfail
>>         else if succeeded then exec /usr/local/monit/
>> scripts/snowsuccess
>>     group check

Based on monit version 5.21.0 and 5.25.2 your sample should work.

> I also tested it manually and the status is 0 if it succeeded and 1 if
> failed:
> Program 'ntp-status'                Status failed
> Process 'mysql'                     Running
> Program 'mysql-status'              Status ok

This is an old monit version.

No idea what's going wrong,
Lutz


-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.