Commit Graph

990 Commits

Author SHA1 Message Date
Jordi Sanfeliu dccf48bad5 added an alternative mechanism for systems with old 'ps' command lacking of 'etimes' option #311 2022-01-12 12:44:08 +01:00
Jordi Sanfeliu ebcc7e514a fix the '--full-size-mode' parameter to not break backwards compatibility with older versions of RRDtool #342 2022-01-12 10:26:58 +01:00
Jordi Sanfeliu bb7ae5ad55
Merge pull request #380 from bachandi/fix_nvme_non_extended_plot
Fix nvme non extended plot version.
2022-01-11 08:12:47 +01:00
Andreas Bachlechner 75b3b7e037 Handle unspecified alerts section in nvme.pm 2022-01-10 20:55:36 +01:00
Andreas Bachlechner 56a9b21095 Fix nvme non extended plot version.
The selection of plots that need alternative scaling was not set
for the non extended version of the nvme plots.
2022-01-10 20:39:28 +01:00
Jordi Sanfeliu 7c86c5d77f make more portable a hash reference to a scalar variable #378 2021-12-23 16:21:57 +01:00
David Hummel 363267c34f Indentation update 2021-12-21 18:59:52 -07:00
David Hummel a6bff83c90 Clean up a little bit more 2021-12-21 18:48:12 -07:00
David Hummel 1d9a0f0353 Use sprintf for HTML elements 2021-12-21 18:36:24 -07:00
David Hummel 0ff19e09b6 Cleaned up the new functions a bit 2021-12-21 18:16:37 -07:00
David Hummel 6a3756943c Import ceil from POSIX rather than using POSIX::ceil 2021-12-21 17:35:23 -07:00
David Hummel 14b32dd993 Added 2 functions (img_element & picz_a_element) & renamed picz_js_link 2021-12-21 17:24:55 -07:00
David Hummel 92eaaa4f5a Use --full-size-mode for zoomed images 2021-12-21 16:08:14 -07:00
David Hummel a250c684a7 Fix for `image_format = svg` (as opposed to `image_format = SVG`) 2021-12-21 09:06:03 -07:00
David Hummel 7afc48f3b0 Removed remaining trailing spaces 2021-12-21 08:49:47 -07:00
David Hummel 955f61f4b6 Fix for issue in Chrome/Chromium 2021-12-21 08:33:35 -07:00
David Hummel abd4986678 Applied edits from fc63b67940 to new files 2021-12-21 08:26:52 -07:00
David Hummel 02f0e09388 Merge remote-tracking branch 'upstream/master' 2021-12-21 08:20:41 -07:00
David Hummel fc63b67940 Added function for picz js links 2021-12-20 21:24:23 -07:00
David Hummel ba9f7040e9 Revert "Fixed `zoomed image won't fit in the pop-up window` for SVG image_format"
This reverts commit 3dfe4972c5.
2021-12-20 17:47:36 -07:00
Andreas Bachlechner 2c260bb46d Fixes a wrong array size check.
It is not wise to check the end of an array by looking at its content.
A "0" is otherwise used as invalid array entry.
Replaced this usage in nvidiagpu.pm and amgpu.pm by comparing indices with the size directly.
2021-12-20 11:27:06 +01:00
Jordi Sanfeliu 0ad6f5af62
Merge pull request #369 from bachandi/nvidiagpu
Add nvidiagpu.pm with more sensor readings.
2021-12-20 09:59:38 +01:00
Jordi Sanfeliu ae8985f50a fix indentation #367 2021-12-16 09:42:18 +01:00
Jordi Sanfeliu 1421d1b528 fix indentation #352 2021-12-16 09:40:07 +01:00
Jordi Sanfeliu 28bae74d22 fixed some possible undefined values in 'bind.pm' #374 2021-12-13 16:48:18 +01:00
Andreas Bachlechner bb294834c2 Fix format 2021-12-10 12:26:41 +01:00
Andreas Bachlechner f16ac2e956 Revert "remove superfluous if lines #367"
This reverts commit 41d5f6eab4.
2021-12-10 12:24:18 +01:00
Andreas Bachlechner 8e89baa6f4 Fix format in nvidiagpu.pm for better readability. 2021-12-10 12:19:02 +01:00
Andreas Bachlechner 2b4569f9e7 Revert "Remove superfluous if lines."
This reverts commit 0981418195.
2021-12-10 12:18:26 +01:00
Jordi Sanfeliu 41d5f6eab4 remove superfluous if lines #367 2021-12-10 11:44:58 +01:00
Andreas Bachlechner 0981418195 Remove superfluous if lines. 2021-12-10 11:37:09 +01:00
Andreas Bachlechner 1cb4c08707 Add nvidiagpu.pm with more sensor readings 2021-12-10 11:11:21 +01:00
Jordi Sanfeliu 3bb03e983b fixed some indentations #367 2021-12-10 10:50:16 +01:00
Jordi Sanfeliu a2008d488e
Merge pull request #368 from bachandi/amdgpu
Add amdgpu.pm
2021-12-10 10:19:02 +01:00
Andreas Bachlechner 00a8ac0cdd Fix more indentations. 2021-12-09 18:22:42 +01:00
Andreas Bachlechner d4adf2d43f Change amdgpu config logic.
- Devices are no independent identigiers in a list.
- Sensors specify the absolute path to the file containing the information.
- Unavailable sensors have to be left blank.
- Some indentations fixes.
2021-12-09 18:02:11 +01:00
Andreas Bachlechner 7782bab86e Update amdgpu sensor order. 2021-12-05 09:23:52 +01:00
Andreas Bachlechner 7d1001a9ed A bit cleanup 2021-12-03 21:26:37 +01:00
Andreas Bachlechner d7815ca313 Add amdgpu.pm 2021-12-03 18:33:55 +01:00
Andreas Bachlechner f96630a366 Add alternative axis scaling to the nvme TBW plot for better visibility.
Otherwise the plot scaling to coarse.
2021-12-02 21:50:28 +01:00
Jordi Sanfeliu 3a04cec397 fix indentation #352 2021-11-16 18:37:30 +01:00
Andreas Bachlechner bb96292ce9 Remove superfluous variable. 2021-10-22 07:41:09 +02:00
Andreas Bachlechner 45b1d5782c Add show_current_values option to nvme. 2021-10-22 07:41:09 +02:00
Andreas Bachlechner 03ccbc6a37 Add show_extended_plots option to nvme. 2021-10-22 07:41:09 +02:00
Andreas Bachlechner ca575e5dba Simplify temp scale code. 2021-10-22 07:41:09 +02:00
Andreas Bachlechner 5db98e37bf Reduce code duplication. 2021-10-22 07:41:09 +02:00
Andreas Bachlechner 8d282e997f Add more plots to nvme. 2021-10-22 07:41:09 +02:00
Andreas Bachlechner b47e93ce7a Fix img size and reduce rrds. 2021-10-22 07:41:09 +02:00
Andreas Bachlechner 76b0655b22 Add gap_on_all_nan option 2021-10-22 07:41:09 +02:00
Andreas Bachlechner c87fe89db4 Add use_nan_for_missing_data to nvme.pm 2021-10-22 07:41:09 +02:00
Andreas Bachlechner 1dfa33d662 Reduce boilerplate. 2021-10-22 07:41:09 +02:00
Andreas Bachlechner 88f790fb55 Remove hddtemp usage in nvme.pm as it doesn't support nvme at the moment. 2021-10-22 07:41:09 +02:00
Andreas Bachlechner 1888ff027e Add nvme.pm
It can be configured via:
<nvme>
        <list>
                0 = /dev/nvme0
        </list>
        rigid = 0
        limit = 10
        <alerts>
                availspare_enabled = n
                availspare_timeintvl = 0
                availspare_threshold = 1
                availspare_script = /path/to/script.sh
                percentused_enabled = n
                percentused_timeintvl = 0
                percentused_threshold = 1
                percentused_script = /path/to/script.sh
        </alerts>
</nvme>
2021-10-22 07:41:09 +02:00
Jordi Sanfeliu 4a52fdb3fa
Merge pull request #357 from bachandi/disk_standby
Respect disk standby and nan for missing values.
2021-10-14 10:08:49 +02:00
Andreas Bachlechner 9a58d8462a Revert "Add refresh_interval option to disk.pm."
This reverts commit 2c4eaa2a69.
2021-10-14 08:29:35 +02:00
Andreas Bachlechner 2c4eaa2a69 Add refresh_interval option to disk.pm.
A smart request does reset the standby timer of the disk. If standby is
desired the refresh_interval needs to be at least twice as large as the
standby time to avoid calls that would reset the timer before the disk
goes sleeping.
2021-10-14 00:51:15 +02:00
Andreas Bachlechner 182d47ad46 Fix indentation. 2021-10-13 23:49:10 +02:00
Andreas Bachlechner 2358b9f699 Revert "Also the symbolic link check wakes up the disks."
This reverts commit c840dee92e.
2021-10-13 23:48:12 +02:00
Andreas Bachlechner c840dee92e Also the symbolic link check wakes up the disks. 2021-10-13 08:41:36 +02:00
Andreas Bachlechner 6962da4fe4 Fix nan handling of alternative temperature sources. 2021-10-11 17:17:28 +02:00
Andreas Bachlechner 09e2354950 Fix format. 2021-10-11 16:48:41 +02:00
Jordi Sanfeliu fd3a4aa46f removed extra parenthesis #349 2021-10-11 11:15:08 +02:00
Andreas Bachlechner ac257d3b41 Add gap_on_all_nan option to disk.pm 2021-10-10 00:39:38 +02:00
Andreas Bachlechner d0c81115a2 Add use_nan_for_missing_data opton to disk.pm 2021-10-10 00:39:38 +02:00
Andreas Bachlechner 276e04fd83 Add respect_standby to disk.pm to avoid waking up sleeping disks. 2021-10-10 00:39:33 +02:00
Andreas Bachlechner 8231a18fb1 Change nan creation location 2021-10-08 01:48:58 +02:00
Andreas Bachlechner 4b6b3bfc08 Only create the nan once per loop. 2021-10-07 18:52:25 +02:00
Andreas Bachlechner 4f33fd727c Add options to use nan instead of 0 for missing data and to show gaps
only if all data are invalid.

- use_nan_for_missing_data = y
- gap_on_all_nan = y

This is useful if missing data could otherwise be misinterpreted as valid.
Default behaviour does not change.
2021-10-06 12:17:24 +02:00
Andreas Bachlechner 53b52d748d Fix du refresh interval setting for values that are not multiples of 60. 2021-09-30 16:31:03 +02:00
Jordi Sanfeliu 7f6d63d7b5
Merge pull request #354 from bachandi/ipmi_rigid_list
Fix rigid and limit value usage.
2021-09-30 10:08:34 +02:00
Andreas Bachlechner 7d13171e35 Fix rigid and limit value usage.
Before only the first value was used for all plots.
2021-09-30 10:00:04 +02:00
Jordi Sanfeliu 6c024fc835
Merge pull request #353 from bachandi/du_refresh_interval
Disk usage refresh interval
2021-09-30 09:19:33 +02:00
Andreas Bachlechner 552be17e39 Change refresh_interval from minutes to seconds. 2021-09-30 08:41:55 +02:00
Andreas Bachlechner d1d5d5510e Also tune the rrd heartbeat to the refresh interval. 2021-09-29 14:07:04 +02:00
Jordi Sanfeliu af8dd97e74
Merge pull request #350 from bachandi/gensens_units
Simplify unit correction in gensens.
2021-09-29 09:12:43 +02:00
Andreas Bachlechner a755957380 Add refresh_interval option in minutes to du.pm 2021-09-28 13:12:35 +02:00
Jordi Sanfeliu 5a9e968144
Merge pull request #348 from bachandi/smbcounter
Fix smb counter in user.pm in case smb is not installed.
2021-09-28 08:44:43 +02:00
Andreas Bachlechner c2d2853d89 Simplify unit correction in gensens.
Remove limit of units having to be in powers of 10
by using a division by the unit incase it is not 0.
2021-09-27 17:52:02 +02:00
Andreas Bachlechner 247693f24b Fix variable name to snake_case style. 2021-09-27 17:34:36 +02:00
Andreas Bachlechner ac8b4a0eae Fix smb counter in user.pm in case smb is not installed.
Before the smb value was -1 if no smbstatus was found, resulting in -nan values.
Now the behaviour is the same as for macusers.
2021-09-24 14:43:43 +02:00
Andreas Bachlechner b8f9d73a94 Add arguemt usage to cmd option in ambsens. 2021-09-24 11:15:43 +02:00
Andreas Bachlechner 93f0e4639c Add byte graph in bytes to gensens via 'byt' identifier. 2021-09-23 12:09:41 +02:00
Andreas Bachlechner 8fc243df90 Add pct graph in Percent (%) to gensens via 'pct' identifier. 2021-09-23 10:23:24 +02:00
Andreas Bachlechner 4f4428230e Add fan graph in RPM to gensens via 'fan' identifier. 2021-09-23 10:20:27 +02:00
Andreas Bachlechner ce912059b4 Add power graph in Watts to gensens via 'pwr' identifier. 2021-09-23 10:15:26 +02:00
David Hummel 3dfe4972c5 Fixed `zoomed image won't fit in the pop-up window` for SVG image_format 2021-08-25 13:36:13 -07:00
Jordi Sanfeliu e06aa33218 fixed (by just commenting out some lines) the <map> option in 'disk.pm' 2021-08-03 09:52:12 +02:00
Jordi Sanfeliu e12df74724 fixed to honour the <map> option on graphs 2 and 3 in 'disk.pm' 2021-08-03 09:45:13 +02:00
Jordi Sanfeliu c792ebbfa7 added the option to prefix fan values to be able to select between rpm and percentages #325 2021-05-24 11:58:54 +02:00
Jordi Sanfeliu 326f0fcd23 added the option 'cmd' in 'lmsens.pm', which defaults to 'sensors', to be able to help to add sensors values not covered by LM-Sensors #325 2021-05-20 13:02:41 +02:00
Jordi Sanfeliu 9b28b53374 fixed the legend in 'nvidia.pm' graphs to respect the 'max' value #330 2021-05-18 10:51:24 +02:00
Jordi Sanfeliu 4bd1dfc600 added support for IPv6 addresses in 'traffacct.pm' 2021-05-11 11:36:43 +02:00
Jordi Sanfeliu 8b0b32dbdc added the option 'time_unit' in 'system.pm' to set the scale of the uptime graph #331 2021-05-05 15:48:54 +02:00
Jordi Sanfeliu 4634892241 corrected the title name in the zoomed graph #311 2021-05-05 12:23:40 +02:00
Jordi Sanfeliu d4999553a2 added the option 'time_unit' in 'process.pm' to set the scale of the uptime graph #311 2021-05-04 18:31:15 +02:00
Jordi Sanfeliu 002dd98b8c changed the way how the 'cmd' option works in 'port.pm', executing directly the command defined on it (without args) unless undefined in which case continues defaulting to 'ss' 2021-04-23 18:51:19 +02:00
Jordi Sanfeliu 4751319260 added graph of process' uptime in 'process.pm' #311 2021-04-23 08:23:52 +02:00
Jordi Sanfeliu cbcf2557b3 added support in 'process.pm' for systems with different PID max value defined in '/proc/sys/kernel/pid_max' 2021-04-22 07:52:05 +02:00
Jordi Sanfeliu 9134aebfb7 updated the copyright year 2021-04-21 16:49:11 +02:00
Jordi Sanfeliu d0f70154bc added support to get temperature values for gpu[n] keys using the output of 'lmsensors' #320 2021-04-14 10:35:44 +02:00
Jordi Sanfeliu 2624f86858 added socket file support to 'redis.pm' #316 2021-04-07 11:22:29 +02:00
Jordi Sanfeliu d4f82e2752 fixed to include the DBI->connect parameter 'dbname=postgres' in 'pgsql.pm' to avoid connection problems #310 2021-02-01 10:48:40 +01:00
Jordi Sanfeliu d6816e20da fixed a security bug introduced in 3.13.0 version that lead the HTTP built-in server to bypass Basic Authentication when the option 'hosts_deny' is not defined #309 2021-01-27 10:45:41 +01:00
Jordi Sanfeliu 5f77eeeea3 reduced the number of padding lines in 'phpfpm.pm' 2021-01-27 10:44:11 +01:00
Jordi Sanfeliu bc71c9351e 'tinyproxy.pm' now emulates the 'to_literal_list' method to keep backwards compatibility with older versions of Perl-XML-LibXML 2021-01-13 18:51:53 +01:00
Jordi Sanfeliu 5cb9c4e398 updated the copyright year #84 2021-01-07 11:14:06 +01:00
Jordi Sanfeliu 556c3e593d Fixed de scalar of Data Segments (DS) on the textmode interface in modules:
- apache.pm
- chrony.pm
- nut.pm
- pagespeed.pm
- tinyproxy.pm
2021-01-07 10:59:37 +01:00
Jordi Sanfeliu 85a0360d45 updated the copyright year in 'ambsens.pm' and 'redis.pm' modules 2021-01-07 10:58:32 +01:00
Jordi Sanfeliu 3ca311b24a added a complete graph to support PostgreSQL statistics ('pgsql.pm'). #84 2021-01-05 12:56:37 +01:00
Jordi Sanfeliu 5705b83cac small alignment 2021-01-04 12:22:21 +01:00
Jordi Sanfeliu 3bdbf29c31 fixed the fetching code that retrieves the uptime value in 'wowza.pm' 2021-01-04 10:38:29 +01:00
Jordi Sanfeliu 7b9725be1b fixed to a more readable scale the graphs of memory usage and store directory stats in 'squid.pm' 2020-12-30 17:54:44 +01:00
Jordi Sanfeliu 8e5b87fa30 changed lines thickness in 'squid.pm' 2020-12-30 17:25:58 +01:00
Jordi Sanfeliu 98eda3e8e5 fixed the fetching code to retrieve the uptime value in 'redis.pm' #140 2020-12-30 16:42:51 +01:00
Jordi Sanfeliu 5fe541fa04 dixed the fetching code to retrieve the uptime value in 'phpfpm.pm' 2020-12-30 16:32:04 +01:00
Jordi Sanfeliu bfc5bbeda8 fixed the internal structure of 'ambsens.pm'
An implementation bug prevented it from having negative values.

*** 'ambsens.rrd' must be created again for the changes to take effect ***

Sorry for the inconvenience.
2020-12-09 10:18:36 +01:00
Jordi Sanfeliu 08b3acdbd6 converted the rest of graphs to CSS #306 2020-12-03 09:42:17 +01:00
Jordi Sanfeliu 9aa0a1c4ab converted a list of graphs to CSS #306 2020-11-30 12:34:19 +01:00
Jordi Sanfeliu e78ef4d99d added in the ability to specify the command to get Unbound stats. #302 2020-11-23 10:26:43 +01:00
Jordi Sanfeliu ae3bf91072 increased the size of the title of graphs in 'proc.pm' 2020-11-20 09:20:40 +01:00
Jordi Sanfeliu 421f020bba converted a list of graphs to CSS #306 2020-11-20 09:15:58 +01:00
Jordi Sanfeliu f7b2904bf8
Merge pull request #300 from z-eos/monitorix.cgi-css
css introduced to monitorix.cgi file
2020-11-11 16:44:46 +01:00
z-eos 47bf33b463 issue #303 fix 2020-11-09 21:28:09 +02:00
z-eos 53211c652b issue #303 fix withdrawal 2020-11-09 21:23:17 +02:00
z-eos c4dfbd3bde issue #303 fix 2020-11-09 21:19:28 +02:00
z-eos 224b6d81e0 css introduced to monitorix.cgi file 2020-11-05 21:27:02 +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 d3c775fa4e fixed a typo 2020-10-26 10:42:22 +01:00
Jordi Sanfeliu c46a528417 added a complete graph to support Redis statistics #140 2020-10-26 10:38:09 +01:00
Jordi Sanfeliu a9fa2e9a8a added a complete graph to support Tinyproxy statistics ('tinyproxy.pm') 2020-10-19 10:30:43 +02:00
Jordi Sanfeliu b154c3eab0 fixed an incorrectly misspelled variable in 'traffacct.pm' #289 2020-09-25 10:17:34 +02:00
Jordi Sanfeliu 30c2e2bfb9 included also the log_file option of the HTTP built-in in this new support #268 2020-09-08 08:10:59 +02:00
Jordi Sanfeliu 031f6e3913 added new 'separated' visualization mode in 'squid.pm' #217 2020-07-20 09:59:40 +02:00
Jordi Sanfeliu c416002290 added new 'separated' visualization mode in 'mongodb.pm' #217 2020-07-17 11:18:12 +02:00
Jordi Sanfeliu 63712884e4 added new 'separated' visualization mode in 'mysql.pm' #217 2020-07-17 11:16:30 +02:00
Jordi Sanfeliu 5d224266e8 added new 'separated' visualization mode in 'nginx.pm' #217 2020-07-16 08:36:08 +02:00
Jordi Sanfeliu 23672e5ef2 fixed a bug in 'nginx.pm' introduced when added support of 'ss' command 2020-07-15 10:58:22 +02:00
Jordi Sanfeliu 6ead94fc88 added new 'separated' visualization mode in 'ftp.pm' #217 2020-07-14 12:01:21 +02:00
Jordi Sanfeliu fdc0da2885 added new 'separated' visualization mode in 'port.pm' #217 2020-07-13 10:14:05 +02:00
Jordi Sanfeliu a598371864 added new 'separated' visualization mode in 'mail.pm' #217 2020-07-13 10:13:55 +02:00
Jordi Sanfeliu 7479e3dc8e added new 'separated' visualization mode in 'net.pm' #217 2020-07-09 10:28:39 +02:00
Jordi Sanfeliu 6ba51f1cb0 added the ability to include a title for every group of disks. #283 2020-07-08 09:41:18 +02:00
Jordi Sanfeliu 75c7f6b304 fixed an uninitialized value in 'disk.pm' 2020-07-07 11:50:30 +02:00
Jordi Sanfeliu 50865683c1 fixed the error message 'Error: 500 Can't connect to ...' when certificate verification failed, in 'phpfpm.pm' 2020-07-06 19:06:05 +02:00
Jordi Sanfeliu af7d2335dc Added more verbosity on HTTP connections in some modules
The following modules will increase the message verbosity when
when HTTP connections fail:

	- apache.pm
	- emailreports.pm
	- icecast.pm
	- lighttpd.pm
	- nginx.pm
	- pagespeed.pm
	- phpapc.pm
	- phpfpm.pm
	- traffacct.pm
	- wowza.pm
2020-07-02 12:06:36 +02:00
Jordi Sanfeliu 3663c450fe added support to use the 'ss' command in 'port.pm' and 'nginx.pm' 2020-06-22 15:43:44 +02:00
Jordi Sanfeliu aec92c36a9 fixed a bug in 'phpfpm.pm' that lead to error messages about a pool don't has an associated URL #282 2020-06-09 13:04:21 +02:00
Jordi Sanfeliu 5632b6e298 fixed the code to support hopefully any device name #272 2020-06-09 09:08:37 +02:00
Jordi Sanfeliu fd9d25ad9d added the ability to change the size of the graphs in 'port.pm' 2020-05-28 09:58:45 +02:00
Jordi Sanfeliu e573601c28 fixed to include conversion to Fahrenheit in 'gensens.pm' #280 2020-05-25 15:35:27 +02:00