run crontab on nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

run crontab on nagios

Post by srikanth.kallu »

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 ?
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

Post by sreinhardt »

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

Post by srikanth.kallu »

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 ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: run crontab on nagios

Post by lmiltchev »

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked