It worked when i changed it and in the service definition i  have added

check_command           check_wmi!checkcpu!70!80!

and when i'm checking the service its showing the error as

Error:Service Status Not Found!

but

On Mon, Jul 11, 2011 at 12:31 PM, David Wilkinson <
nagios-us...@noroutetohost.net> wrote:

> **
> On 11/07/11 07:44, nag ios wrote:
>
>
> In the command.cfg file i have added the following lines
>
> define command{
>           command_name check_wmi
>           command_line    $USER1$/check_wmi.pl -H hostname -u
> domainname/user -p password -w $ARG1$ -c $ARG2$
>          }
>
>
>
> Hi
>
> Try changing the command to the following
>
>
> command_line    $USER1$/check_wmi.pl -H hostname -u domainname/user -p
> password -w $ARG1$ -c $ARG2$ -m $ARG0$
>
>
> as checkcpu is not passed to the check
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Nagios-users mailing list
> Nagios-users@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
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to