Monit send alert to nagios NSCA
- by mYzk
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?