<font size=2 face="sans-serif">Please list your local-service template,
Probably in templates.cfg...</font>
<br>
<br><font size=2 face="sans-serif">And the definition of  your localhost
( I need to see the IP of it).</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 10:21 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:    
   </font><font size=1 face="sans-serif">Re: [Nagios-users]
Antwort: Check_WMI</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>This is the service in localhost.cfg file</font>
<br><font size=3> </font>
<br><font size=3 color=#c20000>define service{<br>
          use local-service<br>
          host_name localhost<br>
          service_description
checkcpu<br>
          check_command check_wmi!checkcpu!c!70!80<br>
          }</font>
<p><font size=3> </font>
<p><font size=3 color=#c20000>And i'm checking the windows host details
do i need to add this is windows.cfg file?????</font>
<br><font size=3><br>
</font>
<br><font size=3>On Mon, Jul 11, 2011 at 12:43 PM, <</font><a href=mailto:Radu.Popa@technomatic.de><font size=3 color=blue><u>Radu.Popa@technomatic.de</u></font></a><font size=3>>
wrote:</font>
<br><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><font size=3> <br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Von:        </font><font size=1 face="sans-serif">nag
ios <</font><a href=mailto:nagiostool@gmail.com target=_blank><font size=1 color=blue face="sans-serif"><u>nagiostool@gmail.com</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
An:        </font><font size=1 face="sans-serif">Nagios
Users List <</font><a href="mailto:nagios-users@lists.sourceforge.net" target=_blank><font size=1 color=blue face="sans-serif"><u>nagios-users@lists.sourceforge.net</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Datum:        </font><font size=1 face="sans-serif">07/11/2011
09:46 AM</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Betreff:        </font><font size=1 face="sans-serif">[Nagios-users]
Check_WMI</font><font size=3> <br>
</font>
<hr noshade>
<br><font size=3><br>
<br>
<br>
Hi this is krishna, <br>
                          
I am trying to use </font><a href=http://check_wmi.pl/ target=_blank><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
<br>
  </font><font size=3 color=#006000><br>
define service{</font><font size=3> </font><font size=3 color=#006000><br>
          use local-service</font><font size=3>
</font><font size=3 color=#006000><br>
          host_name localhost</font><font size=3>
</font><font size=3 color=#006000><br>
          service_description
checkcpu</font><font size=3> </font><font size=3 color=#006000><br>
          check_command check_wmi!checkcpu!c!70!80</font><font size=3>
</font><font size=3 color=#006000><br>
          }</font><font size=3>
<br>
  <br>
  <br>
In the command.cfg file i have added the following lines <br>
  </font><font size=3 color=#006000><br>
define command{</font><font size=3> </font><font size=3 color=#006000><br>
          command_name check_wmi</font><font size=3>
</font><font size=3 color=#006000><br>
          command_line   
$USER1$/</font><a href=http://check_wmi.pl/ target=_blank><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><font size=3>
</font><font size=3 color=#006000><br>
         }</font><font size=3>
<br>
  <br>
  <br>
In the web i got the information as <br>
  </font><font size=3 color=red face="Courier New"><br>
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><font size=3> <br>
  </font><font size=3 face="Courier New"><br>
When i added the above two definition's(service and command) i didn't get
any error when checked through </font><font size=3><br>
  </font><font size=3 face="Courier New"><br>
/usr/local/nagios/bin nagios -v /usr/local/nagios/etc/nagios.cfg</font><font size=3>
<br>
  </font><font size=3 color=red face="Courier New"><br>
But the required information is not reflecting in the web browser</font><font size=3>
<br>
  </font>
<br><font size=3 color=#00a000 face="Courier New">Can anyone help me....???</font><tt><font size=2>------------------------------------------------------------------------------
</font></tt>
<br><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.</font></tt>
<br><a href="http://p.sf.net/sfu/splunk-d2d-c2" target=_blank><tt><font size=2 color=blue><u>http://p.sf.net/sfu/splunk-d2d-c2</u></font></tt></a><tt><font size=2>_______________________________________________<br>
Nagios-users mailing list</font></tt><tt><font size=2 color=blue><u><br>
</u></font></tt><a href="mailto:Nagios-users@lists.sourceforge.net" target=_blank><tt><font size=2 color=blue><u>Nagios-users@lists.sourceforge.net</u></font></tt></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target=_blank><tt><font size=2 color=blue><u>https://lists.sourceforge.net/lists/listinfo/nagios-users</u></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><font size=3>
</font>
<br><font size=3><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.</font><font size=3 color=blue><u><br>
</u></font><a href="http://p.sf.net/sfu/splunk-d2d-c2" target=_blank><font size=3 color=blue><u>http://p.sf.net/sfu/splunk-d2d-c2</u></font></a><font size=3><br>
_______________________________________________<br>
Nagios-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:Nagios-users@lists.sourceforge.net"><font size=3 color=blue><u>Nagios-users@lists.sourceforge.net</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target=_blank><font size=3 color=blue><u>https://lists.sourceforge.net/lists/listinfo/nagios-users</u></font></a><font size=3><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>
<br><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>