Reporting help
Posted: Tue Sep 18, 2018 12:52 pm
Hello,
I have a need to generate a report that will tell me which contact is alerted given a service and/or a host. I'm not sure what the best method would be to retrieve this information.
Considering that:
- Our Nagios XI implementation is complicated, in that there are many different service and host templates
- We have many different contact groups tied to different templates (in order to notify different teams at different times of the day, such as workhours vs afterhours vs 24x7)
- most hosts and services use templates, however there are a number that don't use templates and have a contact group directly connected to them because they things that were added ad-hoc, or things that require more custom settings.
So apart from awk'ing and grepping files in /usr/local/nagios/etc/hosts and /usr/local/nagios/etc/services, contacts.cfg and contactgroups.cfg, I'm not quite sure how to organize all of this information.
Would anyone have a recommendation on how best I might be able to do this?
I have a need to generate a report that will tell me which contact is alerted given a service and/or a host. I'm not sure what the best method would be to retrieve this information.
Considering that:
- Our Nagios XI implementation is complicated, in that there are many different service and host templates
- We have many different contact groups tied to different templates (in order to notify different teams at different times of the day, such as workhours vs afterhours vs 24x7)
- most hosts and services use templates, however there are a number that don't use templates and have a contact group directly connected to them because they things that were added ad-hoc, or things that require more custom settings.
So apart from awk'ing and grepping files in /usr/local/nagios/etc/hosts and /usr/local/nagios/etc/services, contacts.cfg and contactgroups.cfg, I'm not quite sure how to organize all of this information.
Would anyone have a recommendation on how best I might be able to do this?