I have set replication for mongoDB and mySQL.
Now I have to manage them using nagios. I have to write some php-script that will read server status.
I am good with nagios setup.
Now I want to know if there is some plugin that may ease my work, otherwise how exactly do I get the server status from nagios.
One solution I thought is to read the log file of nagios and look for pattern to know the server status, is it feasible?