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