Page 1 of 1

Can't Create Any Hosts Or Services

Posted: Sat Oct 14, 2017 7:58 am
by santec
Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... 16&t=45029
In the future, please create a new thread and link to the old one instead of adding on.


Has this PHP errors been fixed?

Likely we have the same sort of kind problem.

Most of the entries that get clicked in the Core config manager. Entries inside: Host Templates, Service Templates, Host Groups, Hosts, Services... take too long to load and so being displayed. Every entry that takes too long to load there are errors like:

PHP Warning: Invalid argument supplied for foreach() in /NAGIOS/nagiosxi/html/includes/utils-macros.inc.php on line 34, referer: http://HOSTNAME/nagiosxi/includes/compo ... sttemplate

PHP Warning: explode() expects parameter 2 to be string, array given in /NAGIOS/nagiosxi/html/includes/utils-macros.inc.php on line 33, referer: http://HOSTNAME//nagiosxi/includes/comp ... cetemplate

PHP Warning: Invalid argument supplied for foreach() in /NAGIOS/nagiosxi/html/includes/utils-macros.inc.php on line 34, referer: http://HOSTNAME/nagiosxi/includes/compo ... cetemplate

There are entries in which we don't have this problem. Entries inside: Service groups, Contact Templates, >_Commands...

Our Nagios version is XI 5.4.8.

Re: Can't Create Any Hosts Or Services

Posted: Mon Oct 16, 2017 10:28 am
by kyang
When did you start noticing this error?

Could you PM your profile? You can download it by going to Admin > System Config > System Profile and click the Download Profile button in the top right corner