Monit send alert to nagios NSCA
Posted
by
mYzk
on Server Fault
See other posts from Server Fault
or by mYzk
Published on 2014-05-30T09:03:14Z
Indexed on
2014/05/30
9:29 UTC
Read the original article
Hit count: 246
I want to monitor a web with monit check host
function and if the site is down then alert it to nagios nsca so it sends the info to nagios and nagios marks it as status OK
or host down
for example.
The problem is that how can I make the monit alert
fuction send the info to nagios nsca.
I am not sure that this will work, but what I came up with is:
set alert exec 'echo -e "nagios nsca format" | /usr/local/nagios/bin/send_nsca -H serveraddress -c /usr/local/nagios/etc/send_nsca.cfg'
Would this work and is it the best solution to work with or can it be done some other way?
© Server Fault or respective owner