Page 1 of 1

custom host notification file locations

Posted: Mon Dec 08, 2014 4:39 pm
by devildog31415
nagiosxi 2014R2.0
CentOS 6.6

I have setup a script for posting to a secured twitter feed.
I don't know:
1) where to put that script
2) where to place the notification command file (does there have to be 2 of them, one for host and one for service notifications?)
3) don't know what else I don't know

The install is the OVF download for 64-bit ESX hosted.

Thank you,

Re: custom host notification file locations

Posted: Mon Dec 08, 2014 4:43 pm
by tmcdonald
1.) I would place the script under /usr/local/nagios/libexec/plugins or use the web interface to upload it: http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

2.) One command each for hosts and services is the norm, though *technically* you can get away with just one if it doesn't use any macros specific to one or the other.

3.) I had soup today.

Everything should be explained pretty well in that doc, from uploading the script to creating a command for it and attaching as a notification. Except the soup, that's insider knowledge.