<!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 5.50.4611.1300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Comic Sans MS" color=#000080 size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Atul Shrivastava
[mailto:atulsh@hclinsys.com]<BR><B>Sent:</B> Thursday, December 26, 2002 7:11
AM<BR><B>To:</B> nagios-users@lists.sourceforge.net;
nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Plugin
not woeking ......<BR><B>Importance:</B> High<BR><BR></FONT></DIV>
<DIV align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2>Hello All,<BR> <BR>My problem is that I want to monitor a network
which consists of WinNT, 2K, Linux, Switches and routers. Can anyone
tell me a way in which I can monitor all these things convenently and
quickly. <SPAN class=800433922-26122002><FONT
face="Comic Sans MS"> </FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN
class=800433922-26122002></SPAN></FONT></FONT></FONT> </DIV></BLOCKQUOTE>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>I would
recommend:</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>- Nagios</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>- Nagios
plugins</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>-
NSClient</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>- NRPE</SPAN></FONT></FONT></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002><FONT
face="Comic Sans MS"> </FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002> </SPAN>Basically I want to monitor
these using SNMP only. Is there a way out.<SPAN
class=800433922-26122002><FONT
face="Comic Sans MS"> </FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV></BLOCKQUOTE>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>In that case, don't use NSClient or NRPE. Use the
check_snmp plugin.</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002> </SPAN><BR>Further, I configured
the NRPE Plugin in Linux machine but the plugin is not working correctly
and the Nagios is unable to communicate to them.<SPAN
class=800433922-26122002><FONT
face="Comic Sans MS"> </FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN
class=800433922-26122002></SPAN></FONT></FONT></FONT> </DIV></BLOCKQUOTE>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>Hmm. I thought you only wanted to
use SNMP...? Is it safe to say you've decided to use NRPE
too?</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>How have you determined that Nagios isn't
communicating with NRPE? Have you tried to do basic check_nrpe tests on
the command line? Can you telnet to port 5666 on the client from the
Nagios server? Do you have any logfile output showing the errors?
Don't overwhelm us with 100KB of data, but also don't simply say "is not working
correctly".</SPAN></FONT></FONT></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002> </SPAN><BR>For the WinNT, When I
install NSClient in my WinNT machine, then the installation is
complete and it is running in the Service but it is not making any effect on
the Nagios Console.<SPAN class=800433922-26122002><FONT
face="Comic Sans MS"> </FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN
class=800433922-26122002></SPAN></FONT></FONT></FONT> </DIV></BLOCKQUOTE>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>I thought you only wanted to use SNMP (and
NRPE)...? Is it safe to say you've decided to use NSClient
too?</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>Did you read the README file that came
with NSClient? It gives you very useful examples of what you can use in
your checkcommands.cfg. Granted, they're in the 'old' format, so here's
one example of something that you might find
useful:</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>define
command{<BR>
command_name
check_nt_cpuload<BR>
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
CPULOAD -s $ARG1$ -l $ARG2$<BR>
}<BR></SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002>And here's an example of something you
might put in services.cfg:</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=justify><SPAN class=800433922-26122002><FONT
face="Courier New" color=#000080 size=2>define
service{<BR>
host_name
itdmlw04<BR>
use
icmp<BR>
service_description
W2K CPULoad<BR>
contact_groups
windows-admins<BR>
check_command
check_nt_cpuload!MyPassword!10,80,95,60,80,95,1440,80,95<BR>
}<BR></FONT></DIV></SPAN>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV align=justify><FONT face="Courier New"><FONT color=#000080><FONT
size=2><SPAN class=800433922-26122002> </SPAN></FONT></FONT></FONT></DIV>
<DIV align=justify><FONT face="Courier New" color=#000080
size=2></FONT> </DIV>
<DIV align=justify><FONT face="Courier New" color=#000080
size=2>Can anyone tell me the problem and why this is happening so. Also
tell me what all is required on the management server (Nagios) side.<SPAN
class=800433922-26122002><FONT
face="Comic Sans MS"> </FONT></SPAN></FONT></DIV>
<DIV align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV></BLOCKQUOTE>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002><rant></SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>I strongly urge you to read the documentation, because
otherwise that's exactly what will be regurgitated here.</SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>I hate to say this, but your request is too
broad. You might as well be requesting, "Hi, could you please share your
15 years of UNIX sysadmin experience in 25 words or less?" You've been
extremely vague on describing the problem you're experiencing, and have
seemingly changed your design requirements (SNMP vs. NRPE & NSClient).
You can't expect a physician to help you if you simply say, "I don't feel well,"
especially from halfway around the globe, and especially not if you say, "I
don't want to take anything except a liquid medication" in one sentence, and
then "oh by the way, I'm taking pills and haven't really read the literature
regarding recommended dosage or contraindications or even if it's good for what
ails me."</SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>Have you got Nagios to successfully monitor *anything*
in your environment? If not, I suggest you put SNMP, NRPE and NSClient
back on the shelf, and start out with a simple check_disk on the local Nagios
host itself. Once you get that working, try having Nagios do some very
basic monitoring of another host using, say, check_http, or the appropriate
plugin for whatever network service you're interested in
monitoring.</SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>Have you installed NRPE on the remote host? Did
you remember to install the plugins on the remote host, too? Do they
work? Are they compiled for that architecture? How are you starting
the nrpe daemon? What's one line out of the nrpe.cfg file that you can
give us which is clearly not working? What command line test did you do on
the remote host with that very same plugin which shows that it works/doesn't
work? Did you try to run check_nrpe on the remote host and connect to
itself (localhost)? Can you run check_nrpe on your Nagios server (checking
the remote host) with similar success?</SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>I could go on, but the vast majority on this list have
already been there, done that.</SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>I'm not trying to discourage you from using Nagios; I'm
a huge fan, and believe that as the number of users grows, the better the base
of knowledge and experience. Try to be more explicit in your
requirements/goals/problem determination (cut-paste from logfiles, for example,
"X works but Y does not, and they're almost identical and here are the config
descriptions for each," for another example). If a dancing giraffe
wearing pink-and-green striped pyjamas suddenly appears with a marker
in its mouth and draws "Host fuzzbang is down" on the wall, then this might
be worth mentioning, too.</SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></rant></SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>(Incidentally, if you do have a plugin for the dancing
giraffe, I'm sure there might be some interest on the list.
;-)</SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>Now, let's see some simple (basic) examples for each
scenario you're having difficulties with. Config file snippets would be
useful, too.</SPAN></FONT></DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV dir=ltr align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002>jc</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002></SPAN></FONT> </DIV>
<DIV align=justify><FONT face="Courier New" color=#000080 size=2><SPAN
class=800433922-26122002> </SPAN><BR>Thanks in
advance.<BR> <BR>Regards and have a nice
day,<BR>
Atul
Shrivastava<BR>
Info Structure
Services<BR>
HCL INFOSYSTEMS
LTD.<BR>
E - 4,5,6 Sector
XI,<BR>
Noida -
201301<BR>
Tel: 91-120-2526910,2443013</FONT></DIV>
<DIV align=justify><FONT face="Courier New" color=#000080
size=2></FONT> </DIV>
<DIV align=justify><FONT face="Courier New" color=#000080
size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>