Page 1 of 1

NagiosXI cr-serviceextinfo.cfg import 1KB

Posted: Wed Apr 01, 2020 9:29 am
by jdk
Folks - relatively new to nagios and I am working through a migration from an older Core 2.5 to NagiosXI - going okay so far, with the exception of the serviceextinfo.cfg file.

After I run the php /usr/local/nagiosxi/tools/xiprepimport.php orig/cr-serviceextinfo.cfg prep tool, I perform the import of the file into NagiosXI using the GIU, however I have noted that the file is only 1KB in size and when I open the file there are no contents.

So when I tried to import a host I get the following style of message

Error: Could not find a service matching host name 'cr-b11-ap05.wap' and description '0' (config file '/usr/local/nagios/etc/serviceextinfo.cfg', starting on line 1232)
Error: Could not expand services specified in extended service info (config file '/usr/local/nagios/etc/serviceextinfo.cfg', starting on line 1232)

I am assuming this is because the serviceextinfo.cfg does not contain the information required for the service - so how do I get this information imported into NagiosXI?

Are there any amendments I need to make to my host or service cfg files before I import them to stop them referencing the serviceextinfo.cfg file.

Regards

John

Now I know that extinfo objects are deprecated - what is the alternative for trending and graphing in NagiosXI?

Re: NagiosXI cr-serviceextinfo.cfg import 1KB

Posted: Wed Apr 01, 2020 4:38 pm
by cdienger
Per https://assets.nagios.com/downloads/nag ... tions.html serviceextinfo definitions are depreciated in 4 and will be removed eventually. The link also points out that directives handled by serviceextinfo definitions are now available in service definitions so everything should now be put in a service definition.

Feel free to PM me a copy of the original configuration if the above doesn't help sort things out.

Graphing is handled by PNP4Nagios.