Commit Graph

739 Commits

Author SHA1 Message Date
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
root e7bd2c3343 fix legend diaplay for nvidia 2017-09-28 02:25:40 +08:00
Jordi Sanfeliu 566bd1bb32 added a new option called 'graph_mode' to view the memory graph in two different modes 2017-09-27 10:44:55 +02:00
Jordi Sanfeliu 864d44dc22 small change 2017-09-25 15:24:19 +02:00
Jordi Sanfeliu 50edd2cc75 included active and inactive memory values in 'system.pm' 2017-09-06 08:19:02 +02:00
Jordi Sanfeliu 946e871bbf small fix 2017-09-01 12:13:03 +02:00
Jordi Sanfeliu fe2954c604 fix to honour the new option 'stats_rate' when checking the alert in 'mail.pm' 2017-09-01 11:58:27 +02:00
Jordi Sanfeliu 6e2306909b now 'net.pm' is able to monitor unlimited number of network interfaces. #188 2017-08-31 16:15:36 +02:00
Jordi Sanfeliu 67cb28b87f redirect all the output into an array to support parallelizing in 'zfs.pm' 2017-08-31 10:05:46 +02:00
Jordi Sanfeliu 20e517ac86 redirect all the output into an array to support parallelizing in 'wowza.pm' 2017-08-30 10:41:55 +02:00
Jordi Sanfeliu ad86b26729 redirect all the output into an array to support parallelizing in 'verlihub.pm' 2017-08-30 10:36:23 +02:00
Jordi Sanfeliu fdf9ead148 redirect all the output into an array to support parallelizing in 'varnish.pm' 2017-08-30 10:33:05 +02:00
Jordi Sanfeliu bfb3b1787f redirect all the output into an array to support parallelizing in 'user.pm' 2017-08-30 10:24:52 +02:00
Jordi Sanfeliu b3a8f1c446 redirect all the output into an array to support parallelizing in 'tc.pm' 2017-08-29 11:35:15 +02:00
Jordi Sanfeliu 3d85f4b18f redirect all the output into an array to support parallelizing in 'squid.pm' 2017-08-29 11:30:18 +02:00
Jordi Sanfeliu 6e01f6516f redirect all the output into an array to support parallelizing in 'serv.pm' 2017-08-29 11:05:37 +02:00
Jordi Sanfeliu ad3664e39d redirect all the output into an array to support parallelizing in 'raspberrypi.pm' 2017-08-29 10:58:42 +02:00
Jordi Sanfeliu ee17ddbf2b redirect all the output into an array to support parallelizing in 'process.pm' 2017-08-28 17:59:43 +02:00
Jordi Sanfeliu 98a379fa18 redirect all the output into an array to support parallelizing in 'port.pm' 2017-08-28 17:50:15 +02:00
Jordi Sanfeliu d4c2d3386b redirect all the output into an array to support parallelizing in 'phpapc.pm' 2017-08-28 17:44:39 +02:00
Jordi Sanfeliu d800f0d694 redirect all the output into an array to support parallelizing in 'pagespeed.pm' 2017-08-28 17:27:59 +02:00
Jordi Sanfeliu f992d069a9 added the ability to include an alert for each defined sensor in 'nvidia.pm' 2017-08-04 10:20:49 +02:00
Jordi Sanfeliu 1017f69f58 redirect all the output into an array to support parallelizing in 'nvidia.pm' 2017-08-04 10:00:10 +02:00
Jordi Sanfeliu c0f2d015bc redirect all the output into an array to support parallelizing in 'nut.pm' 2017-08-04 09:36:06 +02:00
Jordi Sanfeliu 64486103cd redirect all the output into an array to support parallelizing in 'ntp.pm' 2017-08-04 09:24:55 +02:00
Jordi Sanfeliu 071bad530d fixed some problems when comparing greylisting values on every pass 2017-08-03 17:27:52 +02:00
Jordi Sanfeliu a9dfc405a1 remove debugging line 2017-08-03 13:01:50 +02:00
Jordi Sanfeliu 7cca506c1f redirect all the output into an array to support parallelizing in 'nginx.pm' 2017-08-03 10:58:37 +02:00
Jordi Sanfeliu 50ea4450ca redirect all the output into an array to support parallelizing in 'nfss.pm' 2017-08-03 10:54:52 +02:00
Jordi Sanfeliu d60faf2218 redirect all the output into an array to support parallelizing in 'nfsc.pm' 2017-08-03 10:45:46 +02:00
Jordi Sanfeliu ff6a0bb4a7 redirect all the output into an array to support parallelizing in 'netstat.pm' 2017-08-03 10:40:49 +02:00
Jordi Sanfeliu 9ab95d35ea redirect all the output into an array to support parallelizing in 'net.pm' 2017-08-02 19:37:51 +02:00
Jordi Sanfeliu 1b76900b15 redirect all the output into an array to support parallelizing in 'mysql.pm' 2017-08-02 19:25:36 +02:00
Jordi Sanfeliu d77d35f29b redirect all the output into an array to support parallelizing in 'mongodb.pm' 2017-08-02 19:19:29 +02:00
Jordi Sanfeliu 045967fa8f redirect all the output into an array to support parallelizing in 'memcached.pm' 2017-08-02 19:13:23 +02:00
Jordi Sanfeliu 06f78dcec4 redirect all the output into an array to support parallelizing in 'mail.pm' 2017-08-01 13:24:49 +02:00
Jordi Sanfeliu 1808aa77af added alert capabilities to 'lmsens.pm'. #171 2017-08-01 13:05:44 +02:00
Jordi Sanfeliu 835090b9ce redirect all the output into an array to support parallelizing in 'lmsens.pm' 2017-08-01 12:33:19 +02:00
Jordi Sanfeliu 40c518e586 redirect all the output into an array to support parallelizing in 'lighttpd.pm' 2017-07-31 11:31:06 +02:00
Jordi Sanfeliu bcc6cc2b13 redirect all the output into an array to support parallelizing in 'ipmi.pm' 2017-07-31 11:23:19 +02:00
Jordi Sanfeliu 3f6f9d4034 added the ability to include an alert for each defined sensor in 'ipmi.pm' 2017-07-31 11:18:36 +02:00
Jordi Sanfeliu 6fd3320faf added the ability to include an alert for each defined sensor in 'hptemp.pm' 2017-07-28 13:02:10 +02:00
Jordi Sanfeliu 861f1630cb removed a blank line 2017-07-28 12:57:55 +02:00
Jordi Sanfeliu ff5160b094 redirect all the output into an array to support parallelizing in 'hptemp.pm' 2017-07-28 12:13:27 +02:00
Jordi Sanfeliu 2447914d05 redirect all the output into an array to support parallelizing in 'libvirt.pm' 2017-07-27 12:19:32 +02:00
Jordi Sanfeliu 66ed64abcd redirect all the output into an array to support parallelizing in 'int.pm' 2017-07-27 12:12:18 +02:00
Jordi Sanfeliu 9fa6616f04 redirect all the output into an array to support parallelizing in 'icecast.pm' 2017-07-27 12:07:54 +02:00
Jordi Sanfeliu 85f384279d small fix 2017-07-27 09:10:20 +02:00
Jordi Sanfeliu 421cd024b7 added the ability to include an alert for each defined sensor in 'gensens.pm' 2017-07-26 12:22:08 +02:00
Jordi Sanfeliu 582e6b0471 redirect all the output into an array to support parallelizing in 'gensens.pm' 2017-07-26 11:26:12 +02:00
Jordi Sanfeliu 0fd6b965b2 redirect all the output into an array to support parallelizing in 'ftp.pm' 2017-07-26 11:18:44 +02:00
Jordi Sanfeliu cc72988c50 redirect all the output into an array to support parallelizing in 'fs.pm' 2017-07-26 11:12:01 +02:00
Jordi Sanfeliu 8c33c2db36 redirect all the output into an array to support parallelizing in 'fail2ban.pm' 2017-07-25 12:32:32 +02:00
Jordi Sanfeliu d300601538 redirect all the output into an array to support parallelizing in 'du.pm' 2017-07-25 12:25:01 +02:00
Jordi Sanfeliu af89e0e625 redirect all the output into an array to support parallelizing in 'disk.pm' 2017-07-25 12:10:28 +02:00
Jordi Sanfeliu 8b3b27b4c5 removed a debugging line 2017-07-24 12:32:48 +02:00
Jordi Sanfeliu e0bd773e74 redirect all the output into an array to support parallelizing in 'chrony.pm' 2017-07-24 12:05:02 +02:00
Jordi Sanfeliu 4db5afd819 redirect all the output into an array to support parallelizing in 'bind.pm' 2017-07-24 11:56:05 +02:00
Jordi Sanfeliu af623a839d redirect all the output into an array to support parallelizing in 'apcupsd.pm' 2017-07-24 11:39:38 +02:00
Jordi Sanfeliu eb2f2d92f2 redirect all the output into an array to support parallelizing in 'apache.pm' 2017-07-21 10:35:53 +02:00
Jordi Sanfeliu 7988c88a7d redirect all the output into an array to support parallelizing in 'proc.pm' 2017-07-21 09:51:40 +02:00
Jordi Sanfeliu bc1526310e redirect all the output into an array to support parallelizing in 'kern.pm' 2017-07-20 16:16:58 +02:00
Jordi Sanfeliu e5f3bcd140 adjusted some colors 2017-07-19 17:12:50 +02:00
Jordi Sanfeliu b379b795b3 small update 2017-07-19 17:02:30 +02:00
Jordi Sanfeliu c7b625c7e1 redirect all the output into an array to support parallelizing 2017-07-19 16:43:36 +02:00
Jordi Sanfeliu 0cfe80b691 added the new option 'stats_rate' in 'mail.pm' 2017-07-10 12:06:06 +02:00
Jordi Sanfeliu 99cac7b996 small update 2017-07-07 12:14:55 +02:00
Jordi Sanfeliu 8884842845 small fix. #102 2017-07-06 13:06:04 +02:00
Jordi Sanfeliu 5e6218fff7 fixed the scaling of all values in Postfix mode. #102 2017-07-06 12:38:43 +02:00
Jordi Sanfeliu a46b38971a fixed to separate rejections by greylisting than by RBL. #102 2017-07-06 08:30:26 +02:00