[Nagiosplug-help] Nagios not registering "Critical" | "Warning" statuses.

socomm socomm at crowbar.cc
Fri Feb 18 02:19:55 CET 2011


I'm having a small problem where Nagios is not registering the status of
critical or warning when I run a check. In this instance I am using the
check_nt plug-in, and when ran manually I get exit code of 2 which,
according to the Nagios API doc
(http://nagios.sourceforge.net/docs/3_0/pluginapi.html) should be treated
as a critical 
status:


-------------------------

[COMMAND]
su - nagios
/usr/lib64/nagios/plugins/check_nt -H windows_host -p 12489 -v
USEDDISKSPACE -w 80% -c 90% -l S; printf "\n$?\n";

[OUTPUT]
S:\ - total: 894.99 Gb - used: 855.89 Gb (96%) - free 39.10 Gb (4%) | 'S:\
Used Space'=855.89Gb;716.00;805.49;0.00;894.99

2

[CONFIGURATION]

define command {
        command_name    check_nt_larg
        command_line   /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$'
-p 12489 -v '$ARG1$' -l '$ARG2$'
}


define service {
    use                     generic-service
    hostgroup_name          check-ntsdisk
    service_description     S:\ Disk Space
    check_command           check_nt_larg!USEDDISKSPACE!S!-w 80%% -c 90%%
    notification_interval   15
    }

-------------------------

Nagios web interface shows "Status" as "Ok" and "Status information" as
"S: - total: 894.99 Gb - used: 855.92 Gb (96%) - free 39.07 Gb (4%)" -
exact same information we got when we ran the check_nt plug-in manually
with the exception that the exit code some how did not register as an
error.

I've not had any problems since I first installed Nagios, and am lost as
to where to begin troubleshooting this problem.

All replies are greatly appreciated.




More information about the Help mailing list