Receiving traps from an APC ups..

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Feb 3 13:45:57 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/02/09 06:38 AM, Jaime Ventura wrote:
> hello, I have the following problem.
> 
> I've configured a nagios service to monitor actively(to get state and
> perfdata) and passively (so it can receive snmptraps via nsca-client) an
> APC ups..
> 
> At the moment, the ups has one intermittent problem and one permanent
> problem, which result the on sending traps, the following way:
> 
>     receive 'Problem 1' trap: critical  -> nagios notification CRITICAL
>     receive 'Problem 2' trap : critical -> nagios does not send
> notification, because status is the same(CRITICAL)
>     receive 'Problem 1' trap : ok      -> nagios notification OK (status
> changed)
>     receive 'Problem 2' trap : critical -> nagios notification
> CRITICAL(status changed)
> 
> So, heres's the problem, When problem 1 is solved, the UPS still has
> problem 2 (and it keeps sending traps of the same problem). Receiving an
> OK trap, nagios will change the service status to OK while having
> another problem.
> Because of that, nagios keeps sending ok notification, even thought ups
> is not ok, and service is kept flapping.
> 
> Is there any way to solve this?
> Can I force nagios to use the active_check command every time it
> receives a trap(even if it is a ok trap).

You should use volatile services to monitor this kind of problem, though
 if you want to see recoveries you will need to send that as an alert
(warning or critical).

You could also use one passive service per trap, but the general way of
handling traps is by using volatile services.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJiDyF6dZ+Kt5BchYRArKNAKDVLoxioYBpNzUhQCXJzQrmMAyk1wCgiyWi
pd5oMovsAaoEOMarMXz6D3k=
=ERAb
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list