Nrpe and Snmp problems

Christian Vanguers wangee at linuxbe.org
Thu Feb 6 17:55:10 CET 2003


On Thu, Feb 06, 2003 at 10:54:18AM -0500, Subhendu Ghosh wrote:
> On Thu, 6 Feb 2003, Jason Schroeder wrote:
> 
> > I am running Nagios on a Sun Ultra 10 with Solaris 9 on it.  I have a
> > remote Sun Ultra 10 with Solaris 8 on it.  I have nrpe 1.8 running on
> > the remote host, and it uses the check_snmp to query cisco hardware.  I
> > have it returning the hostname of the router to make sure it is up and
> > running.  On the remote server the response is "SNMP OK - router1"
> > (using check_snmp -H router1 -o system.sysName.0 -C public -s router1).
> > When I run the check_nrpe command from the nagios host, the return is
> > "SNMP WARNING - router1" (using check_nrpe -H remoteserver -c
> > check_router1).  All of the information is correct, any idea why the
> > return info on the nagios host is a warning?  Thanks.
> > 
> 
> Probably some permissions/env issue which the nrpe daemon.  When you run 
> the command on the remote system- did you run it as the same user as nrpe?
> 
> The basic warning in your scenario is due to snmpget returning some 
> output on stderr.  If the -s regex had failed then it would have returned 
> CRITICAL

Maybe the problem resides on the fact that locally, the hostname
returned is "router1", and remotely, it is seen as
"router1.yourdomain.ext"

I already had a similar problem

Chris

-- 
 +----------------------------------+-----------------------------------------+
 |     ____       _____      _  __  |                                         |
 |    / __ \____ / ___/__  _| |/ /  |   Christian Vanguers                    |
 |   / / / / __ \\__ \/ / / /   /   |   ==================                    |
 |  / /_/ / /_/ /__/ / /_/ /   |    |   mailto: christian.vanguers at opsyx.com  |
 |  \____/ .___/____/\__, /_/|_|    |   www: http://www.opsyx.com             |
 |      /_/         /____/          |                                         |
 |      OPen SYstems eXpertise      |                                         |  
 +----------------------------------------------------------------------------+ 
 |     GnuPG keyID == 0xF814CC3A <christian.vanguers at opsyx.com>       	      |
 | Key Fingerprint == 76D7 8E94 440F E430 3981  D922 73E1 76DF F814 CC3A      |
 +----------------------------------+-----------------------------------------+


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list