Commit Graph

708 Commits

Author SHA1 Message Date
abqcheeks d598b9be5a Add support for FreeBSD NFS Server stats. Might also work for
OpenBSD and/or NetBSD, but not tested so not enabled.
2019-04-26 11:45:36 -06:00
Jordi Sanfeliu cc6cb1ec47 removed a debugging line 2019-04-24 10:44:31 +02:00
Jordi Sanfeliu ac0d3da018 small fix #221 2019-04-23 16:15:48 +02:00
Jordi Sanfeliu 19eff008fb added the ability, in the alerts of 'ambsens.pm', to support a range of two values separated by a dash in the threshold #221 2019-04-23 16:13:41 +02:00
Jordi Sanfeliu 6a63750d74 added the ability, in the alerts of 'gensens.pm', to support a range of two values separated by a dash in the threshold #221 2019-04-23 15:41:35 +02:00
Jordi Sanfeliu 5ff7f1bda4 fixed to make sure that a maximum of 9 values is accepted in the 'graph_0' and 'graph_1' options of 'squid.pm'; warn user otherwise. #235 2019-04-17 09:49:01 +02:00
Jordi Sanfeliu cf0b766b36 fixed to ensure that the 'L' option in port.pm is optional 2019-04-15 15:17:56 +02:00
Jordi Sanfeliu 3eae9dae73 fixes Filesystem usage issue with space in fs name #234 2019-04-15 10:39:04 +02:00
Jordi Sanfeliu 2c4e1ae855 added a warning if a process vanished during the accouting in 'process.pm' 2019-04-12 09:06:36 +02:00
Jordi Sanfeliu 28673f1bb9 improved speed and fixed some bugs #167 2019-04-09 09:45:12 +02:00
Jordi Sanfeliu 77a77bb593 added a complete graph to support PHP-FPM statistics ('phpfpm.pm'). #167 2019-04-03 18:57:09 +02:00
Jordi Sanfeliu a721189d9e fixed in 'mail.pm to use the option 'mail_log' instead the hard coded path I forgot to remove when adding the Exim support 2019-03-18 19:01:31 +01: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 b290ffd417 Fixed and improved the calculation of 'Used' in .memory.pm'
There was a stupid bug that prevented to include the SReclaimable value in the
formula to calculate the 'Used' value.

Morever, I've seen that newer versions of 'free' command also include the value
SUnreclaim in that formula. So, the final calculation of 'Used' is like this:

Used = MemTotal - MemFree - Buffers - Cached - SReclaimable - SUnreclaim

This ensures that Monitorix is in sync with the results of 'free' command. #204
2019-03-08 11:19:05 +01:00
Jordi Sanfeliu 9d26e28f90 fixed a bug that prevented counting the SReclaimable value #204 2019-03-08 10:31:59 +01:00
Jordi Sanfeliu 207c595924 corrected two labels. #196 2019-03-07 09:32:48 +01:00
Jordi Sanfeliu 4174fea546 Introduced the option 'cmd' in 'netstat.pm'
From now on the user will have the opportunity to select which
command will use to gather the network status statistics. The
new option 'cmd' supports two values 'netstat' or 'ss', being
the later the value by default.

If the 'cmd' option is not defined, then the command line used
will be 'ss', that's because in newer Linux systems it looks like
the command 'netstat' is being deprecated.

In older Linux systems people will be forced to use the 'netstat'
command because, early 'ss' versions doesn't contain the protocol
column in its output, which breaks the regexp used to extract the
the values. #196
2019-03-07 09:14:13 +01:00
Jordi Sanfeliu 49ef3a3528 Improved the alerting system in 'ambsens.pm'
From now on, the alerts accepts a forth parameter that specifies
when the alert will be triggered. This parameter accepts two values:
'above' or 'below', being the 'above' the default value if it's not
specified, in order to keep backwards compatibility.

This way, if some value in the graph is 'above' or 'below' from the
threshold during more time than specified in the timeout value, the
alert will be triggered.

The manpage has also been updated to reflect this new feature. #221
2019-03-01 17:59:35 +01:00
Jordi Sanfeliu 0e6447a281 Removed a pair of debugging lines in 'gensens.pm'
In the alert system there were left a pair of debugging lines to print
that range value are not supported. Now that message is sent to logger. #221
2019-03-01 17:42:24 +01:00
Jordi Sanfeliu db68888f3f added Exim support in 'mail.pm'. [#96] 2019-02-25 09:38:00 +01:00
Jordi Sanfeliu acc3f1bb62 Improved the alerting system in 'gensens.pm'
From now on, the alerts accepts a forth parameter that specifies
when the alert will be triggered. This parameter accepts two values:
'above' or 'below', being the 'above' the default value if it's not
specified, in order to keep backwards compatibility.

This way, if some value in the graph is 'above' or 'below' from the
threshold during more time than specified in the timeout value, the
alert will be triggered.

#221
2019-02-08 09:45:12 +01:00
Andy Rabagliati ea82cfd825 allow negative thermal margin values in ipmi 2019-01-16 10:21:22 +02:00
Jordi Sanfeliu 4a81531d19 added in 'du.pm' the ability to count files in every directory defined. #112 2018-10-26 12:49:24 +02:00
Jordi Sanfeliu b76c9ceec3 fixed a typo in 'lib/Monitorix.pm' 2018-10-22 09:44:17 +02:00
Jordi Sanfeliu d81c5282de fixed to set permissions 0600 to HTTP built-in log files 2018-10-17 11:35:46 +02:00
Jordi Sanfeliu e7bd235cb3 fixed in HTTP built-in to force authentication (when enabled) always, even on non-existing pages 2018-10-05 09:54:06 +02:00
Jordi Sanfeliu 5b9d6a5f89 small cosmectic change 2018-10-03 12:21:24 +02:00
Jordi Sanfeliu 639e412e59 entropy disabled while waiting for a solution 2018-05-15 09:48:58 +02:00
Jordi Sanfeliu 6f8ffd0d2e added ZFS iostat per pool in 'zfs.pm' #190 2018-03-23 11:29:07 +01:00
Jordi Sanfeliu d7fa9e9e6d changed the way how the Used value in Memory graph is calculated #204 2018-03-19 13:09:58 +01:00
Jordi Sanfeliu 593e1a7ea7 fixed in 'zfs.pm' the way how is collected pool's data 2018-03-19 12:30:29 +01:00
Jordi Sanfeliu 10ad53ffbd fix a typo #31b1752ff8c45dc9d6564b3db598aed51c73ab4e 2018-03-09 19:16:34 +01:00
Jordi Sanfeliu 31b1752ff8 small fixes 2018-03-06 09:57:50 +01:00
Jordi Sanfeliu 7b1cc6c8e9 fixed to check if setgid() and setuid() functions were successful 2018-03-05 16:21:09 +01:00
Jordi Sanfeliu 677ddbcfbc changed the alert in 'system.pm' to use the minimum value between the second and the third load averages to obtain a more symmetric curve and a sooner cancellation of the alert 2018-03-01 16:32:56 +01:00
Jordi Sanfeliu 46fcd2d729 force to save values as 'unknown' when 'apcaccess' returns error. #201 2018-02-26 09:15:56 +01:00
Jordi Sanfeliu 7ee147a6dc postponed variable initialization in order to show gaps if 'apcaccess' fails. #201 2018-02-19 11:00:33 +01:00
Philippe Verbeke a8168609e9
Get temperature for a NVMe
Get the temperature field value from smartctl -A for a NVMe, as the format of the SMART data section differs from HDD or SSD.
For example:
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02, NSID 0xffffffff)
Critical Warning:                   0x00
Temperature:                        40 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    0%
Data Units Read:                    1,769,281 [905 GB]
Data Units Written:                 1,384,224 [708 GB]
Host Read Commands:                 24,646,213
Host Write Commands:                19,105,374
Controller Busy Time:               38
Power Cycles:                       32
Power On Hours:                     129
Unsafe Shutdowns:                   6
Media and Data Integrity Errors:    0
Error Information Log Entries:      44
2018-02-04 18:59:18 +01:00
Jordi Sanfeliu 5459bca836 removed the -H parameter from the 'ss' commands in order improve compatibility accross different Linux distributions. #196 2018-01-22 17:42:10 +01:00
Alexander Lebedev 5e4bbc494e use 'ss' if available in Linux instead of 'netstat' 2018-01-21 20:53:47 +03:00
Jordi Sanfeliu 89ed14b174 fixed a missing gap colouring in some zoomed graphs of 'system.pm' 2018-01-09 18:07:21 +01:00
Jordi Sanfeliu 7a13778d7f fixed to limit the length of the device names in 'fs.pm' 2017-12-01 11:51:58 +01:00
Jordi Sanfeliu f1f0934be9 fixed a missalignment of the MB & CPU temperatures values in 'lmsens.pm' 2017-12-01 11:22:11 +01:00
Jordi Sanfeliu 4319a51691 Added a complete graph to support external ambient sensors ('ambsens.pm') 2017-11-24 09:06:40 +01:00
Jordi Sanfeliu 2f406cae1f renamed the option 'graph_mode' to 'memory_mode' in 'system.pm' 2017-11-23 12:25:09 +01:00
Jordi Sanfeliu 159dec9500 fixed to correctly represent the values in text mode in 'ipmi.pm' 2017-11-23 11:23:54 +01:00
Jordi Sanfeliu 9484c5e905 fixed the missing declaration of 'allvalues' in 'gensens.pm' #193 2017-10-30 10:01:12 +01:00
Jordi Sanfeliu 2e22772e53 fixed in 'process.pm' to fully honour the option 'netstats_in_bps' 2017-10-24 12:28:50 +02:00
Jordi Sanfeliu 622289f9d9 fixed a bad memory scaling in *BSD systems 2017-09-29 12:29:07 +02:00