Does nagios offer any additional functionality when compared to monit?
This answer states that monit is a clumsy tool for situational awareness, which is the reason I'm asking the question.
I am trying to make monit send a successful status to NagiOS NSCA passive check. The problem is that once Monit is restarted or the service is reloaded or started first time Monit wont send the success status to NagiOS and the service stays pending check or failed in nagios.
I have two identical EC2 instances (the second is a replica of the first), running Gentoo.
The first instance has monit running which monitors a single process and some system resources and functions great.
In the second instance, monit runs but quits right away.
The configuration is similar on both instances so are the versions of monit.
I'm setting up monit on a new site, which i'll refer to as mywebsite.com during this question. I've set up the config to access monit's web interface page, but i can't connect to it. I've got a basic firewall running with iptables, and i think i've made a hole for monit, but i can't connect to monit's web interface, and i don't know why.
I want to use monit for ability to reload pm2 node.js site if response is longer than 2 seconds.
This is my monit config /etc/monit/monitrc:
check process pm2 with pidfile "/root/.pm2/pids/siteName9000.pid"
start program = "/usr/local/bin/pm2 start ~/pathToNodeApp/9000/app.js --name siteName9000"
stop program = "/usr/local/bin/pm2 stop siteName9000"
if failed port 900