Custom notification commands...old question wi th new twist...
CWaters at jeld-wen.com
CWaters at jeld-wen.com
Wed Oct 6 00:37:23 CEST 2004
I had a similar requirement. I decided to just use a mysql backend. My
notifications include the nagios info plus the info out of the db gotten by
a query when an outage occurs. On the alias line for the hosts.cfg, I
included a link to the mysql data so that you can pull the additional info
from the db right in the nagios interface.
I know it's not what you want. But here's why I mentioned my solution. One
thing about putting additional info is when you put a link in the alias
field, it tends to break the 3d maps. I did not use them so I did not worry
about them. I have found that it's not that big of a deal to maintain the
hosts file and the mysql db because the db gets populated first (usually)
and then the nagios config is done from the info in the db.
Good luck!
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Steve Gilbert
Sent: Tuesday, October 05, 2004 1:11 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Custom notification commands...old question with new
twist...
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041005/923afb98/attachment.html>
More information about the Users
mailing list