Commit Graph

172 Commits

Author SHA1 Message Date
Jordi Sanfeliu e75909392a closing version 3.15.0 2022-12-07 08:56:36 +01:00
Jordi Sanfeliu 34fb8f7df9 updated generation of drop-down list of graphs for 'serv' module #115 2022-09-14 10:00:50 +02:00
Jordi Sanfeliu d557bc0149 fixed the usage message #322 2022-09-05 12:55:49 +02:00
Jordi Sanfeliu 09d02985a3 added the -e parameter in 'monitorix' to be able to send emailreports at any time #322 2022-08-02 09:56:24 +02:00
Andreas Bachlechner 8f7deef03f Updating the rrd needs to have the exculsive lock and emailreports do not need
to have a lock as it just creates an cgi request which has its own lock.
2022-02-23 13:23:43 +01:00
Andreas Bachlechner a739e5dacb Add rrd locking.
- Add an enable_rrd_lock config option to enable it.
- It creates a lock file and uses it via flock when reading and writing rrd files.
2022-02-23 11:55:15 +01:00
Andreas Bachlechner 53bd054a09 Add additional_graph_name config option.
This is an optional configuration option for configuration files
in include_dir. It takes a comma separated list of additional
modules that is appended to the graph_name option. This enables
you to add custom modules without changing the monitorix.conf or
copy all names from graph_name to your config file.
2022-01-30 14:25:15 +01:00
Jordi Sanfeliu ae6c04bad4 closing version 3.14.0 2022-01-18 10:34:50 +01:00
Jordi Sanfeliu 1f44f69b84 fixed to not treat option 'graph_name' as special as it ends up duplicating graphs 2021-08-31 09:18:07 +02:00
Jordi Sanfeliu de3cdc655e added support of the new argument '-s' also in monitorix.cgi 2021-05-31 12:31:04 +02:00
Jordi Sanfeliu 91cd716b8b added support of the new '-s' argument when loading the extra configuration file 2021-05-07 09:50:30 +02:00
Jordi Sanfeliu d635ae248a small cosmetic changes 2021-05-07 09:48:45 +02:00
Jordi Sanfeliu 6ec4b822ed added the new command line option '-s' to decide which part of a line in the config file will be the key and which one will be the value. The split policy accepts the values 'guess' (as the default), 'whitespace' and 'equalsign' 2021-05-06 18:58:11 +02:00
Jordi Sanfeliu fb7d048d8f fixed to include the reference to the -u option either in the usage text and in the monitorix(8) man page 2021-05-06 18:30:48 +02:00
Jordi Sanfeliu b17f34eb26 fixed to use options{u} instead of config{u} 2021-02-24 09:39:18 +01:00
Jordi Sanfeliu 0ad16e8a78 closing version 3.13.1 2021-01-27 11:22:27 +01:00
Jordi Sanfeliu c0d8f8ddd4 closing version 3.13.0 2021-01-22 08:56:50 +01:00
Jordi Sanfeliu 43c2e93f1a Fixed the behavior of the options in the extra configuration file.
A configuration file can contain sections, subsections and even
subsubsections in the form of:

<gensens>	<-- this is a section or module
	<list>		<-- this is a subsection
		0 = temp0
		1 = cpu0
		2 = bat0
	</list>
	...

If you plan to create an extra configuration file in 'conf.d/', you
must know that, from now on, you'll be forced to define the whole
subsection even when you are changing only a single value of it.
Otherwise your results might vary from what you expect.

For instance, imagine you want to monitor a second CPU in the
'gensens' module. You will create an extra configuration file in
'conf.d/' to include a second CPU (cpu1) in the key '1' inside the
subsection 'list'. In that case your extra configuration file
should define the section 'gensens' as this:

<gensens>
	<list>
		0 = temp0
		1 = cpu0, cpu1
		2 = bat0
	</list>
</gensens>

That is, you must include the whole subsection 'list' with all the
rest of options. The rest of subsections of 'gensens' are not needed
because they have not been changed. Monitorix will use the subsections
configured in the main configuration file.
2021-01-14 13:03:54 +01:00
Jordi Sanfeliu 99de27a735 use the right variable when loading the .css file 2020-12-03 11:26:25 +01:00
Jordi Sanfeliu ee0e84a81d removed old theming-related variables 2020-12-03 11:25:47 +01:00
z-eos a84b77e57c css files added 2020-11-05 18:07:55 +02:00
z-eos 809029169e css introduced to monitorix file 2020-11-05 17:59:17 +02:00
Jordi Sanfeliu ed845d871a added support to be able to run as a regular user #288 2020-10-28 09:08:55 +01:00
Jordi Sanfeliu f08de56634 make sure that the option 'default_option_when_all' defaults to 'System load' 2020-10-26 12:14:10 +01:00
Jordi Sanfeliu 15b15411c7 remove 'Use of uninitialized value text_when_all' message 2020-10-26 11:57:30 +01:00
Jordi Sanfeliu 45de1df780 upon receipt of a SIGHUP do nothing if the log file is not specified #268 2020-09-07 09:47:16 +02:00
Jordi Sanfeliu 80217b1420 added support to logging on the standard file descriptors #268 2020-09-02 11:41:16 +02:00
Jordi Sanfeliu 80efbfe69b fixed the HTTP built-in responsiveness check to use the value of the option 'host' #278 2020-05-05 09:37:00 +02:00
Jordi Sanfeliu cf3cd9e9a7 closing 3.12.0 2020-02-21 10:36:35 +01:00
Jordi Sanfeliu 9a1bc4193b relax some warning messages about options not defined 2020-02-17 09:41:43 +01:00
Jordi Sanfeliu a40ee124e4 relax some warning messages about options not defined 2020-02-17 09:19:13 +01:00
Jordi Sanfeliu fe05c32185 make the option 'use_external_firewall' global #262 2019-11-21 09:51:31 +01:00
Jordi Sanfeliu 86bcee0fc3 make function 'flush_accounting_rules' aware of this new option 2019-11-20 17:13:57 +01:00
Jordi Sanfeliu ad2b7eee37 returns an original line #249 2019-08-27 17:15:15 +02:00
Jordi Sanfeliu 6ee6eabb03 do not auto-restart the built-in HTTP server if it returned '401 Access Denied' #249 2019-08-27 17:10:29 +02:00
Jordi Sanfeliu ad55557ef1 fixed the 'gensens' names in the right side list of the main page #170 2019-05-03 09:06:41 +02:00
Jordi Sanfeliu 0619d25ec1 completely rewritten the 'gensens.pm' module which includes now battery values as its third supported sensor #170 2019-05-02 15:46:57 +02:00
Jordi Sanfeliu 638ca91bdd
Merge pull request #231 from duc996/fix_blocked_main_loop
Fix bug fixes #230 where the main loop sleeps forever.
2019-04-30 09:52:02 +02:00
Jordi Sanfeliu 2b578d626d small cosmetic change 2019-04-10 15:50:05 +02:00
Georg Hofmann 2ada996f95 Fix bug where the main loop sleeps forever.
On some system the alarm & pause sequence breaks with high system loads.
2019-04-01 12:35:22 +02:00
Jordi Sanfeliu a03a70d3ef closing 3.11.0 2019-03-14 15:41:20 +01:00
Jordi Sanfeliu 9527c0233b small updates to syncronize nomenclature 2019-03-13 09:05:34 +01:00
Jordi Sanfeliu 8b289d879f New option 'default_option_when_all' for Multihost mode
Now that in Multihost mode anyone can select the option "All" in the Hostname list and "All graphs" in the Graph list, this may, accidentally, hang the browser for a while due to the huge amount of images to download remotely from different servers.

In order to prevent precisely that, this new option defines which option in the Graph list will be selected ("System load" by default) automatically when the user selects 'All' in the Hostname list.

Of course, the user is still able to change it to "All graphs" at any moment, and at his own risk :-). #216
2019-03-09 20:28:32 +01:00
Jordi Sanfeliu e796f6652d Added a new option called 'autocheck_responsiveness' for the HTTP built-in
There is a well known problem with the HTTP built-in server that Monitorix
implements using the Perl module 'HTTP::Server::Simple'. It looks like it's
pretty weak to the common attacks that any web server receives every day.

As a consequence of that, it just hangs, and when you want to see the stats of
your server, you just see your browser waiting for a response that never comes,
which ends up with a timeout. In these cases, you are forced to login to your
server and restart Monitorix, in order to refresh the HTTP built-in server.

I was frustrated because I was completely unable to reproduce locally the kind
of attack that seems to do a DoS to the HTTP built-in server, so in order to
mitigate (hopefully) all this annoying hangups, I've created an autocheck to
control the responsiveness of the HTTP server on every minute, and in case of
no response then it will be restarted automatically. This is controlled by a new
option called 'autocheck_responsiveness' which by default is enabled.

Let's see how this is working!
2019-02-28 09:41:55 +01:00
Jordi Sanfeliu d4d76d775d Restart HTTP built-in on every SIGHUP
Now the HTTP built-in will be restart every time Monitorix received the
SIGHUP signal. This should also fix thos annoying sporadic hangups of the
HTTP server, and also a truncation in the recent rotated logfile.
2018-10-17 11:54:05 +02:00
Jordi Sanfeliu 3fd7a094b4 Fixed the 777 permission bits in the 'imgs/' directory
Removed the default installation 777 permission bits mode for the '/imgs/
directory in 'docs/monitorix.spec' and 'Makefile'.

Forced to setup the owner, group and the permission bits (now to 755) to the
'imgs/' directory every time Monitorix is started.
2018-10-04 12:51:33 +02:00
Jordi Sanfeliu 9fa1c0659f fix the use of an uninitialized variable if the configuration file supplied doesn't exist 2018-07-06 09:06:59 +02:00
Jordi Sanfeliu fd52846ea4 small corrections 2018-03-19 12:31:35 +01:00
Jordi Sanfeliu 31b1752ff8 small fixes 2018-03-06 09:57:50 +01:00
Jordi Sanfeliu a812931056 fixed to set permissions 0600 to log files 2018-03-05 16:54:36 +01:00