How can I tell who is really on-call using rotation?
Posted: Tue Oct 02, 2012 2:11 pm
How can i tell who's REALLY on-call when using the rotation feature?
I'm running nagios 3.3.1 and appreciating the timeperiod.cfg rotation
feature. I have 3 techs on call and we rotate weekly. All 3 techs are
part on the on-call contact-group. So part of my timeperiods.cfg looks
like this:
define timeperiod{
timeperiod_name bill-oncall
alias Bill
2012-10-01 / 07 00:00-24:00 ; Monday - every 7 days
2012-10-02 / 07 00:00-24:00 ; Tuesday
2012-10-03 / 07 00:00-24:00 ; Wednesday
2012-10-04 / 07 00:00-24:00 ; Thursday
2012-10-05 / 07 00:00-24:00 ; Friday
2012-10-06 / 07 00:00-24:00 ; Saturday
2012-10-07 / 07 00:00-24:00 ; Sunday
}
define timeperiod{
timeperiod_name bob-oncall
alias Bob
2012-10-08 / 07 00:00-24:00 ; Monday - every 7 days
2012-10-09 / 07 00:00-24:00 ; Tuesday
2012-10-10 / 07 00:00-24:00 ; Wednesday
2012-10-11 / 07 00:00-24:00 ; Thursday
2012-10-12 / 07 00:00-24:00 ; Friday
2012-10-13 / 07 00:00-24:00 ; Saturday
2012-10-14 / 07 00:00-24:00 ; Sunday
}
define timeperiod{
timeperiod_name mike-oncall
alias Mike
2012-10-15 / 07 00:00-24:00 ; Monday - every 7 days
2012-10-16 / 07 00:00-24:00 ; Tuesday
2012-10-17 / 07 00:00-24:00 ; Wednesday
2012-10-18 / 07 00:00-24:00 ; Thursday
2012-10-19 / 07 00:00-24:00 ; Friday
2012-10-20 / 07 00:00-24:00 ; Saturday
2012-10-21 / 07 00:00-24:00 ; Sunday
}
I know, according to my paper calendar, who should theoretically be on
call but as the dates in the config get farther in the past it gets
harder to see who might be on call on a given day. Is there any way,
either through bash script, forced page or some other method, to get
nagios to tell me which contact it would use next?
I'm running nagios 3.3.1 and appreciating the timeperiod.cfg rotation
feature. I have 3 techs on call and we rotate weekly. All 3 techs are
part on the on-call contact-group. So part of my timeperiods.cfg looks
like this:
define timeperiod{
timeperiod_name bill-oncall
alias Bill
2012-10-01 / 07 00:00-24:00 ; Monday - every 7 days
2012-10-02 / 07 00:00-24:00 ; Tuesday
2012-10-03 / 07 00:00-24:00 ; Wednesday
2012-10-04 / 07 00:00-24:00 ; Thursday
2012-10-05 / 07 00:00-24:00 ; Friday
2012-10-06 / 07 00:00-24:00 ; Saturday
2012-10-07 / 07 00:00-24:00 ; Sunday
}
define timeperiod{
timeperiod_name bob-oncall
alias Bob
2012-10-08 / 07 00:00-24:00 ; Monday - every 7 days
2012-10-09 / 07 00:00-24:00 ; Tuesday
2012-10-10 / 07 00:00-24:00 ; Wednesday
2012-10-11 / 07 00:00-24:00 ; Thursday
2012-10-12 / 07 00:00-24:00 ; Friday
2012-10-13 / 07 00:00-24:00 ; Saturday
2012-10-14 / 07 00:00-24:00 ; Sunday
}
define timeperiod{
timeperiod_name mike-oncall
alias Mike
2012-10-15 / 07 00:00-24:00 ; Monday - every 7 days
2012-10-16 / 07 00:00-24:00 ; Tuesday
2012-10-17 / 07 00:00-24:00 ; Wednesday
2012-10-18 / 07 00:00-24:00 ; Thursday
2012-10-19 / 07 00:00-24:00 ; Friday
2012-10-20 / 07 00:00-24:00 ; Saturday
2012-10-21 / 07 00:00-24:00 ; Sunday
}
I know, according to my paper calendar, who should theoretically be on
call but as the dates in the config get farther in the past it gets
harder to see who might be on call on a given day. Is there any way,
either through bash script, forced page or some other method, to get
nagios to tell me which contact it would use next?