lozzd/Nagdash

Getting an error with php while accessing nagdash

sureshhas89 opened this issue · 4 comments

Am getting an below error while am accessing nagdash URL.

[Wed Feb 28 07:36:25 2018] [error] [client 10.91.1.102] PHP Parse error: syntax error, unexpected '[' in /opt/dash/www/nagdash/htdocs/index.php on line 41

For testing purpose i added the same nagios.

$nagios_hosts = array(
array("hostname" => "savvisnagios", "port" => "8080", "protocol" => "http", "tag" => "DC1", "tagcolour" => "#336699"),
array("hostname" => "savvisnagios", "port" => "8080", "protocol" => "http", "tag" => "DC2", "tagcolour" => "#336699"),
array("hostname" => "savvisnagios", "port" => "8080", "protocol" => "http", "tag" => "DC3", "tagcolour" => "#336699"),
);

lozzd commented

Can you confirm what PHP version you are running?

Here is my php version

PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

lozzd commented

Ah, Nagdash requires at least PHP 5.4 (as stated in the requirements). 5.3.3 is very old at this point.

Great now working fine now.

Is it an option to get the active check disabled monitors in this report ?