Is this critical or not for Nagios?

Andreas Koch a.koch at eurodata.de
Mon Jun 14 10:30:17 CEST 2004


Hi,

nagios handel the exit-code from the check script.

if your check script end with the exit-code 2, the nagios say is it
critical.

The Text who nagios give out is your coment. -> You can exit with
exit-code 2, but print OK. Than the nagios-server set the check to red
and write OK

Exit-code

0 - ok
1 - Warning
2 - Critical
3 - Unknown
4 - Dependent

Andreas

Am Mo, den 14.06.2004 schrieb Gürhan Koçak um 9:39:
> Hi all,
> 
> I prepared a script to return description of the queried slot with its
> temperature for Redback BRAS devices. Everything seems to be ok, but Nagios
> does not think the service is critical although the return value is as the
> following?
> 
> Slot Temperature  OK 14-06-2004 10:23:18 2d 17h 56m 25s 1/3 SNMP CRITICAL -
> *38* Temperature sensor on slot 2  
> 
> How can I make Nagios to see this service is critical? Is the format or
> content of the return value is wrong?
> 
> Kind regards.
> 
> Gurhan Kocak
> System Support Engineer
> Alcatel Teletas
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the new InstallShield X.
> >From Windows to Linux, servers to mobile, InstallShield X is the
> one installation-authoring solution that does it all. Learn more and
> evaluate today! http://www.installshield.com/Dev2Dev/0504
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list