I created an oncall.cfg file and placed it into the import directory based on https://assets.nagios.com/downloads/nag ... ation.html
Code: Select all
define timeperiod {
timeperiod_name oncall_week1
alias Week 1 On-Call Rotation
2024-08-05 / 14 10:00-24:00
2024-08-06 / 14 00:00-24:00
2024-08-07 / 14 00:00-24:00
2024-08-08 / 14 00:00-24:00
2024-08-09 / 14 00:00-24:00
2024-08-10 / 14 00:00-24:00
2024-08-11 / 14 00:00-24:00
2024-08-12 / 14 00:00-10:00
}
define timeperiod {
timeperiod_name oncall_week2
alias Week 2 On-Call Rotation
2024-08-12 / 14 10:00-24:00
2024-08-13 / 14 00:00-24:00
2024-08-14 / 14 00:00-24:00
2024-08-15 / 14 00:00-24:00
2024-08-16 / 14 00:00-24:00
2024-08-17 / 14 00:00-24:00
2024-08-18 / 14 00:00-24:00
2024-08-19 / 14 00:00-10:00
}
I was thinking I was going to be able to set my time period to oncall_week1 in my Account Settings->Notification Preferences->Time Periods but it looks like all I can do there is change the times of day I'm willing to accept notifications:
Obviously, this is limited; I need 24x7 notifications when I am on-call and 0x0 notifications when I am not.
I imagine that there are several ways to solve this problem - one way I thought of was to edit the time <<myusername>>_notification_times time period in the CCM to match the oncall_week1, but this is brittle and not-reusable; I will need to apply this same on-call rotation to other teams. What is the best way to go about this?
I'm assuming that the import worked properly and that the time period will function the way I want it to (i.e. On call swaps every-other-week on Monday at 10:00AM). If I have messed this up, or there is a more efficient way to do this, please let me know.
I just got my XI installation rolling yesterday and am very new at this, please cut me a little slack if this question has been asked before or covered elsewhere
