Nagios Windows Check_NT

Albrecht Dreß albrecht.dress at arcor.de
Tue Dec 21 19:52:45 CET 2010


Am 21.12.10 18:08 schrieb(en) Andrew Fay:
> Check_NT is not playing ball, when it is scanning services it is coming
> up with :
[snipped description]

The following works for me in the commands.cfg...

<snip>
# 'check_nt' command definition
define command{
         command_name    check_nt
         command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
         }
</snip>

...and the xp machine's config:

<snip>
define service{
         use                     hourly-service
         host_name               winxp-05, winxp-06
         service_description     C:\ Drive Space
         check_command           check_nt!USEDDISKSPACE!-l C -w 80 -c 90
}
</snip>

The NSC.ini file on the xp boxes looks as follows (comments stripped):

<snip>
connand_time
[modules]
CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
NRPEListener.dll
SysTray.dll
CheckEventLog.dll
CheckHelpers.dll
CheckWMI.dll
[Settings]
allowed_hosts=<set your server's ip here>/32
use_file=1
[log]
debug=0
file=C:\Programme\NSClient++\NSC.log
[NSClient]
[NRPE]
command_timeout=300
allow_arguments=1
allow_nasty_meta_chars=1
[Check System]
[External Script]
command_timeout=300
[External Scripts]
[External Alias]
[NSCA Agent]
[NSCA Commands]
[NRPE Handlers]
command[check_win_updates]=c:\\windows\\system32\\cscript.exe //NoLogo //T:300 C:\\Programme\\NSClient++\\plugins\\check_windows_updates.wsf /w:0 /c:1
[NRPE Client Handlers]
check_other=-H 192.168.0.1 -p 5666 -c remote_command -a arguments
</snip>

Hth,
Albrecht.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101221/c3509349/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
-------------- 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