Handle unknown host in PROCESS_SERVICE_CHECK_RESULT

Paul Dugas paul at dugas.cc
Tue Aug 14 14:49:20 CEST 2007


Per an earlier suggestion from the mailing-list (thanks!), I have a
default SNMP trap handler setup to send a PROCESS_SERVICE_CHECK_RESULT
command for the "TRAP" service for the IP of the device that sent the
trap.  In some cases, the "TRAP" service doesn't exist for the host or
the host doesn't exist in my configs yet.  I'd like to know if there is
a way to determine this ahead of time and instead update a
TRAP-FROM-UNKNOWN-HOST or NO-TRAP-SERVICE-FOR-HOST service that I keep
on my Nagios host.  The idea is to kick me, the admin, when I start
getting traps from new devices or those I've not yet fully configured.

Alternatively, is there a way to have Nagios fire off another plugin
when an attempt is made to update an invalid host or service?

Any ideas would be appreciated.

TIA,

pd
-- 
Paul Dugas, Computer Engineer                Dugas Enterprises, LLC
paul at dugas.cc        phone: 404-932-1355     522 Black Canyon Park
http://dugas.cc        fax: 866-751-6494     Canton, GA 30114 USA
--
This e-mail and any attachments are confidential.  If you receive
this message in error or are not the intended recipient, you should
not retain, distribute, disclose or use any of this information and
you should destroy the e-mail and any attachments or copies.
	
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070814/7753bd9c/attachment.sig>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
-------------- next part --------------
_______________________________________________
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