Page 1 of 1

Customize Monitoring for servers

Posted: Mon Sep 16, 2013 9:27 pm
by cesar.garza
I am really in weird situation, have 3 servers (2 Activemq and 1 MySQL) need to put on nagios monitoring. I can setup normal monitoring but need some conditions on monitoring.
My server (MySQL) connect to Activemq at a time and whenever one server goes down, it get connect to another Activemq server. NOW i want nagios alert me when both goes down at same time. Is there any nagios plugin or script or way to do this ???

Re: Customize Monitoring for servers

Posted: Tue Sep 17, 2013 12:26 pm
by slansing
I'm having a little trouble following you, so if one of your databases goes down it fails over to another one? Do they retain the same information nagios is looking for "such as host address, the same service checks etc..?" You could monitor both separately correct?

Re: Customize Monitoring for servers

Posted: Wed Sep 18, 2013 11:56 am
by cesar.garza
slansing wrote:I'm having a little trouble following you, so if one of your databases goes down it fails over to another one? Do they retain the same information nagios is looking for "such as host address, the same service checks etc..?" You could monitor both separately correct?
I have two activemq servers and monitoring both of them separately. However i am getting alerts when my one activemq box goes down, but I am good until my any one ACTIVEMQ server is up. and dont need email and phone alerts untill both activemq servers goes down. Does it make sense to you ?

Re: Customize Monitoring for servers

Posted: Thu Sep 19, 2013 9:46 am
by sreinhardt
Yup, I think I get it. You're best option would be to have both servers monitored individually, without notifications, then setup a cluster host and set of service checks using check_cluster. This will allow you to check the state of both servers and only alert if both are down, and if you like send a warning when one is down. The plugin should be in nagios by default, and the plugins site has a pretty good walkthrough.