Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

For MongoDB, this would be a good place to start:

It's python rather than PHP, but it's basically what you are looking for to get the data into Nagios. Then for what to monitor and alert on, I've previously written up a quick summary of this plugin previously on the mongodb-user group:!topic/mongodb-user/bix36VvywXE/discussion

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.