Nagios 1.3 (CVS) - CGI Output Error


#1

Hi,

i’ve created a custom plugin, to monitor the temperature of our LAN switches.

The plugin produces the following output:
TEMP OK - 30 Degrees
TEMP WARNING - 40 Degrees
TEMP CRITICAL - 50 Degrees

The plugin produces the correct output, and this is shown in
the Status Information field in the STATUS.CGI view

however, when the status is WARN / CRIT, the status remains
OK (GREEN)… It doesn’t show yellow (WARN) / red (CRIT)

Any ideas what went wrong ??

Regards,

Erik


#2

compare your script to others, and you will see that you missed a if then else somewhere in your logic.