Nagios 1.1 bug - external commands

Sergio Freire sergio-s-freire at ptinovacao.pt
Wed Jul 9 12:39:58 CEST 2003


Hi Ethan.
Sorry for bothering but im having problems with Nagios 1.1 and external
commands. This wasnt happening with Nagios 1.0. I have submited with
success external commands using the nagios.cmd file, they appear in the
log, but sometimes they are not processed. For example, if i submit two
external commands, one saying that a service is in warning state and the
other that it is OK, although both appear in /var/log/messages sometimes
just the first generates a SERVICE ALERT and calls an event handler.
I have looked at CVS and i read something about external commands
bugfix... my question is if this bugfix will solve my problem and if so,
can i apply a quick patch in Nagios 1.1  to fix this? If this isnt
linear, should i downgrade to version 1.0?
If you want some logs, please find them bellow (see service SMS_IA on
host bill and you can see that the SERVICE ALERT just occurs once).
Best regards,
Sergio Freire










[root at bill1 etc]# cat /var/log/messages| grep "Jul  9 02:00" | grep
nagios
Jul  9 02:00:02 bill1 nagios: Warning: The results of service 'RATE_IO'
on host 'bill2' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:00:02 bill1 nagios: Warning: The results of service 'GWUCP_SM'
on host 'fsk' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:00:02 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;bill1;SMS_OO;3;SMS_OO OK
Jul  9 02:00:02 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;bill1;SMS_IA;3;SMS_IA OK
Jul  9 02:00:17 bill1 nagios: Warning: The results of service 'CORE_IO'
on host 'core' are stale by 3 seconds (threshold=47 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:00:17 bill1 nagios: Warning: The results of service
'GWFSK_TTS' on host 'fsk' are stale by 5 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:00:17 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;bill1;SMS_OO;0;SMS_OO STOP
Jul  9 02:00:22 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;bill1;SMS_IA;0;SMS_IA STOP
Jul  9 02:00:27 bill1 nagios: Warning: The results of service
'SMS_OO_IO' on host 'bill2' are stale by 5 seconds (threshold=45
seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:00:27 bill1 nagios: Warning: The results of service
'GWFSK_IVR' on host 'fsk' are stale by 5 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:00:27 bill1 nagios: Warning: The results of service 'GWUCP_IO'
on host 'fsk' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:00:37 bill1 nagios: SERVICE ALERT:
sva2;PING;WARNING;HARD;1;PING WARNING - Packet loss = 40%, RTA = 12.55
ms
Jul  9 02:00:37 bill1 nagios: SERVICE EVENT HANDLER:
sva2;PING;WARNING;HARD;1;handler_smsc
Jul  9 02:00:37 bill1 nagios: Warning: The results of service
'SMS_IA_IO' on host 'bill1' are stale by 5 seconds (threshold=45
seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:00:37 bill1 nagios: Warning: The results of service 'BOASV_IO'
on host 'bill2' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:00:37 bill1 nagios: Warning: The results of service 'CORE_IO'
on host 'core_timor' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:00:47 bill1 nagios: SERVICE ALERT:
core;CORE_IO;OK;HARD;3;Status is OK
Jul  9 02:00:47 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;OK;HARD;3;handler_smsc
Jul  9 02:00:48 bill1 nagios: SERVICE ALERT:
sva;PING;WARNING;HARD;1;PING WARNING - Packet loss = 20%, RTA = 21.58 ms
Jul  9 02:00:48 bill1 nagios: SERVICE EVENT HANDLER:
sva;PING;WARNING;HARD;1;handler_smsc
Jul  9 02:00:57 bill1 nagios: Warning: The results of service 'GWFSK_IO'
on host 'fsk' are stale by 25 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.

Jul  9 02:01:07 bill1 nagios: SERVICE ALERT: sva2;PING;OK;HARD;1;PING OK
- Packet loss = 0%, RTA = 15.20 ms
Jul  9 02:01:07 bill1 nagios: SERVICE EVENT HANDLER:
sva2;PING;OK;HARD;1;handler_smsc
Jul  9 02:01:07 bill1 nagios: Warning: The results of service 'CORE_IO'
on host 'core' are stale by 4 seconds (threshold=46 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:07 bill1 nagios: Warning: The results of service
'GWFSK_TTS' on host 'fsk' are stale by 5 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:01:17 bill1 nagios: SERVICE ALERT: sva;PING;OK;HARD;1;PING OK
- Packet loss = 0%, RTA = 18.90 ms
Jul  9 02:01:17 bill1 nagios: SERVICE EVENT HANDLER:
sva;PING;OK;HARD;1;handler_smsc
Jul  9 02:01:17 bill1 nagios: Warning: The results of service 'BOASV_IO'
on host 'bill1' are stale by 45 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:17 bill1 nagios: Warning: The results of service
'SMS_OO_IO' on host 'bill1' are stale by 45 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:01:17 bill1 nagios: Warning: The results of service
'SMS_OO_IO' on host 'bill2' are stale by 5 seconds (threshold=45
seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:17 bill1 nagios: Warning: The results of service
'GWFSK_IVR' on host 'fsk' are stale by 5 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:01:17 bill1 nagios: Warning: The results of service 'GWUCP_IO'
on host 'fsk' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:27 bill1 nagios: Warning: The results of service
'SMS_IA_IO' on host 'bill1' are stale by 5 seconds (threshold=45
seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:27 bill1 nagios: Warning: The results of service 'BOASV_IO'
on host 'bill2' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:27 bill1 nagios: Warning: The results of service 'RATE_IO'
on host 'bill2' are stale by 40 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:27 bill1 nagios: Warning: The results of service 'CORE_IO'
on host 'core_timor' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:27 bill1 nagios: Warning: The results of service 'GWUCP_SM'
on host 'fsk' are stale by 40 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:47 bill1 nagios: Warning: The results of service 'GWFSK_IO'
on host 'fsk' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:47 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;core;CORE_IO;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:01:57 bill1 nagios: Warning: The results of service 'RATE_IO'
on host 'bill1' are stale by 85 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:01:57 bill1 nagios: Warning: The results of service
'SMS_IA_IO' on host 'bill2' are stale by 85 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:01:57 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;core;CORE_IO;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:07 bill1 nagios: SERVICE ALERT:
core;CORE_IO;CRITICAL;SOFT;1;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:07 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;CRITICAL;SOFT;1;handler_smsc
Jul  9 02:02:07 bill1 nagios: SERVICE ALERT:
core;CORE_IO;CRITICAL;SOFT;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:07 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;CRITICAL;SOFT;2;handler_smsc
Jul  9 02:02:07 bill1 nagios: SERVICE ALERT:
core;CORE_IO;CRITICAL;HARD;3;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:07 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;CRITICAL;HARD;3;handler_smsc
Jul  9 02:02:07 bill1 nagios: Warning: The results of service 'BOASV_IO'
on host 'bill1' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:02:07 bill1 nagios: Warning: The results of service
'GWFSK_IVR' on host 'fsk' are stale by 5 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:02:17 bill1 nagios: Warning: The results of service 'RATE_IO'
on host 'bill2' are stale by 4 seconds (threshold=46 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:02:27 bill1 nagios: Warning: The results of service
'SMS_OO_IO' on host 'bill1' are stale by 25 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:02:27 bill1 nagios: Warning: The results of service
'SMS_OO_IO' on host 'bill2' are stale by 25 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:02:27 bill1 nagios: Warning: The results of service 'GWUCP_IO'
on host 'fsk' are stale by 23 seconds (threshold=46 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:02:32 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;core;CORE_IO;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:42 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;core;CORE_IO;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:47 bill1 nagios: SERVICE ALERT:
sva;PING;WARNING;HARD;1;PING WARNING - Packet loss = 20%, RTA = 10.66 ms
Jul  9 02:02:47 bill1 nagios: SERVICE EVENT HANDLER:
sva;PING;WARNING;HARD;1;handler_smsc
Jul  9 02:02:47 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;core;CORE_IO;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:47 bill1 nagios: Warning: The results of service 'RATE_IO'
on host 'bill1' are stale by 4 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:02:47 bill1 nagios: Warning: The results of service
'SMS_IA_IO' on host 'bill2' are stale by 4 seconds (threshold=45
seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:02:47 bill1 nagios: Warning: The results of service
'GWFSK_TTS' on host 'fsk' are stale by 55 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:02:57 bill1 nagios: SERVICE ALERT:
core;CORE_IO;OK;HARD;3;Status is OK
Jul  9 02:02:57 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;OK;HARD;3;handler_smsc
Jul  9 02:02:58 bill1 nagios: SERVICE ALERT:
core;CORE_IO;CRITICAL;SOFT;1;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:58 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;CRITICAL;SOFT;1;handler_smsc
Jul  9 02:02:58 bill1 nagios: SERVICE ALERT:
core;CORE_IO;CRITICAL;SOFT;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:58 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;CRITICAL;SOFT;2;handler_smsc
Jul  9 02:02:58 bill1 nagios: SERVICE ALERT:
core;CORE_IO;CRITICAL;HARD;3;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:02:58 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;CRITICAL;HARD;3;handler_smsc
Jul  9 02:02:59 bill1 nagios: SERVICE ALERT:
bill1;SMS_OO;UNKNOWN;HARD;1;SMS_OO OK
Jul  9 02:02:59 bill1 nagios: SERVICE EVENT HANDLER:
bill1;SMS_OO;UNKNOWN;HARD;1;handler_smsc

Jul  9 02:03:00 bill1 nagios: SERVICE ALERT:
bill1;SMS_IA;UNKNOWN;HARD;1;SMS_IA OK
Jul  9 02:03:00 bill1 nagios: SERVICE EVENT HANDLER:
bill1;SMS_IA;UNKNOWN;HARD;1;handler_smsc
Jul  9 02:03:01 bill1 nagios: Warning: The results of service 'BOASV_IO'
on host 'bill1' are stale by 9 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:01 bill1 nagios: Warning: The results of service
'SMS_IA_IO' on host 'bill1' are stale by 49 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:03:01 bill1 nagios: Warning: The results of service 'BOASV_IO'
on host 'bill2' are stale by 49 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:01 bill1 nagios: Warning: The results of service 'CORE_IO'
on host 'core' are stale by 24 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:01 bill1 nagios: Warning: The results of service 'CORE_IO'
on host 'core_timor' are stale by 49 seconds (threshold=45 seconds).
I'm forcing an immediate check of the service.
Jul  9 02:03:01 bill1 nagios: Warning: The results of service 'GWFSK_IO'
on host 'fsk' are stale by 29 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:01 bill1 nagios: Warning: The results of service
'GWFSK_IVR' on host 'fsk' are stale by 9 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:03:01 bill1 nagios: Warning: The results of service 'GWUCP_SM'
on host 'fsk' are stale by 49 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:07 bill1 nagios: Warning: The results of service 'RATE_IO'
on host 'bill2' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:07 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;core;CORE_IO;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:03:17 bill1 nagios: Warning: The results of service
'SMS_OO_IO' on host 'bill1' are stale by 1 seconds (threshold=49
seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:17 bill1 nagios: Warning: The results of service
'SMS_OO_IO' on host 'bill2' are stale by 1 seconds (threshold=49
seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:17 bill1 nagios: Warning: The results of service 'GWUCP_IO'
on host 'fsk' are stale by 1 seconds (threshold=49 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:17 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;core;CORE_IO;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:03:27 bill1 nagios: SERVICE ALERT: sva;PING;OK;HARD;1;PING OK
- Packet loss = 0%, RTA = 12.23 ms
Jul  9 02:03:27 bill1 nagios: SERVICE EVENT HANDLER:
sva;PING;OK;HARD;1;handler_smsc
Jul  9 02:03:28 bill1 nagios: SERVICE ALERT:
core;CORE_IO;OK;HARD;3;Status is OK
Jul  9 02:03:28 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;OK;HARD;3;handler_smsc
Jul  9 02:03:29 bill1 nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;core;CORE_IO;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:03:29 bill1 nagios: SERVICE ALERT:
core;CORE_IO;CRITICAL;SOFT;1;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:03:29 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;CRITICAL;SOFT;1;handler_smsc
Jul  9 02:03:29 bill1 nagios: SERVICE ALERT:
core;CORE_IO;CRITICAL;SOFT;2;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:03:29 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;CRITICAL;SOFT;2;handler_smsc
Jul  9 02:03:29 bill1 nagios: SERVICE ALERT:
core;CORE_IO;CRITICAL;HARD;3;CORE IOERROR cant read file
/home/timor/spool/7/17/2003070412050300_6707230937_6707238395_0C_00.sm,0
Jul  9 02:03:29 bill1 nagios: SERVICE EVENT HANDLER:
core;CORE_IO;CRITICAL;HARD;3;handler_smsc
Jul  9 02:03:37 bill1 nagios: Warning: The results of service 'RATE_IO'
on host 'bill1' are stale by 5 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:37 bill1 nagios: Warning: The results of service
'SMS_IA_IO' on host 'bill2' are stale by 5 seconds (threshold=45
seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:37 bill1 nagios: Warning: The results of service
'GWFSK_TTS' on host 'fsk' are stale by 5 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:03:47 bill1 nagios: Warning: The results of service 'BOASV_IO'
on host 'bill1' are stale by 1 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:47 bill1 nagios: Warning: The results of service
'SMS_IA_IO' on host 'bill1' are stale by 1 seconds (threshold=45
seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:47 bill1 nagios: Warning: The results of service 'BOASV_IO'
on host 'bill2' are stale by 1 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:47 bill1 nagios: Warning: The results of service 'CORE_IO'
on host 'core_timor' are stale by 1 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:47 bill1 nagios: Warning: The results of service 'GWFSK_IO'
on host 'fsk' are stale by 1 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:47 bill1 nagios: Warning: The results of service
'GWFSK_IVR' on host 'fsk' are stale by 1 seconds (threshold=45
seconds).  I'm forcing an immediate check of the service.
Jul  9 02:03:47 bill1 nagios: Warning: The results of service 'GWUCP_SM'
on host 'fsk' are stale by 1 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.
Jul  9 02:03:57 bill1 nagios: Warning: The results of service 'RATE_IO'
on host 'bill2' are stale by 4 seconds (threshold=45 seconds).  I'm
forcing an immediate check of the service.




-- 
========================================
Sérgio Freire
PT Inovação, SA
Tel: +351 234 403609
e-mail: sergio-s-freire at ptinovacao.pt
Jabber: sergio at im.ptinovacao.pt
ICQ: 49658099
----------------------------------------



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps




More information about the Developers mailing list