Check_nt win2k service states and nagios
Neil Lehouillier
NLehouillier at comptonpetroleum.com
Tue Nov 4 17:41:39 CET 2003
I've tried individually but I still get the same error as below:
usr/local/nagios/libexec/check_nt -H 192.168.0.7 -s password123 -v
SERVICESTATE -d SHOWALL -l SMTPSVC
SMTPSVC: Started
But within nagios on the http web page I get:
Service Checks(SMTP)
WARNING 11-04-2003 09:00:54 0d 0h 6m 11s 1/1 SMTPSVC$: Unknown
-----Original Message-----
From: VanZee, Timothy [mailto:T-VANZEE at govst.edu]
Sent: Tuesday, November 04, 2003 7:53 AM
To: Neil Lehouillier
Subject: RE: [Nagios-users] Check_nt win2k service states and
nagios
I haven't ever defined multiple services in one check. I am
currently running each service check individually. Here are actual
snips from my configs:
checkcommands.cfg
...
# 'check_nt_service' command definition
define command{
command_name check_nt_service
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p
1248 -v SERVICESTATE -l $ARG1$
}
...
services.cfg
...
# Service definition
define service{
use generic-service
; Name of service template to use
host_name gsmail
service_description SAVF
Exchange
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command
check_nt_service!SAVFMSE
}
...
Tim Van Zee
ITS Network Specialist
Governors State University
_____
From: Neil Lehouillier
[mailto:NLehouillier at comptonpetroleum.com]
Sent: Monday, November 03, 2003 2:05 PM
To: VanZee, Timothy; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Check_nt win2k service states and
nagios
Tim,
first thanks for helping out. I tried what you suggested but it
just had the same effect. No changes. I tried creating the entire
command within checkcommands.cfg. I have also tried passing the $ARG$
from Services.cfg but to no avail. Is anyone out there currently doing
this(ie checking windows nt services with check_nt). If so, could you
publish the way you have it set up for me to look at (from the cfg files
to the permissions).
If anyone has any other ideas I am more than willing to give it
a try to get this working.....
Thanks....
Neil
-----Original Message-----
From: VanZee, Timothy [mailto:T-VANZEE at govst.edu]
Sent: Monday, November 03, 2003 7:29 AM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Check_nt win2k service
states and nagios
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/20031104/fb713ef8/attachment.html>
More information about the Users
mailing list