From d63494dc1632d4f45c07d78ce1d110a0cabde31b Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 25 Jan 2016 18:18:21 +0100 Subject: [PATCH] moved to 'monitorix.cgi' default initialization of some configuration options --- monitorix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/monitorix b/monitorix index da6e1af..8579c4a 100755 --- a/monitorix +++ b/monitorix @@ -622,7 +622,7 @@ if(lc($config{httpd_builtin}->{enabled}) eq "y") { # make sure that some options are correctly defined if(!$config{global_zoom}) { logger("WARNING: the 'global_zoom' option is not valid or doesn't exist. Please consider upgrading your configuration file."); - $config{global_zoom} = 1; + # it's set in 'monitorix.cgi' } if(!$config{max_historic_years}) { logger("WARNING: the 'max_historic_years' option doesn't exist. Please consider upgrading your configuration file."); @@ -632,6 +632,10 @@ if($config{max_historic_years} > 5) { logger("WARNING: the 'max_historic_years' option exceeds the maximum years permitted (5)."); exit(0); } +if(!$config{image_format}) { + logger("WARNING: the 'image_format' option is not valid or doesn't exist. Please consider upgrading your configuration file."); + # it's set in 'monitorix.cgi' +} setpriority(0, 0, $config{priority} || 0);