<font size=2 face="sans-serif">Please post your localhost and local-service
definitions. If localhost is the linux host then you have no chance getting
the wmi info.</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:      
 </font><font size=1 face="sans-serif">nag ios <nagiostool@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:      
 </font><font size=1 face="sans-serif">Nagios Users List <nagios-users@lists.sourceforge.net></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:      
 </font><font size=1 face="sans-serif">07/11/2011 09:46 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:    
   </font><font size=1 face="sans-serif">[Nagios-users]
Check_WMI</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Hi this is krishna,</font>
<br><font size=3>                          
I am trying to use </font><a href=http://check_wmi.pl/><font size=3 color=blue><u>check_wmi.pl</u></font></a><font size=3>
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
</font>
<br><font size=3> </font>
<br><font size=3 color=#006000>define service{</font>
<br><font size=3 color=#006000>         
use local-service</font>
<br><font size=3 color=#006000>          host_name
localhost</font>
<br><font size=3 color=#006000>          service_description
checkcpu</font>
<br><font size=3 color=#006000>         
check_command check_wmi!checkcpu!c!70!80</font>
<br><font size=3 color=#006000>         
}</font>
<br><font size=3> </font>
<br><font size=3> </font>
<br><font size=3>In the command.cfg file i have added the following lines</font>
<br><font size=3> </font>
<br><font size=3 color=#006000>define command{</font>
<br><font size=3 color=#006000>         
command_name check_wmi</font>
<br><font size=3 color=#006000>         
command_line    $USER1$/</font><a href=http://check_wmi.pl/><font size=3 color=blue><u>check_wmi.pl</u></font></a><font size=3 color=#006000>
-H hostname -u domainname/user -p password -w $ARG1$ -c $ARG2$</font>
<br><font size=3 color=#006000>        
}</font>
<br><font size=3> </font>
<br><font size=3> </font>
<br><font size=3>In the web i got the information as </font>
<br><font size=3> </font>
<br><font size=3 color=red face="Courier New">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]</font>
<br><font size=3> </font>
<br><font size=3 face="Courier New">When i added the above two definition's(service
and command) i didn't get any error when checked through </font>
<br><font size=3> </font>
<br><font size=3 face="Courier New">/usr/local/nagios/bin nagios -v /usr/local/nagios/etc/nagios.cfg</font>
<br><font size=3> </font>
<br><font size=3 color=red face="Courier New">But the required information
is not reflecting in the web browser</font>
<br><font size=3> </font>
<br><font size=3 color=#00a000 face="Courier New">Can anyone help me....???</font><tt><font size=2>------------------------------------------------------------------------------<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>
</font></tt><a href="http://p.sf.net/sfu/splunk-d2d-c2"><tt><font size=2>http://p.sf.net/sfu/splunk-d2d-c2</font></tt></a><tt><font size=2>_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
</font></tt><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"><tt><font size=2>https://lists.sourceforge.net/lists/listinfo/nagios-users</font></tt></a><tt><font size=2><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</font></tt>
<br>