Dynamically generated service checks

Kevin Keane subscription at kkeane.com
Wed Jul 15 23:14:58 CEST 2009


Marc Powell wrote:
> On Jul 15, 2009, at 11:13 AM, David Rosenstrauch wrote:
>
>   
>> IMO, the ideal solution here would be if I could just submit passive
>> check results for services that aren't explicitly configured in  
>> Nagios.
>>  But alas, that's not allowed and it fails with messages like  
>> "Warning:
>>  Passive check result was received for service 'foo' on host
>> 'mysql-dev', but the service could not be found!"
>>     
>
> That's correct but this would be a lot like submitting SNMP traps to  
> nagios. You might glance over that documentation to get ideas. You  
> could create a generic service, set it as passive and volatile and  
> then just start submitting passive results to it with descriptive/ 
> useful output. Each non-ok result would generate an alert so you  
> wouldn't miss anything but if you don't build in some protections, you  
> could repeat notify about the same problem.
>   
I am using a script to look for these error messages. In my situation, 
the list of services changes only rarely, so all this script does is 
submit another check result to Nagios to alert me that I need to 
manually add a service. You could also use such a script to 
automatically add any new services, and then restart Nagios.

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof.


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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