I try to implement the nagios mobile in a groundwork/nagios solution. I can access the webpage succesfully but no host/service informtion are shown. In the php log I can examine such messages:
[04-May-2012 11:32:26] PHP Warning: Variable passed to each() is not an array or object in /usr/local/groundwork/nagiosmobile/includes/functions.inc.php on line 187
[04-May-2012 11:32:26] PHP Warning: Invalid argument supplied for foreach() in /usr/local/groundwork/nagiosmobile/includes/displayfunctions.inc.php on line 394
[04-May-2012 11:32:34] PHP Warning: Variable passed to each() is not an array or object in /usr/local/groundwork/nagiosmobile/includes/functions.inc.php on line 187
[04-May-2012 11:32:38] PHP Warning: Variable passed to each() is not an array or object in /usr/local/groundwork/nagiosmobile/includes/functions.inc.php on line 187
[04-May-2012 11:32:38] PHP Warning: Invalid argument supplied for foreach() in /usr/local/groundwork/nagiosmobile/includes/displayfunctions.inc.php on line 320
[04-May-2012 11:32:43] PHP Warning: Variable passed to each() is not an array or object in /usr/local/groundwork/nagiosmobile/includes/functions.inc.php on line 187
[04-May-2012 11:32:46] PHP Warning: Variable passed to each() is not an array or object in /usr/local/groundwork/nagiosmobile/includes/functions.inc.php on line 187
[04-May-2012 11:32:46] PHP Warning: Invalid argument supplied for foreach() in /usr/local/groundwork/nagiosmobile/includes/displayfunctions.inc.php on line 394
[04-May-2012 11:37:00] PHP Warning: Variable passed to each() is not an array or object in /usr/local/groundwork/nagiosmobile/includes/functions.inc.php on line 187
[04-May-2012 11:40:34] PHP Warning: Variable passed to each() is not an array or object in /usr/local/groundwork/nagiosmobile/includes/functions.inc.php on line 187
My include.inc.php looks like:
$STATUS_FILE = "/usr/local/groundwork/nagios/var/status.dat";
$COMMAND_FILE = "/usr/local/groundwork/nagios/var/spool/nagios.cmd";
$CGI_FILE = "/usr/local/groundwork/nagios/etc/cgi.cfg";
$OBJECTS_FILE = "/usr/local/groundwork/nagios/var/objects.cache";
$BASE_URL = '/mobile';
$TTL = 30; //Time to live for cached data parsed from status and objects file
$USER = ''; //you can hard-code the 'nagiosadmin' if you don't want any authentication: NOT RECOMMENDED!!
My someone can help me.
With best regards from germany...
