<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><SPAN class=423055218-25112002><FONT face=Arial color=#0000ff size=2>Just
what I was going to say.</FONT></SPAN></DIV>
<DIV><SPAN class=423055218-25112002>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2>Here are a couple of my
commands<SPAN class=035055418-25112002> as an
example</SPAN></FONT></FONT></FONT></P>
<P><FONT face=Arial color=#0000ff size=2>define command{</FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=423055218-25112002> </SPAN>name
check_nt_process</FONT></FONT></FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=423055218-25112002> </SPAN>command_name
check_nt_process</FONT></FONT></FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=423055218-25112002> </SPAN>command_line $USER1$/check_nt
-H $HOSTADDRESS$ -p 1248 -s $USER3$ -d SHOWALL -v PROCSTATE -l
$ARG1$</FONT></FONT></FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=423055218-25112002> </SPAN>}</FONT></FONT></FONT></P>
<P><FONT face=Arial color=#0000ff size=2>define command{</FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=423055218-25112002> </SPAN>name
check_nt_service</FONT></FONT></FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=423055218-25112002> </SPAN>command_name
check_nt_service</FONT></FONT></FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=423055218-25112002> </SPAN>command_line $USER1$/check_nt
-H $HOSTADDRESS$ -p 1248 -s $USER3$ -d SHOWALL -v SERVICESTATE -l
$ARG1$</FONT></FONT></FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=423055218-25112002> </SPAN>}</FONT></FONT></FONT></P>
<P><FONT face=Arial color=#0000ff size=2>I put the following in my
resource.cfg</FONT></P>
<P><FONT face=Arial color=#0000ff size=2># Store some usernames and passwords
(hidden from the CGIs)</FONT></P>
<P><FONT face=Arial color=#0000ff size=2>$USER3$=xxxxx</FONT></P>
<P><SPAN class=423055218-25112002><FONT face=Arial color=#0000ff
size=2>HTH</FONT></SPAN></P></SPAN></DIV></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Frater, Greg J
[mailto:gjfrater@bechtel.com]<BR><B>Sent:</B> Tuesday, November 26, 2002 7:31
AM<BR><B>To:</B> 'Peter Pan'; Frater, Greg J; nagios<BR><B>Subject:</B> RE:
[Nagios-users] Another NSClient question<BR><BR></FONT></DIV>
<DIV><SPAN class=963562818-25112002><FONT face=Arial color=#0000ff size=2>I just
reread this. Your syntax is wrong. Use the -s switch not -p for the
password.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Peter Pan
[mailto:peterpan@pvamu.edu]<BR><B>Sent:</B> Monday, November 25, 2002 10:16
AM<BR><B>To:</B> Frater, Greg J; nagios<BR><B>Subject:</B> Re: [Nagios-users]
Another NSClient question<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I restarted the server and it still gives me an
"No output". Here is some info is this helps in any way.
Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2># NSClient --
Server<BR>command[check_nt_disk_Server]=$USER1$/check_nt -H 127.0.0.1 -P
1248 -p xxxxx -v USEDDISKSPACE -l C -w 80 -c
90<BR>command[check_nt_cpuload_Server]=$USER1$/check_nt -H 127.0.0.1 -P
1248 -p xxxxx -v CPULOAD -l
10,80,95,60,80,95,1440,80,95<BR>command[check_nt_uptime_Server]=$USER1$/check_nt
-H 127.0.0.1 -P 1248 -p xxxxx -v
UPTIME<BR>command[check_nt_clientversion_Server]=$USER1$/check_nt -H
127.0.0.1 -P 1248 -p xxxxx -v
CLIENTVERSION<BR>command[check_nt_process_Server]=$USER1$/check_nt -H
127.0.0.1 -P 1248 -p xxxxx -v PROCSTATE -l
$ARG1$<BR>command[check_nt_service_Server]=$USER1$/check_nt -H 127.0.0.1
-P 1248 -p xxxxx -v SERVICESTATE -l
$ARG1$<BR>command[check_nt_memuse_Server]=$USER1$/check_nt -H 127.0.0.1
-P 1248 -p xxxxx -v MEMUSE -w $ARG1$ -c
$ARG2$<BR>command[check_nt_fileage_Server]=$USER1$/check_nt -H 127.0.0.1
-P 1248 -p xxxxx -v FILEAGE ~Vl $ARG1$ -w $ARG2$ -c
$ARG3$<BR>command[check_nt_pagingfile_Server]=$USER1$/check_nt -H
$HOSTADDRESS$ -P 1248 -p xxxxx -v COUNTER -l "<A
href="file://\\Paging">\\Paging</A> File(_Total)\\% Usage","Paging File usage
is %.2f %%" -w $ARG1$ -c $ARG2$<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Here is my commands. Note 127.0.0.1 is not
actually IP just replacing the actual and "xxxxx" is masking the
password.</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Justin</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=gjfrater@bechtel.com href="mailto:gjfrater@bechtel.com">Frater,
Greg J</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=peterpan@pvamu.edu
href="mailto:peterpan@pvamu.edu">'Peter Pan'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, November 25, 2002 11:24
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Nagios-users] Another
NSClient question</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=355442117-25112002><FONT face=Arial color=#0000ff
size=2>The registry key holds the password string. You then use (as
you speculated) the -p option on the check_nt command to send the
password to the nt box. When I did it I had to restart the server when
after adding the password to my servers. Restarting the nsclient
nt service did not work.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Peter Pan
[mailto:peterpan@pvamu.edu]<BR><B>Sent:</B> Monday, November 25, 2002 8:50
AM<BR><B>To:</B> nagios<BR><B>Subject:</B> [Nagios-users] Another NSClient
question<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I understand that I can put the key in the
registry under HKEY_LOCAL_MACHINE -> SOFTWARE -> NSClient ->
Params -> password, and modify it to suit whichever password I
choose. But I am a little confused about what config file I store
this password in on the Nagios box. I was thinking I used the "-p"
flag in the commands configuration file, then the password
following. But I must be forgetting something. Any ideas would
be great, thanks guys</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>Justin</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE>
<DIV><FONT color=#ff0000 face=Arial
size=1><EM>DISCLAIMER: This electronic message together with any
attachments is confidential. If you are not the intended recipient, do not
copy, disclose or use the contents in any way. Please also advise us by
return e-mail that you have received the message and then please destroy.
Carter Holt Harvey is not responsible for any changes made to this message and /
or any attachments after sending by Carter Holt Harvey. We use virus
scanning software but exclude all liability for viruses or anything similar in
this email or any attachment.</EM></FONT>
</DIV>
</BODY></HTML>