check service only once in a day

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

check service only once in a day

Post by srikanth.kallu »

Hi,

I have wrote a plugin and it works fine, now i want to run this only once in a day at 1AM

What setting to i change to achieve this.

Thanks,
Srikanth
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check service only once in a day

Post by slansing »

You could create a custom timeperiod for that service check, and assign it as the check period for that service and it's interval, that would probably be the easiest way. This would be done in the CCM.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: check service only once in a day

Post by srikanth.kallu »

can you please provide the steps to do it.

Thanks,
Srikanth.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check service only once in a day

Post by slansing »

You will need to create the time period to your specs in CCM > Time Periods > Add New. Then save that time period, and simply apply it to the Check Period portion of one of your services.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: check service only once in a day

Post by BanditBBS »

Don't go through the hell I just went through the other day, here is what you have to do :)

1.) Create a new time period and set it for 01:00-01:00 for every day
2.) Set that as the check_period for the service
3.) Set the check_interval to 1 for the service

It will schedule it then once per day withing a minute of 01:00
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: check service only once in a day

Post by srikanth.kallu »

It worked, Thank you for your help.
Locked