Page 1 of 1

Define particular time for status check [Solved]

Posted: Wed Jun 27, 2012 12:59 am
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

Re: Define particular time for status check

Posted: Wed Jun 27, 2012 2:14 am
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

Re: Define particular time for status check [Solved]

Posted: Wed Jun 27, 2012 9:46 am
by agriffin
Glad you figured it out, and thanks for sharing!