Hi,
Please advice me if this is possible.
While on a clustered environment, If i failover to server02 form server01
Can i make my crontab run on nagios in this situation ?
run crontab on nagios
-
srikanth.kallu
- Posts: 243
- Joined: Thu Jul 26, 2012 10:48 am
run crontab on nagios
Last edited by srikanth.kallu on Fri May 10, 2013 1:56 pm, edited 1 time in total.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: run crontab on nagios
I would point out that you mention failing to the same server that failed. Regardless for most any event in nagios especially things that would cause a state change or notification, you can use event handlers to do additional tasks such as running a cron or script.
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.
-
srikanth.kallu
- Posts: 243
- Joined: Thu Jul 26, 2012 10:48 am
Re: run crontab on nagios
Event handler, is there any documnet about this explaining waht is this and how to use it.
For my basic understanding is this something to run a script with out putting that on crontab ?
For my basic understanding is this something to run a script with out putting that on crontab ?
Re: run crontab on nagios
Here's our documentation on event handlers. Hope this helps.
http://nagios.sourceforge.net/docs/3_0/ ... dlers.html
http://library.nagios.com/library/produ ... nt-handler
http://library.nagios.com/library/produ ... -nagios-xi
http://library.nagios.com/library/produ ... t-handlers
http://nagios.sourceforge.net/docs/3_0/ ... dlers.html
http://library.nagios.com/library/produ ... nt-handler
http://library.nagios.com/library/produ ... -nagios-xi
http://library.nagios.com/library/produ ... t-handlers
Be sure to check out our Knowledgebase for helpful articles and solutions!