Custom notification commands...old question with new twist...

Steve Gilbert SGilbert at nvidia.com
Tue Oct 5 22:10:39 CEST 2004


I've got a variation on a question that has been asked here several
times before.  Please bear with me...

I want to modify my notification messages to include such things as
physical location, serial number, user contact list, vendor contract
numbers, etc.

This is simple to do via changing the misccommands.cfg file...lots of
folks seem to be just having it grep for the appropriate info from a
flat file or database or whatever.  Simple enough.

Here's where I'd like to do it a little differently...and I'm not sure
if this is possible or not.  I'd really like to have all this info come
straight from my hosts.cfg file somehow.  Is it possible to add in
another directive to a hosts definition?  I've played around with just
trying to use the alias directive to hold all this info, but it's pretty
ugly.  I'd love to have some sort of "notes" directive in here that
would populate a macro...preferably being able to hold multiple lines of
info.  It would just be nice to store all this info in one place and not
have to maintain a hosts.cfg and a separate notes file.  Would this
require a modification to the core Nagios code?

Thanks!

Steve Gilbert
Unix Systems Administrator
sgilbert at nvidia.com


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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