NAGIOS does not register "Critical" | "Warning" status.

socomm socomm at crowbar.cc
Tue Feb 22 02:02:28 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.

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
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