Check a service once a day

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Check a service once a day

Post by TSCAdmin »

Hi,

We need to check the status of a service once a day. The service needs to be checked at 8AM.

We could use the check interval at 1440 if the timing was not a matter but in this case the timing is important.

Could you please provide an example on how to proceed with this?

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check a service once a day

Post by scottwilkerson »

You would want to create a timeperiod in the CCM with a short window of time (that you want the check to run) and then in the CCM modify the service -> Check Settings Tab -> Check Period to equal the time period you created.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Re: Check a service once a day

Post by TSCAdmin »

I have done something like this and it seems to work. What are your thoughts on this?

Code: Select all

define timeperiod {
        timeperiod_name once-daily-3am
        alias           Run everyday at 3AM
        monday          03:00-03:20
        tuesday         03:00-03:20
        wednesday       03:00-03:20
        thursday        03:00-03:20
        friday          03:00-03:20
        saturday        03:00-03:20
        sunday          03:00-03:20
        }

Code: Select all

define service {
       .....
       check_interval                           1440
       retry_interval                           2
       check_period                             once-daily-3am
       notification_interval                    1440
       .....
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check a service once a day

Post by scottwilkerson »

This looks right to me...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Re: Check a service once a day

Post by TSCAdmin »

Cool, many thanks.
Locked