[Nagios-users] snmp proxy daemon help
I have compiled and installed snmppd on my nagios systems. I'd heard that using the snmp proxy daemon would help reduce snmp check times and loads on the servers being monitored. We have been noticing very high CPU utilization on our NetApp filers every time nagios does an snmp check on them. When we disable nagios checks on the filers, load decreases significantly. However, we've seen no improvement by using snmppd thus far, which makes me question if perhaps I'm not using it the right way. Other than installing it via rpm and starting the service, all I've done is symlink check_snmp to the new check_snmpp in my plugins directory. Does anyone have more experience with this? Yours truly, J. Mills - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] Probem with nrpe and sudo on rhel5 servers
Huh, just as a side note, it's probably a bad idea to give the nagios user so many powers in sudo. I've limited it by doing this: nagios ALL=NOPASSWD: /sbin/service nagios restart, \ /sbin/service nagios reload, \ /sbin/service nagios checkconfig In my case, the nagios use only needs to be able to manipulate the nagios daemon, in these pre-defined ways. You can add your own commands. I'm using this on RHEL5 and it's working. In another case, I'm using the hpacucli tool to test the raid status of an HP SmartArray. In my sudoers file on the HP server with the array, I have this: nagios ALL=NOPASSWD: /usr/sbin/hpacucli and in the nrpe.cfg file, I've got this: command[check_hparray]=/usr/local/nagios/check_hparray -s 0 Again, this is RHEL5, and it works great. On Mar 7, 2008, at 5:41 AM, Nicole Hähnel wrote: Hi, I wrote a plugin to check running ipsec tunnels on our gateways. The plugin needs to have access to /proc/net/ipsec_eroute, so I have to run nrpe command with sudo. sudoers (for testing): nagios ALL=(ALL) NOPASSWD: ALL nrpe.conf: command[check_tunnel]=sudo /usr/lib/nagios/plugins/check_tunnel --tunnels $ARG1$ I tested the plugin on the gateway, it works fine, but with nagios I get NRPE: Unable to read output. Running the plugin without sudo, nagios has an output, but 0 running tunnels. Looks like a problem with sudo command on rhel5 servers. Any ideas? Thanks! Nicole - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
[Nagios-users] ipmi?
Does anyone have any specific experience using ipmi to check the status of disks in a Dell PERC raid? Yes, yes, I know there are many nrpe plugins to do this using omreport, the tool provided by the Dell OpenManage software. I want to know if anyone has done it without having OpenManage installed at all (I'm not a fan of it). Any advice would be much appreciated! Cheers! Jonathan - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
Re: [Nagios-users] conditional inclusion of cfg files
So I think what I'm going to do is rsync the same files everywhere, but use cfengine to manage the nagios.cfg file on each poller. Actually, I'm looking at using Puppet instead of cfengine. I also want to use this to control the nrpe.cfg on each server of course. If you're going to do it from scratch, Puppet looks a lot cleaner and more modern than cfengine. Anyone with Puppet feedback? On Feb 18, 2008, at 2:31 PM, Justin Hitt [EMAIL PROTECTED] wrote: Jonathan, Jonathan Mills wrote: Okay, let's say you have lots of distributed pollers, which should only load cfg files for their particular environment (both hosts and services). However, you'd like to manage the same set of global cfg I setup configurations in subdirectories by datacenter (location of the distributed poller) then have a local 'sed' check change the location of the configuration relevant to that specific box. These directories are also broken out individually ... $NAGIOS_HOME/etc/corporate/$ASSET_GROUP/{hosts,groups,contact}.cfg $NAGIOS_HOME/etc/datacenter/$CITY_STATE/{hosts,groups,contact}.cfg $NAGIOS_HOME/etc/thirdparty/$VENDOR/{hosts,groups,contact}.cfg All my pollers check a common pool (corporate, thirdparty) and have local checks for their own site (datacenter.) $CITY_STATE could also be the name of your host, that makes 'sed' a little easier. Use 'cfg_dir=' You could use 'cfengine', I use 'sed', but just comment out all datacenters on your console and uncomment the one necessary for a particular datacenter. If you won't want to use 'sed' or 'cfengine' then just uncomment it by hand. Best, Justin -- Attention Sales And Marketing Professionals Who Serve B2B Executives http://hittpublishingdirect.com/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
[Nagios-users] conditional inclusion of cfg files
Okay, let's say you have lots of distributed pollers, which should only load cfg files for their particular environment (both hosts and services). However, you'd like to manage the same set of global cfg files from the central server, and rsync them all everywhere. Is there any known way to make a poller just load a subset of cfg files, *without hardcoding it into each poller's nagios.cfg file*? Sorry if this sounds a little crazy. I guess what I had envisioned was a way to push out a set of cfg files named by each poller's hostname, with the expectation that a poller could intelligently include only its own cfg file. Each of those files, in turn, would include a set of cfg_dir definitions to further include the directories needed for the poller to poll its specific environment. Nagios just appears to be very limited in the ability to declare variables in the configuration files. Yes, you can set macros, but that doesn't seem to help me with this particular situation. Any suggestions? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
[Nagios-users] aggregator has incorrect state
Hi, I'm using distributed pollers, reporting to an aggregator server. Right now I'm seeing 'OK' for every service on the aggregator, but on the actual pollers, there are numerous warning states. Any ideas what I've wrong? Here's look at my ocsp definition: # 'submit_check_result' command definition; see ocsp_command in nagios.cfg, for use with nsca define command{ command_namesubmit_check_result command_line/usr/local/nagios/libexec/eventhandlers/ distributed-monitoring/submit_check_result_via_nsca $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$|$SERVICEPERFDATA$' } - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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
[Nagios-users] controlling services by hostgroup?
I'm looking for some sanity checking of my logic here. What I've been doing is controlling services by mapping them to hostgroups. So, basically, I have a hostgroup for each type of service check, except for some basic checks that I lump together. Why? Because it makes it extremely easy to manage hosts. I create a host definition in a new file, i list all the hostgroups to which the host belongs, and the host then inherits all the service checks it needs. Adding and deleting hosts means only touching one file, the file containing the host definition. In practice it works great, but it has some real annoyances too. For example, my hostgroups look like servicegroups! It confuses people. I also have way more hostgroups than is desirable to be displayed in the web interface. And trying to map the logical groups or environments in my company is right out the window, since the hostgroups don't represent a logical or conceptual view of the environments within the company. What are other people doing? One thing I thought of that would help is if you could choose what hostgroups were actually displayed in the web interface. That way I could have logical groups based on departments or something shown as hostgroups, while service-specific hostgroups weren't displayed. Any comments would be greatly appraciated. Cheers! Jonathan - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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