Define particular time for status check [Solved]

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
msachikanta
Posts: 58
Joined: Tue Jan 03, 2012 2:35 am

Define particular time for status check [Solved]

Post by msachikanta »

Hi,

Is there any way to define a exact time for a service to check the status...?

I mean to say.. currently the status checking time format is in minute, but i want to define a particular time for example one service should check the status at 10.30 PM IST. Is there any way to change the time format to define particular time for status check...? Please help me if there is any solution.

Thanks in advance.

Regards,
Sachikanta
Last edited by msachikanta on Wed Jun 27, 2012 2:14 am, edited 1 time in total.
msachikanta
Posts: 58
Joined: Tue Jan 03, 2012 2:35 am

Re: Define particular time for status check

Post by msachikanta »

Hi,

I got the solution. To set a particular time for service check we would have to follow the below process.

need to define new time period in timeperiods.cfg file. Like below.

# This defines a modified time period that covers certain service status check
define timeperiod{
timeperiod_name rman-backup-hours
alias RMAN Backup Status Check Time Period
sunday 03:30-04:00
monday 03:30-04:00
tuesday 03:30-04:00
wednesday 03:30-04:00
thursday 03:30-04:00
friday 03:30-04:00
saturday 03:30-04:00
}

here i have set the status check time to 3:30 AM to 4:00 AM for RMAN Backup Status.

then need to define the time details in Service defination also. Like below.

# Define a service to check RMAN Backup Status.

define service{
use remote-common-rman-backup-check
host_name 10.29.67.135
service_description RMAN Backup Status
contact_groups ASG-TEST
check_command check_remote_rman_backup_status
check_period rman-backup-hours
notification_period rman-backup-hours
}

here i have added check_period and notification_period as rman-backup-hours (custom time format).

After following the above steps I am able to set the time that will check the status in particular time... :)

Thanks,
Sachikanta
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Define particular time for status check [Solved]

Post by agriffin »

Glad you figured it out, and thanks for sharing!
Locked