I am looking at writing a plugin. what I would like to do. reason I'm asking if the Nagios team if it is feasible. thank you
or if there is already a mechanism for doing something like this?
I am thinking to ping the server, access its health.
primary | failover |
------------------------------------
up | up | |do nothing
up | down | |start environments on primary - if primary previous state is up, do nothing
down | up | |start environments on failover
down | down | |wait until next health check
writing a plugin, looking for advice on capability or other
Re: writing a plugin, looking for advice on capability or ot
Hi gmills,
This sounds like it could be a challenging plugin to write. Here are a few Nagios features that may help you along the way.
Event Handlers
https://assets.nagios.com/downloads/nag ... dlers.html
Adaptive Monitoring
https://assets.nagios.com/downloads/nag ... ptive.html
Monitoring Service and Host Clusters
https://assets.nagios.com/downloads/nag ... sters.html
This sounds like it could be a challenging plugin to write. Here are a few Nagios features that may help you along the way.
Event Handlers
https://assets.nagios.com/downloads/nag ... dlers.html
Adaptive Monitoring
https://assets.nagios.com/downloads/nag ... ptive.html
Monitoring Service and Host Clusters
https://assets.nagios.com/downloads/nag ... sters.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: writing a plugin, looking for advice on capability or ot
Really sounds like you're looking for a custom event handler rather than a traditional Nagios plugin.
But yeah, all of that sounds very doable on a basic level and even something very typical of what people generally do with event handlers.
But yeah, all of that sounds very doable on a basic level and even something very typical of what people generally do with event handlers.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: writing a plugin, looking for advice on capability or ot
Thanks, Matt! Yeah, this really does sound like a job for Event Handlers.
gmills, definitely let us know if there's anything else we can do to help.
gmills, definitely let us know if there's anything else we can do to help.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: writing a plugin, looking for advice on capability or ot
thanks everyone, yeah, I do think nagios Core could be used this way, I will play around with event handlers and utilize your suggestions, thank you very much. It does sound like a very kewl project/initiative, but, the more I think about it and investigate, I think I am going to ( sense it is intention is for failover of monitored servers) implement a failover solution on Linux with Linux Virtual Server or Heartbeat/Pacemaker,Corosync. I only have a 2 node cluster. But, I'm intriged by using Nagios/HA monitoring health, then issue logic.
Re: writing a plugin, looking for advice on capability or ot
Hey, which leads me to another Nagios Core question, lol, thanks
is there a way with Nagios Core to automagically switch groups of services from inactive to active, say I have around 200 services monitoring the primary server, and these are all activly monitored by Nagios Core, then a nightmare occurs and the system crashes( primary ). The failover mechanism will switch the servers services to the secondary or failover box, for however long it takes, then now I have to manually inactivate and activate the correct services monitored for the secondary host.
thanks for all your insight and suggestions,
is there a way with Nagios Core to automagically switch groups of services from inactive to active, say I have around 200 services monitoring the primary server, and these are all activly monitored by Nagios Core, then a nightmare occurs and the system crashes( primary ). The failover mechanism will switch the servers services to the secondary or failover box, for however long it takes, then now I have to manually inactivate and activate the correct services monitored for the secondary host.
thanks for all your insight and suggestions,
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: writing a plugin, looking for advice on capability or ot
Not automagically, but it can be done programmaticallygmills wrote:is there a way with Nagios Core to automagically switch groups of services from inactive to active
https://assets.nagios.com/downloads/nag ... ernalcmds/
Code: Select all
DISABLE_HOSTGROUP_HOST_CHECKS
ENABLE_HOSTGROUP_HOST_CHECKS
DISABLE_HOSTGROUP_SVC_CHECKS
ENABLE_HOSTGROUP_SVC_CHECKS