Currently I utilize templates for my hosts and services. I have asigned alert contact groups in those templates rather than in each host and service.
This was working fine until yesterday, where I needed to test out creating a second contact group and assigning that contact group only a certain set of hosts, but all services assigned to those hosts. I removed the contact groups from the templates, saved and applied the changes. I then went to the bulk modification tool and added contact groups to select hosts and all services. I had contact group A assigned to a set of hosts and contact group B assigned to another set of hosts.
I tested it out and it appears to work fine.
I then needed to revert from the testing so I decided to just add contact group A to all hosts and remove contact group B from their assigned hosts. Keeping in mind that we have 1500 something hosts and 22000 service checks, this appeared to have caused the DB to crash. I also ran out of inodes in /var. I repaired the DB, and cleared out the inodes (from all of the checks that backed up I suppose).
I then started Nagios back up and foudn that the ramdisk was filling up. When I ran the check config script, I see the following:
Code: Select all
Warning: Host 'xxxx' has no default contacts or contactgroups defined!What am I missing?
I'm on Nagios XI 2014R1.5.
EDIT: I also have the following when I check configs:
Code: Select all
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 40)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 285)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 314)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 64)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 103)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 368)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 401)
Read object config files okay...