<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Re: [Nagios-users] check_nt configurations/setup</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText35743 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I do not remamber the 
parameter of fhand I know it was in the documentation in the zip file that 
nsclient was in.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature29774 dir=ltr><PRE>Joseph A. Petrucci
E Systems DBA
------------------------------------------------
Desk: 412-220-2646
Cell: 412-916-2867
Text message (e-mail) 4129162867@mobile.att.net
e-mail joseph.petrucci@ddiworld.com
Personal Cell: 724-462-0443
Personal e-mail: japetrucci@hotmail.com</PRE></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Bobby Bradshaw 
[mailto:bobby.bradshaw@gmail.com]<BR><B>Sent:</B> Mon 8/22/2005 8:21 
AM<BR><B>To:</B> Petrucci, Joseph<BR><B>Cc:</B> 
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users] 
check_nt configurations/setup<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Thank you very much!  That worked.  Also, I was able 
to get<BR>check_nt_MEMUSE working, too!  :)<BR><BR>That got the UPTIME to 
show, but when I try to run for CPULOAD,<BR>USEDDISKSPACE and SERVICESTATE it 
gives me an error saying "missing -L<BR> parameters".  What is 
supposed to be supplied in the -L parameters of<BR>the command "./check_nt -H 
(ip address) -v USEDDISKSPACE -p 1250 -l"<BR>(also for cpuload and 
servicestate)???<BR><BR>Please advise.  Thanks in 
advance.<BR><BR><BR>>On 8/22/05, Petrucci, Joseph 
<Joseph.Petrucci@ddiworld.com> wrote:<BR>><BR>> Change your 
checkcommand.cfg entry for it to look something like this<BR>> <BR>> 
#'check_nt_uptime' command definition<BR>> define 
command{<BR>>         
command_name    
check_nt_uptime<BR>>         
command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v 
UPTIME<BR>>       )<BR>> <BR>> Then 
in your services.cfg use call check_nt_uptime without parameters<BR>> Joseph 
A. Petrucci<BR>E Systems<BR>> 
DBA<BR>------------------------------------------------<BR>Desk:<BR>> 
412-220-2646<BR>Cell: 412-916-2867<BR>Text message (e-mail)<BR>> 
4129162867@mobile.att.net<BR>e-mail joseph.petrucci@ddiworld.com<BR>Personal 
Cell:<BR>> 724-462-0443<BR>Personal e-mail: 
japetrucci@hotmail.com<BR>><BR>> ________________________________<BR>> 
From: Bobby Bradshaw [<A 
href="mailto:bobby.bradshaw@gmail.com">mailto:bobby.bradshaw@gmail.com</A>]<BR>> 
Sent: Sun 8/21/2005 4:01 PM<BR>> To: Petrucci, Joseph<BR>> Cc: 
nagios-users@lists.sourceforge.net<BR>><BR>> Subject: Re: [Nagios-users] 
check_nt configurations/setup<BR>><BR>><BR>><BR>><BR>> 
Thanks!  Now I can get the system uptime with this command 
"./check_nt<BR>> -H (ip address) -v UPTIME -p 1250" from running the command 
while in<BR>> the plugins directory.  BUT, how do I put that in the cfg 
files and in<BR>> which cfg files?<BR>><BR>> Please advise.  
Thanks!<BR>><BR>><BR>><BR>> On 8/21/05, Petrucci, Joseph 
<Joseph.Petrucci@ddiworld.com> wrote:<BR>> ><BR>> > Can you 
check if you can telnet to the machine from the Nagios machine.<BR>> 
><BR>> > telnet machineIP 1250<BR>> ><BR>> > Also if you 
change from the default port you need to put that in the<BR>> command<BR>> 
> or it will try 1248.<BR>> ><BR>> > Joseph A. Petrucci<BR>> E 
Systems<BR>> > DBA<BR>> 
------------------------------------------------<BR>> Desk:<BR>> > 
412-220-2646<BR>> Cell: 412-916-2867<BR>> Text message (e-mail)<BR>> 
> 4129162867@mobile.att.net<BR>> e-mail 
joseph.petrucci@ddiworld.com<BR>> Personal Cell:<BR>> > 
724-462-0443<BR>> Personal e-mail: japetrucci@hotmail.com<BR>> 
><BR>> > ________________________________<BR>> > From: 
nagios-users-admin@lists.sourceforge.net on behalf<BR>> of<BR>> > 
Andreas Ericsson<BR>> > Sent: Sun 8/21/2005 11:07 AM<BR>> > To: 
nagios-users@lists.sourceforge.net<BR>> > Subject: Re: [Nagios-users] 
check_nt configurations/setup<BR>> ><BR>> ><BR>> ><BR>> 
><BR>> > Bobby Bradshaw wrote:<BR>> > > I changed the nrpe 
listening port to 1250, because I read somewhere<BR>> > > that MS 
Exchange uses port 1248.<BR>> ><BR>> > This is not exactly true. MS 
Exchange doesn't care what ports it uses,<BR>> > it just starts off at 
1024 and keeps stealing ports upwards. If you want<BR>> > to be sure of 
not getting caught in the Exchange trap, use a port in the<BR>> > range 
50000-65535.<BR>> ><BR>> > >  So, I opened tcp port 1250 on 
both<BR>> > > the nagios server and the windows xp host.  I edited 
nrpe.cfg - the<BR>> > > listening port to 1250 and added the xp host ip 
to allowed_hosts<BR>> > > section.  I added the following to 
command.cfg:<BR>> > ><BR>> > > 
command[check_nt_disk]=$USER1$/check_nt -H<BR>> $HOSTADDRESS$<BR>> > -p 
1250 -v<BR>> > > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$<BR>> 
> > command[check_nt_cpuload]=$USER1$/check_nt -H<BR>> > 
$HOSTADDRESS$ -p 1250 -v<BR>> > > CPULOAD -l $ARG1$<BR>> > > 
command[check_nt_uptime]=$USER1$/check_nt -H<BR>> > $HOSTADDRESS$ -p 1250 
-v UPTIME<BR>> > > command[check_nt_service]=$USER1$/check_nt 
-H<BR>> > $HOSTADDRESS$ -P 1250 -v<BR>> > > SERVICESTATE -l 
$ARG1$<BR>> > > command[check_nt_memuse]=$USER1$/check_nt -H<BR>> 
> $HOSTADDRESS$ -p 1250 -v<BR>> > > MEMUSE -w $ARG1$ -c 
$ARG2$<BR>> > ><BR>> > > Also, I have NOT edited 
checkcommands.cfg, because I don't know if I<BR>> > > have to and not 
sure what to put in there if I do have to.<BR>> > ><BR>> > > 
Please advise if I am doing something wrong or if there is extra steps<BR>> 
> > to be taken.<BR>> ><BR>> > What's the problem, and what 
ports does nmap tell you are open?<BR>> ><BR>> > > 
Thanks!<BR>> > ><BR>> > ><BR>> > > On 8/21/05, 
Petrucci, Joseph <Joseph.Petrucci@ddiworld.com> wrote:<BR>> > 
><BR>> > >><BR>> > >>There are a few things you can 
check.<BR>> > >>First check that the "Nagios Agent" is running as a 
service on the<BR>> Windows<BR>> > >>machine.<BR>> > 
>>Second check if port 1248 is opened between the Nagios machine and 
the<BR>> > >>Windows machine.<BR>> > >><BR>> > 
>>These are first steps I would think you have already done, but since 
you<BR>> > >>didn't mention them I thought I would.<BR>> > 
>><BR>> > >>If you have already done this post a description 
of the steps you have<BR>> > taken<BR>> > >>so far and there 
results so we can help further.<BR>> > >><BR>> > 
>>Joseph A. Petrucci<BR>> > ><BR>> > > E Systems<BR>> 
> ><BR>> > >>DBA<BR>> > ><BR>> > > 
------------------------------------------------<BR>> > > Desk:<BR>> 
> ><BR>> > >>412-220-2646<BR>> > ><BR>> > > 
Cell: 412-916-2867<BR>> > > Text message (e-mail)<BR>> > 
><BR>> > >>4129162867@mobile.att.net<BR>> > ><BR>> 
> > e-mail joseph.petrucci@ddiworld.com<BR>> > > Personal 
Cell:<BR>> > ><BR>> > >>724-462-0443<BR>> > 
><BR>> > > Personal e-mail: japetrucci@hotmail.com<BR>> > 
><BR>> > >>________________________________<BR>> > 
>>From: nagios-users-admin@lists.sourceforge.net on<BR>> behalf<BR>> 
> of<BR>> > >>Bobby Bradshaw<BR>> > >>Sent: Fri 
8/19/2005 2:43 PM<BR>> > >>To: 
nagios-users@lists.sourceforge.net<BR>> > >>Subject: [Nagios-users] 
check_nt configurations/setup<BR>> > >><BR>> > 
>><BR>> > >>Hi all,<BR>> > >><BR>> > 
>>My Nagios setup is:<BR>> > >>Suse 9.3 Professional<BR>> 
> >>Nagios v1.2<BR>> > >>Nagios plugins v1.4<BR>> > 
>>Nagios nrpe v2.0<BR>> > >><BR>> > >>I have 
Nagios running correctly, sending notifications, checking ping<BR>> 
and<BR>> > >>HTTP on several hosts.  Although, I am having so 
much trouble trying to<BR>> > get<BR>> > >>Nagios to run 
"./check_nt -H 192.168.1.111 -v UPTIME" command without<BR>> > 
>>getting a "CRITICAL - Socket timeout after 10 seconds" error or any 
of<BR>> the<BR>> > >>check_nt commands without an error.  I 
have the Nsclient 2.01 on my<BR>> > Windows<BR>> > >>XP 
host.  Is there better documentation than what is provided with<BR>> 
> Nsclient?<BR>> > >> Can I get some pointers on ALL the cfg 
files that I have to edit to get<BR>> > the<BR>> > >>check_nt 
command to work.<BR>> > >><BR>> > >>Thanks in 
advance!<BR>> > >><BR>> > >>--<BR>> > 
>>Bobby Bradshaw, Jr.<BR>> > 
>>bobby.bradshaw@gmail.com<BR>> > ><BR>> > ><BR>> 
> ><BR>> ><BR>> > --<BR>> > Andreas 
Ericsson                   
andreas.ericsson@op5.se<BR>> > OP5 
AB                             
www.op5.se<BR>> > Lead Developer<BR>> ><BR>> ><BR>> > 
-------------------------------------------------------<BR>> > SF.Net 
email is Sponsored by the Better Software Conference & EXPO<BR>> > 
September 19-22, 2005 * San Francisco, CA * Development Lifecycle<BR>> 
Practices<BR>> > Agile & Plan-Driven Development * Managing Projects 
& Teams * Testing & QA<BR>> > Security * Process Improvement & 
Measurement * <A 
href="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</A><BR>> > 
_______________________________________________<BR>> > Nagios-users 
mailing list<BR>> > Nagios-users@lists.sourceforge.net<BR>> > <A 
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>> 
> ::: Please include Nagios version, plugin version (-v) and OS when<BR>> 
reporting<BR>> > any issue.<BR>> > ::: Messages without supporting 
info will risk being sent to /dev/null<BR>> ><BR>> 
><BR>><BR>><BR>> --<BR>> Bobby Bradshaw, Jr.<BR>> 
bobby.bradshaw@gmail.com<BR>><BR>><BR><BR><BR>--<BR>Bobby Bradshaw, 
Jr.<BR>bobby.bradshaw@gmail.com<BR><BR></FONT></P></DIV>

</BODY>
</HTML>