Help With Nagios & WMI

Nathan Mace nathan4linux at gmail.com
Tue Aug 13 04:14:20 CEST 2013


I've got my install of Nagios setup with the check_wmi_plus.pl script.  I
can successfully call the script with manually entered parameters just fine
and query whatever I need to via WMI but I am having trouble getting that
to translate into anything in Nagios.

For example, I have the following defined as a command:

define command{
command_name check_win_disk
command_line $USER6$/check_wmi_plus.pl -H $HOSTADDRESS$ -m checkdrivesize
-u $USER8$ -p $USER9$ -a $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$ $ARG5$
}

and the following as a service:

define service{
       use                     windows_service
       service_description     Disk Space
       host_name               host-name-here
       check_command check_win_disk!.!75%
}

And that works as I expect.  It reports the used/free space of all the
local disks with a warning at 75%.  However anything I do try to add a
critical wanting at 85% results in Nagios throwing an error the next time
the service tries to query the disk space (NOT an error when Nagios tries
to read the config file).

Any ideas?  Thanks!

Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130812/91283559/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
-------------- next part --------------
_______________________________________________
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