Check_nt win2k service states and nagios

VanZee, Timothy T-VANZEE at govst.edu
Mon Nov 3 15:28:46 CET 2003


You can define a new check command in your checkcommand.cfg file such
as:

 

# 'check_nt_service_exchange' command definition

define command{

        command_name    check_nt_service

        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -s password123
-v SERVICESTATE -d SHOWALL -l $ARG1$

        }

 

Then in your services.cfg file modify the line:

 

check_command
"/usr/local/nagios/libexec/check_nt_exchange!SMTPSVC,AVExch32Service

 

I haven't tested with a comma in the check_command line, so you may need
to either add another $ARG$ or place an escape character in the command.

 

 

Tim Van Zee

ITS Network Specialist

Governors State University

 

  _____  

From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Neil
Lehouillier
Sent: Friday, October 31, 2003 3:02 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Check_nt win2k service states and nagios

 

Hi All, 

I'm having a problem monitoring some Win 2k exchange services using
nagios and check_nt from nsclient.  When I execute the following from
the command line su'd to nagios(ie...su - nagios) I get the following:

usr/local/nagios/libexec/check_nt -H 192.168.0.7 -s password123 -v
SERVICESTATE -d SHOWALL -l SMTPSVC,AVExch32Service

SMTPSVC: Started - AVExch32Service: Started

But within nagios on the http web page I get:
Service Checks(SMTP,AV)

WARNING 10-31-2003 09:00:54 0d 0h 6m 11s 1/1 SMTPSVC: Started -
AVExch32Service$: Unknown

Here is the definition in the services.cfg file:
define service {
host_name Exchange
service_description Service Checks(SMTP,AV)
register 1
max_check_attempts 1
normal_check_interval 3
retry_check_interval 1
check_period 24x7
notification_interval 0
notification_period 24x7
notification_options w,u,c,r
contact_groups ntadmins
check_command "/usr/local/nagios/libexec/check_nt -H 192.168.0.7 -s
password123 -v SERVICESTATE -d SHOWALL -l SMTPSVC,AVExch32Service"

Has anyone seen this problem before.......?


Thanks...

Neil 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031103/5bf8696e/attachment.html>


More information about the Users mailing list