Page 1 of 1

Nagios custom alert?

Posted: Tue Jun 04, 2013 1:52 pm
by psyllex
Hello fine people,

I installed Nagios XI recently and it's awesome! I have it on a air-gapped system so I can't necessarily receive 'emails' from nagios. I believe currently all mail just goes to /var/spool/mail/root.

Is there a way to create a custom message when there's an alert ? Like say create file->put in a code that I will match to a db->then write file to a specified location which I will check every 5 mins or so? I know that Nagios does this for me, but I'd like to find something I can actually programmically grab a hold of; and I'd rather not dive into the Nagios code if possible. Any thoughts? Advice? Suggestions (except telling me I'm a noob)? Thanks a lot!

Re: Nagios custom alert?

Posted: Tue Jun 04, 2013 2:32 pm
by abrist
This could be done with event handlers. Put your thinking cap on. As you want to do this system-wide, I would suggest looking at global event handlers:
http://library.nagios.com/library/produ ... t-handlers

Re: Nagios custom alert?

Posted: Tue Jun 04, 2013 3:12 pm
by psyllex
Ahh sweet....Nagios is the gift that just keeps on giving!

Re: Nagios custom alert?

Posted: Tue Jun 04, 2013 4:19 pm
by lmiltchev
I couldn't have said it better myself. :D