1- are you sure the config file you're editing and the config file you're loading are the same file?  Mine are simply in /etc/nagios/nagios.cfg and below; not sure where the /usr/local comes from, but,that may be distro-relative...<br>
2- take a look at your commands.cfg file.  That's where email message formatting is, among other things, and might give you a bit more info on what is supposed to be sent.  You might also check the messages log on your nagios server to see what you can see in there.<br>
3- download plug-in, move to nagios' plug-ins folder (called libexec on my box - specifically, /usr/nagios/libexec).  Make sure nagios has permissions to execute said plugin.  Define the command to use it in the commands.cfg file as above, and use it in whatever config you use to define your services.<br>
4- Do you have mrtg installed?  For switches/routers, I'm OK with knowing they're pingable.  If they're pingable, and the box on the other side isn't, my suspicion then turns to my box being down.  If it is still up, I'd consider routing issues...<br>
5- snmp can be used for that - just make sure that you're using a read-only community to communicate with your routers...  Otherwise, you're broadcasting information that can be used to change the snmp settings on your devices, and can really get into deep ca-ca going through THAT bit of fun!!  You just need to know what information you want to pull from your devices, and translate that to whatever mip your device is throwing out there - snmpwalk is very helpful for that...<br>
<br><div class="gmail_quote">On Thu, Oct 22, 2009 at 3:29 PM, Goutos, Kevin <span dir="ltr"><<a href="mailto:kgoutos@libertymgt.com">kgoutos@libertymgt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I have a few general Nagios questions for you all, I appreciate any<br>
feedback you can provide.<br>
<br>
<br>
1) I don't think I'm restarting Nagios correctly whenever I make a<br>
change in a one of the configuration files.  I'm using<br>
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg as well<br>
as /etc/rc.d/init.d/nagios reload, restart, stop, start ,etc.  It does<br>
say it restarts Nagios, however it doesn't seem to be using the 'new'<br>
scripts when I've made changes in them.  For example I just changed the<br>
E-mail address and did those commands above, and it's still sending<br>
Email to my old address.  Does this have something to do with me<br>
commenting out the pre caching options maybe?<br>
<br>
2) For my notifications, I'm not seeing anything in the body of the<br>
message.  All I see is the Message name "** PROBLEM Host Alert: CORP-NSS<br>
is DOWN **".  I'm pretty sure there should be more information in the<br>
body.. any ideas?<br>
<br>
3) I've seen a couple plugins on a few sites I might want to check out,<br>
how do I go about installing them?  I didn't find any documentation for<br>
installing them..<br>
<br>
4) I'm looking for more ways to monitor our Routers and Switches here.<br>
Currently all I have is service checks of 'Ping Test' and 'System<br>
Uptime'.  I also saw on the quickstart guide the following service<br>
check, but I'm seeing errors.  The IP address there looks wrong, and<br>
it's saying it can't find a log.<br>
<br>
define service{<br>
        use                     generic-service<br>
        hostgroup_name  switches<br>
        service_description     Check Local Traffic<br>
        check_command<br>
check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,20000<br>
00!5000000,5000000!10<br>
}<br>
<br>
5) What other service checks do people use to monitor their switches and<br>
routers?  We have SNMP enabled on them and want to collect more<br>
information through Nagios.<br>
<br>
Thanks for the help!!<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Come build with us! The BlackBerry(R) Developer Conference in SF, CA<br>
is the only developer event you need to attend this year. Jumpstart your<br>
developing skills, take BlackBerry mobile applications to market and stay<br>
ahead of the curve. Join us from November 9 - 12, 2009. Register now!<br>
<a href="http://p.sf.net/sfu/devconference" target="_blank">http://p.sf.net/sfu/devconference</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>