check_nt configuration
Mark.Law at thomson.com
Mark.Law at thomson.com
Fri Sep 2 22:28:14 CEST 2005
I have a different problem with check_nt.
>From the command line:
/usr/lib/nagios/plugins/check_nt -H servername -p 1248 -v
SERVICESTATE -d SHOWALL -l "HUMMINGBIRD STR SERVICE"
works great and returns:
HUMMINGBIRD STR SERVICE: Started
just like it is supposed to do. However, when run from nagios it says:
HUMMINGBIRD STR SERVICE: Unknown
The check_nt command definition has been modified like this:
command_line /usr/lib/nagios/plugins/check_nt -H
$HOSTADDRESS$ -v SERVICESTATE -d SHOWALL -l $ARG1$
I removed the quotes from around $ARG1$ so that multiple services could
be checked by passing with embedded quotes, like "server","service with
space in the name", etc.
This works great on one server running nagios but not the other. I have
check and re-checked paths, permissions, check_nt versions and am
stumped.
Any help out there?
Thanks,
Mark
________________________________
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jon
Sent: Thursday, August 25, 2005 2:46 PM
To: Nagios-Users
Subject: RE: [Nagios-users] check_nt configuration
Hi,
Since you mentioned that you have installed the plugins in a different
location, did you make change to the $USER1$ variable to point it to the
correct location? To set the variable $USER1$ to
/usr/lib/nagios/plugins/ you need to edit the resource.cfg.
You can also try executing the command to see if it actually works.
Just go to where the check_nt is located and run it. That would
eliminate a few things.
HTH,
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050902/7b84535e/attachment.html>
More information about the Users
mailing list