Cannot see imported services
Cannot see imported services
Have import cfg files from a old XI 2012 R1.7 to XI 5.2.3. On some hosts in the new xi i cannot see same services bind to the host like on the old xi server.
For example service Uptime , ping, cpu usage, memory usage is missing on the new xi.
1.Copy over all cfg files to .../usr/local/nagios/etc/cfgprep/orig
2. Run the php /usr/local/nagiosxi/tools/xiprepimport.php ./orig/service.cfg
3. Run Import the service from webinterface -> Import config file
4 Run the write config file -> verify config
All goes well, but the service cannot be found in the XI server?
For example service Uptime , ping, cpu usage, memory usage is missing on the new xi.
1.Copy over all cfg files to .../usr/local/nagios/etc/cfgprep/orig
2. Run the php /usr/local/nagiosxi/tools/xiprepimport.php ./orig/service.cfg
3. Run Import the service from webinterface -> Import config file
4 Run the write config file -> verify config
All goes well, but the service cannot be found in the XI server?
Re: Cannot see imported services
Did you follow the recommended importing order?
If there was an issue during the import, i.e. missing template, timeperiod, etc. your "problem" objects would be set as "inactive" in the CCM so that the apply configuration wouldn't fail. Go to the CCM and search for the missing objects. Try to activate them one by one and run the Write Config Tool to test the configuration. Fix config errors as you go.
Code: Select all
commands -> timeperiods -> contacttemplates -> contacts -> contactgroups ->hosttemplates -> hosts -> hostgroups -> servicetemplates -> services -> servicegroupsBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cannot see imported services
Hi.
Yes i did import them in this order, i have add new services.cfg files after the first import. Do i have to import servicegroup.cfg again after each new added service?
I cannot find missing object under CCM ( XI 5.2.3) ?
Under Admin i found undefined objects, its empty?
Yes i did import them in this order, i have add new services.cfg files after the first import. Do i have to import servicegroup.cfg again after each new added service?
I cannot find missing object under CCM ( XI 5.2.3) ?
Under Admin i found undefined objects, its empty?
Re: Cannot see imported services
Could you post your service.cfg file that you are having problems importing so we can check it for errors?
Do you get any errors when you import the file?
Do you get any errors when you import the file?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cannot see imported services
When i run the verify after import the file i get these warnings
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'VM Status for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1471)
Warning: Duplicate definition found for service 'Services for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1335)
Warning: Duplicate definition found for service 'Networking for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1214)
Warning: Duplicate definition found for service 'Memory for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 878)
Warning: Duplicate definition found for service 'Input / Output for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 562)
Warning: Duplicate definition found for service 'Datastore usage for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 338)
Warning: Duplicate definition found for service 'CPU Usage for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 307)
Warning: Duplicate definition found for service 'Drive D: Disk Usage' on host 'SLSV79v' (config file '/usr/local/nagios/etc/services/SL Windows Site Computer_Bus_AU_Virtual Train.cfg', starting on line 32)
Warning: Duplicate definition found for service 'Check NTP Drift' on host 'SLSV60ACC' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 155)
Warning: Duplicate definition found for service 'Check NTP Drift' on host 'SLRKXOLS' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 169)
Warning: Duplicate definition found for service 'Check NTP Drift' on host 'SLSV60' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 184)
Warning: Duplicate definition found for service 'CPU Usage for VMHost' on host 'SLesx2-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 307)
Warning: Duplicate definition found for service 'CPU Usage for VMHost' on host 'SLesx1-prod' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 307)
Warning: Duplicate definition found for service 'CPU Usage for VMHost' on host 'SLesx1-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 307)
Warning: Duplicate definition found for service 'Datastore usage for VMHost' on host 'SLesx2-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 338)
Warning: Duplicate definition found for service 'Datastore usage for VMHost' on host 'SLesx1-prod' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 338)
Warning: Duplicate definition found for service 'Datastore usage for VMHost' on host 'SLesx1-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 338)
Warning: Duplicate definition found for service 'Drive D: Disk Usage' on host 'SLSWLS35' (config fi
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'VM Status for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1471)
Warning: Duplicate definition found for service 'Services for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1335)
Warning: Duplicate definition found for service 'Networking for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 1214)
Warning: Duplicate definition found for service 'Memory for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 878)
Warning: Duplicate definition found for service 'Input / Output for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 562)
Warning: Duplicate definition found for service 'Datastore usage for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 338)
Warning: Duplicate definition found for service 'CPU Usage for VMHost' on host 'SLesx3-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 307)
Warning: Duplicate definition found for service 'Drive D: Disk Usage' on host 'SLSV79v' (config file '/usr/local/nagios/etc/services/SL Windows Site Computer_Bus_AU_Virtual Train.cfg', starting on line 32)
Warning: Duplicate definition found for service 'Check NTP Drift' on host 'SLSV60ACC' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 155)
Warning: Duplicate definition found for service 'Check NTP Drift' on host 'SLRKXOLS' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 169)
Warning: Duplicate definition found for service 'Check NTP Drift' on host 'SLSV60' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 184)
Warning: Duplicate definition found for service 'CPU Usage for VMHost' on host 'SLesx2-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 307)
Warning: Duplicate definition found for service 'CPU Usage for VMHost' on host 'SLesx1-prod' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 307)
Warning: Duplicate definition found for service 'CPU Usage for VMHost' on host 'SLesx1-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 307)
Warning: Duplicate definition found for service 'Datastore usage for VMHost' on host 'SLesx2-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 338)
Warning: Duplicate definition found for service 'Datastore usage for VMHost' on host 'SLesx1-prod' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 338)
Warning: Duplicate definition found for service 'Datastore usage for VMHost' on host 'SLesx1-Test' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 338)
Warning: Duplicate definition found for service 'Drive D: Disk Usage' on host 'SLSWLS35' (config fi
You do not have the required permissions to view the files attached to this post.
Re: Cannot see imported services
I sent you a PM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cannot see imported services
i have reply on that.
Think i dont have been clear of the issue. After the import and verify that dont show any error only the warnings of duplicates, the new imported service dont show up at all in the cmm-> services or under undefined objects.
One other reason thar we dont have done an upgrade is the old Nagios is runnning on unsupported CentOS 6.5
Think i dont have been clear of the issue. After the import and verify that dont show any error only the warnings of duplicates, the new imported service dont show up at all in the cmm-> services or under undefined objects.
One other reason thar we dont have done an upgrade is the old Nagios is runnning on unsupported CentOS 6.5
Re: Cannot see imported services
I have now discovered that the imported cfg files in ../cfgprep/ its empty so i have import empty files to Nagios those files i have successfully import, not wonder i cant find this files under services. I have tried to delete the file in cfgprep folder and import it again with
php /usr/local/nagiosxi/tools/xiprepimport.php /usr/local/nagios/etc/cfgprep/orig/'Solaris 10 Base Infrastructure.cfg' but they are still empty. I have tried with the solaris infrastructure... file you can see above and have send to you.
See attached file.
php /usr/local/nagiosxi/tools/xiprepimport.php /usr/local/nagios/etc/cfgprep/orig/'Solaris 10 Base Infrastructure.cfg' but they are still empty. I have tried with the solaris infrastructure... file you can see above and have send to you.
See attached file.
You do not have the required permissions to view the files attached to this post.
Re: Cannot see imported services
When you run:
you will see the the /usr/local/nagios/etc/cfgprep/'Solaris 10 Base Infrastructure.cfg' is empty, however there is another file in the same directory, called " _multiple_hosts.cfg". Have you tried importing this config?
Code: Select all
php /usr/local/nagiosxi/tools/xiprepimport.php /usr/local/nagios/etc/cfgprep/orig/'Solaris 10 Base Infrastructure.cfg'Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Cannot see imported services
Ok, so the Solaris Base 10 infra.. cfg file is empty and all is written into _multiple_hosts.cfg file?
After i import the _multiple_hosts.cfg file i got this error.
Error: Failed to expand host list 'localhost' for service 'Internet Access - Reaching google.com' (/usr/local/nagios/etc/services/_multiple_hosts.cfg:796) in the Verify applying
After i import the _multiple_hosts.cfg file i got this error.
Error: Failed to expand host list 'localhost' for service 'Internet Access - Reaching google.com' (/usr/local/nagios/etc/services/_multiple_hosts.cfg:796) in the Verify applying