Nagios custom alert?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Nagios custom alert?

Post 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!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios custom alert?

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: Nagios custom alert?

Post by psyllex »

Ahh sweet....Nagios is the gift that just keeps on giving!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios custom alert?

Post by lmiltchev »

I couldn't have said it better myself. :D
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked