Antwort: Check_WMI

Radu.Popa at technomatic.de Radu.Popa at technomatic.de
Mon Jul 11 09:13:40 CEST 2011


Please post your localhost and local-service definitions. If localhost is 
the linux host then you have no chance getting the wmi info.



Von:    nag ios <nagiostool at gmail.com>
An:     Nagios Users List <nagios-users at lists.sourceforge.net>
Datum:  07/11/2011 09:46 AM
Betreff:        [Nagios-users] Check_WMI



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