check_nt configuration
Jon
jonsml at gmail.com
Thu Aug 25 20:45:40 CEST 2005
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
_____
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of dan dang
Sent: Thursday, August 25, 2005 3:54 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_nt configuration
hi all,
I have the same problem as Bobby Bradshaw (from whom I quoted the message
below) :
My Nagios setup is:
Nagios v1.3 (October 24, 2004)
Nagios plugins v1.4.1
I have Nagios running correctly, sending notifications, checking ping and
HTTP on several hosts. BUT I have exactly the same problem as Bobby Bradshaw
which is the fact that I can't get Nagios to run "./check_nt -H
192.168.1.111 -v UPTIME" command without getting a "CRITICAL - Socket
timeout after 10 seconds" error or any of the check_nt commands without an
error. I have the Nsclient 2.01 on my Windows NT host.
The error I have is the fact that the system doesn't find the check_nt
service BUT I have installed it in the /usr/local/nagios/libexec/ file, in
fact in my case I changed the path to /usr/lib/nagios/plugins/ since it's
where the services are located in my configuration.
I have exactly the same question as Bobby Brawn : Is there better
documentation than what is provided with Nsclient? Can I get some pointers
on ALL the cfg files that I have to edit to get the check_nt command to
work.
Bobby Bradshaw, I saw that u solved your problem, can u tell how did u do ?
If anyone has an idea, please advise. Thanks in advance !!
Quoc-Dan DANG
NB: I have edited the "checkcommands.cfg" file by adding the following lines
:
# 'check_nt_disk' command definition
define command{
command_name check_nt_disk
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l
$ARG1$ -w $ARG2$ -c $ARG3$
}
# 'check_nt_upload' command definition
define command {
command_name check_nt_cpuload
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l
$ARG1$
}
# 'check_nt_uptime' command definition
define command {
command_name check_nt_uptime
command_line $USER1$/check_nt #-H $HOSTADDRESS$ -p 1248 -v UPTIME
}
# 'check_nt_clientversion' command definition
define command {
command_name check_nt_clientversion
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CLIENTVERSION
}
# 'check_nt_process' command definition
define command {
command_name check_nt_process
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -l
$ARG1$
}
# 'check_nt_service' command definition
define command{
command_name check_nt_service
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d
SHOWALL -l $ARG1$
}
# 'check_nt_memuse' command definition
define command{
command_name check_nt_memuse
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w $ARG1$
-c $ARG2$
}
# 'check_nt_fileage' command definition
define command{
command_name check_nt_fileage
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v FILEAGE -l $ARG1$
-w $ARG2$ -c $ARG3$
}
# 'check_nt_pagingfile' command definition
define command{
command_name check_nt_pagingfile
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l
"\\Paging <file:///\\Paging\> File(_Total)\\%% Usage","Paging File usage is
%.2f %%" -w $ARG1$ -c $ARG2$
}
QUOTE from Bobby Bradshaw who had the same problem as I currently have :
"From: nagios-users-admin at li... on
> behalf
> > of
> > >>Bobby Bradshaw
> > >>Sent: Fri 8/19/2005 2:43 PM
> > >>To: nagios-users at li...
> > >>Subject: [Nagios-users] check_nt configurations/setup
> > >>
> > >>
> > >>Hi all,
> > >>
> > >>My Nagios setup is:
> > >>Suse 9.3 Professional
> > >>Nagios v1.2
> > >>Nagios plugins v1.4
> > >>Nagios nrpe v2.0
> > >>
> > >>I have Nagios running correctly, sending notifications, checking ping
> and
> > >>HTTP on several hosts. Although, I am having so much trouble trying
to
> > get
> > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without
> > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of
> the
> > >>check_nt commands without an error. I have the Nsclient 2.01 on my
> > Windows
> > >>XP host. Is there better documentation than what is provided with
> > Nsclient?
> > >> Can I get some pointers on ALL the cfg files that I have to edit to
get
> > the
> > >>check_nt command to work.
> > >>
> > >>Thanks in advance!
> > >>
> > >>--
> > >>Bobby Bradshaw, Jr.
> > >>bobby.bradshaw at gm...
> > >
> > >
> > >
> >
> > --
> > Andreas Ericsson andreas.ericsson at op...
> > OP5 AB http://www.op5.se
<http://www.op5.se/>
> > Lead Developer
> >
> >
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
QA
> > Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at li...
> > 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
> >
> >
>
>
> --
> Bobby Bradshaw, Jr.
> bobby.bradshaw at gm ...
>
>
--
Bobby Bradshaw, Jr.
bobby.bradshaw at gm...
From: Bobby Bradshaw <bobby at gm...>
<https://sourceforge.net/mailarchive/message.php?msg_id=12716990> Re:
check_nt configurations/setup
2005-08-22 08:18
Found it. Thank you guys very much.
Much appreciated
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050825/6bd08b48/attachment.html>
More information about the Users
mailing list