Phantom services at Nagios XI level; not present at Nag CCM
Posted: Wed Aug 05, 2015 10:26 am
All -
I have 'phantom' services attached and shown at the Nagios XI level for hosts that I never attached those services. The services and hosts at the Nagios CCM level do not show those services. I have no files in the static or import subdirectories.
On invoking Nagios CCM->Tools->Write Config files, I get warnings that look like this:
- Note that host host1 should not have these services - such as host2.cfg - and are not listed with the hosts or services .cfg files.
- No .cfg files I could find were large enough to have 58 or 37 lines.
[Warning: Duplicate definition found for service 'Validates MWG accepts a normal URL' on host 'Host1' (config file '/usr/local/nagios/etc/services/host2.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Validates MWG blocks a virus / malware URL' on host 'Host1' (config file '/usr/local/nagios/etc/services/host2.cfg', starting on line 58)
Warning: Duplicate definition found for service 'Validates MWG blocks a blocked URL' on host 'Host1' (config file '/usr/local/nagios/etc/services/host2.cfg', starting on line 37)
Warning: Duplicate definition found for service 'Validates MWG accepts a SSH connection' on host 'Host1' (config file '/usr/local/nagios/etc/services/host2.cfg', starting on line 16)
]
This issue developed (I believe) when I imported custom files I created.
I sequentially imported via cfgprep and CCM->Tools->Import Config Files three custom files I wrote from /usr/local/nagios/etc/cfgprep/orig:
These files are now at /usr/local/nagios/etc/cfgprep
- commands.cfg
- hosttemplates.cfg
- servicetemplates.cfg that shows as _empty_host.cfg as cfgprep'd; showtemplates has a 0 file size, and the contents are in _empty_host.cfg
==
What's an appropriate approach to trouble shoot this issue?
And thanks much for your time and insight.
I have 'phantom' services attached and shown at the Nagios XI level for hosts that I never attached those services. The services and hosts at the Nagios CCM level do not show those services. I have no files in the static or import subdirectories.
On invoking Nagios CCM->Tools->Write Config files, I get warnings that look like this:
- Note that host host1 should not have these services - such as host2.cfg - and are not listed with the hosts or services .cfg files.
- No .cfg files I could find were large enough to have 58 or 37 lines.
[Warning: Duplicate definition found for service 'Validates MWG accepts a normal URL' on host 'Host1' (config file '/usr/local/nagios/etc/services/host2.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Validates MWG blocks a virus / malware URL' on host 'Host1' (config file '/usr/local/nagios/etc/services/host2.cfg', starting on line 58)
Warning: Duplicate definition found for service 'Validates MWG blocks a blocked URL' on host 'Host1' (config file '/usr/local/nagios/etc/services/host2.cfg', starting on line 37)
Warning: Duplicate definition found for service 'Validates MWG accepts a SSH connection' on host 'Host1' (config file '/usr/local/nagios/etc/services/host2.cfg', starting on line 16)
]
This issue developed (I believe) when I imported custom files I created.
I sequentially imported via cfgprep and CCM->Tools->Import Config Files three custom files I wrote from /usr/local/nagios/etc/cfgprep/orig:
These files are now at /usr/local/nagios/etc/cfgprep
- commands.cfg
- hosttemplates.cfg
- servicetemplates.cfg that shows as _empty_host.cfg as cfgprep'd; showtemplates has a 0 file size, and the contents are in _empty_host.cfg
==
What's an appropriate approach to trouble shoot this issue?
And thanks much for your time and insight.