<div dir="ltr"><span class="" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;border-spacing:0px;font-size:medium">I've got my install of Nagios setup with the <a href="http://check_wmi_plus.pl">check_wmi_plus.pl</a> 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.<br>
<br>For example, I have the following defined as a command:<br><br>define command{<br>command_name check_win_disk<br>command_line $USER6$/<a href="http://check_wmi_plus.pl">check_wmi_plus.pl</a> -H $HOSTADDRESS$ -m checkdrivesize -u $USER8$ -p $USER9$ -a $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$ $ARG5$<br>
}<br><br>and the following as a service:<br><br>define service{<br>       use                     windows_service<br>       service_description     Disk Space<br>       host_name               host-name-here<br>       check_command check_win_disk!.!75%<br>
}<br><br>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).<br>
<br>Any ideas?  Thanks!<br><br>Nathan</span><br></div>