diff --git a/Changes b/Changes index 2201b2e..942d6bf 100644 --- a/Changes +++ b/Changes @@ -12,9 +12,11 @@ N.N.N - DD-MMM-2015 (suggested by Pete Perfetti, pete.perfetti AT protonmail.com) - Added the new option 'priority' to set the priority value in which Monitorix will run. -- Added the new option "image_format" to specify the file format of each +- Added the new option 'image_format' to specify the file format of each generated graph. [#132] - Added name substring match in 'process.pm'. [#136] +- Added the new option 'enable_hourly_view' which enables the ability to select + the hourly view in the main page. - Fixed in 'libvirt.pm' limiting to 100 all CPU values greater than 100. - Fixed in 'libvirt.pm' to hide empty groups. (thanks to Pavel Bauer, pbauer AT algotech.cz for pointing this out) diff --git a/man/man5/monitorix.conf.5 b/man/man5/monitorix.conf.5 index 833817d..5273593 100644 --- a/man/man5/monitorix.conf.5 +++ b/man/man5/monitorix.conf.5 @@ -191,6 +191,15 @@ An example would be: \fIhttp://myexternalwebsite.com\fP Default value: .RE .P +.BI enable_hourly_view +.RS +This option enables or disables the ability to select the hourly view in the main page. +.P +No .rrd file will change by selecting this option and the historical data won't be affected. +.P +Default value: \fIn\fP +.RE +.P .BI base_dir .RS This is the absolute path to the directory where all the web elements are located: diff --git a/monitorix b/monitorix index 8579c4a..ce9236e 100755 --- a/monitorix +++ b/monitorix @@ -354,6 +354,18 @@ EOF

+EOF + + if(lc($config{enable_hourly_view} || "") eq "y" ) { + print(OUT < + + Hourly  + +EOF + } + + print(OUT < Daily