<div>It worked when i changed it and in the service definition i have added</div>
<div> </div>
<div><font color="#009900">check_command check_wmi!checkcpu!70!80!</font></div>
<div> </div>
<div>and when i'm checking the service its showing the error as </div>
<div> </div>
<div><font color="#ff0000">Error:Service Status Not Found!</font></div>
<div> </div>
<div>but <br><br></div>
<div class="gmail_quote">On Mon, Jul 11, 2011 at 12:31 PM, David Wilkinson <span dir="ltr"><<a href="mailto:nagios-users@noroutetohost.net">nagios-users@noroutetohost.net</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><u></u>
<div text="#000000" bgcolor="#ffffff">
<div class="im">On 11/07/11 07:44, nag ios wrote:
<blockquote type="cite"><br>
<div>In the command.cfg file i have added the following lines</div>
<div> </div>
<div><font color="#006600">define command{</font></div>
<div><font color="#006600"> command_name check_wmi</font></div>
<div><font color="#006600"> command_line $USER1$/<a href="http://check_wmi.pl/" target="_blank">check_wmi.pl</a> -H hostname -u domainname/user -p password -w $ARG1$ -c $ARG2$</font></div>
<div><font color="#006600"> }</font></div></blockquote><br><br></div>Hi<br><br><font color="#000000">Try changing the command to the following<br><br><br></font><font color="#000000">command_line $USER1$/<a href="http://check_wmi.pl/" target="_blank">check_wmi.pl</a> -H hostname -u domainname/user -p password -w $ARG1$ -c $ARG2$ </font><font color="#000000">-m </font><font color="#000000">$ARG0$<br>
<br><br>as </font><font color="#000000">checkcpu is not passed</font><font color="#006600"><font color="#000000"> to the check</font></font><br></div><br>------------------------------------------------------------------------------<br>
All of the data generated in your IT infrastructure is seriously valuable.<br>Why? It contains a definitive record of application performance, security<br>threats, fraudulent activity, and more. Splunk takes this data and makes<br>
sense of it. IT sense. And common sense.<br><a href="http://p.sf.net/sfu/splunk-d2d-c2" target="_blank">http://p.sf.net/sfu/splunk-d2d-c2</a><br>_______________________________________________<br>Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>