Check_WMI

nag ios nagiostool at gmail.com
Mon Jul 11 08:44:56 CEST 2011


Hi this is krishna,
                           I am trying to use check_wmi.pl script to get the
data from windows PC and to display the information through nagios in web
browser.I have added the following lines in localhost.cfg

define service{
          use local-service
          host_name localhost
          service_description checkcpu
          check_command check_wmi!checkcpu!c!70!80
          }


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$
         }


In the web i got the information as

check_wmi -H HOSTNAME -u DOMAIN/USER -p PASSWORD -m
<checkdrivesize|checkcpu|checkmem|checkeventlog|checkservice> [-a
"arguments, see below"] [-w value for warning] [-c value for critical]

When i added the above two definition's(service and command) i didn't get
any error when checked through

/usr/local/nagios/bin nagios -v /usr/local/nagios/etc/nagios.cfg

But the required information is not reflecting in the web browser

Can anyone help me....???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110711/7f1c801d/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- 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