[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Integrating Monit alerts in ServiceNow
From: |
Lutz Mader |
Subject: |
Re: Integrating Monit alerts in ServiceNow |
Date: |
Sat, 22 Sep 2018 12:42:00 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
Hello Victor,
check your "monit.log" file.
> For some reason is not
I don't know what's going wrong. As long as the "ntpStatus.sh" ended
with "exit 1" (or any other value from 1 to 255) your script should be
called.
check program ntp-status with path /usr/local/monit/scripts/script.sh
if status !=0 then exec "/usr/local/monit/scripts/env.sh"
#if status != 0 then alert
group check
I find the following in my "monit.log" file.
[CEST Sep 22 12:25:43] info : 'ntp-status' status succeeded (0) --
program test script for ntp-status
MONIT_SERVICE=ntp-status
:
[CEST Sep 22 12:27:14] error : 'ntp-status' status failed (44) --
program test script for ntp-status
MONIT_SERVICE=ntp-status
[CEST Sep 22 12:27:14] info : 'ntp-status' exec:
'/usr/local/monit/scripts/env.sh'
:
[CEST Sep 22 12:27:44] info : 'ntp-status' status succeeded (0) --
program test script for ntp-status
MONIT_SERVICE=ntp-status
Have a nice weekend,
Lutz