Customize Monitoring for servers

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Customize Monitoring for servers

Post 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 ???
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Customize Monitoring for servers

Post 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?
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: Customize Monitoring for servers

Post 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 ?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Customize Monitoring for servers

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked