Commit Graph

211 Commits

Author SHA1 Message Date
Daniel Berteaud
ba0a868fd4 Wait for BackupPC_link to run before we take new sizes in our stat
So it won't send wrong comp_ratio of size values
2019-12-11 19:09:50 +01:00
Daniel Berteaud
f51a6a930d Fix BackupPC script when BackuPPC_link is waiting for the nightly cleanup to finish 2019-12-11 18:42:20 +01:00
Daniel Berteaud
b108ac7a82 Bundle a fork of Linux::LVM with support for LVM thin pools
GLPI#39889
2019-11-29 18:31:45 +01:00
Daniel Berteaud
e30dcda6da Better compat with 4.4 vfs.dev.discovery (and use lsblk to get the list of dev if available) 2019-11-27 09:29:10 +01:00
Daniel Berteaud
85c1cbc105 Add DEVNAME macro for vfs.dev.discovery to ease transition to 4.4
4.4 includes vfs.dev.discovery but with different macro names (DEVNAME instead of BLOCKDEV)
2019-11-26 18:13:29 +01:00
Daniel Berteaud
05624ee2e1 Fix some unifi stats for uap/usw in recent unifi versions 2019-10-20 18:16:04 +02:00
Daniel Berteaud
21fcd4949e Enhance ZFS monitoring scripts to retrieve ARC stats 2019-10-11 11:41:05 +02:00
Daniel Berteaud
020e7a2818 Send an empty data array when Zimbra is not installed 2019-10-08 11:14:44 +02:00
Daniel Berteaud
28d794aba6 Fix pve script when no net or disk stats are available 2019-10-01 08:12:52 +02:00
Daniel Berteaud
b5315cea86 Check $sanoidmon is defined before checking its value 2019-09-21 16:33:28 +02:00
Daniel Berteaud
c7a2c5d8ce Fix var name in disco_zfs 2019-09-21 16:24:01 +02:00
Daniel Berteaud
dc8bef75ed Better sanoïd monitoring integration 2019-09-21 16:10:40 +02:00
Daniel Berteaud
2a0c6b2ad9 Remove trailing x for compressratio with ZoL < 0.8 2019-09-20 12:54:01 +02:00
Daniel Berteaud
ad7c36b6de Revert to suffix conversion for ZFS error count
zpool status -p is only supported since ZoL 0.8.0, so, to monitor older servers, we need to do this without -p
2019-09-20 12:39:51 +02:00
Daniel Berteaud
f58df33f3b Rewrite ZFS monitoring from scratch
Now support discovery of datasets, a lot more metrics and sanoid snapshots
2019-09-20 10:39:07 +02:00
Daniel Berteaud
285d61c51c Set info in the data element for Zimbra discovery
Because when the response is empty, Zabbix will mark the item as unsupported if it can find the data element
2019-09-19 18:38:39 +02:00
Daniel Berteaud
61f56ef30e Check zmconfigd service status 2019-09-13 15:33:52 +02:00
Daniel Berteaud
bb9a07d0c0 Fix var name in check_zimbra_sudo 2019-09-13 15:19:49 +02:00
Daniel Berteaud
ec110483dd Add simple Zabbix service status scripts 2019-09-13 15:06:35 +02:00
Daniel Berteaud
c1b19f1651 Skip self PVE node 2019-09-03 12:06:52 +02:00
Daniel Berteaud
1c8c99e9c9 Add support for some NVMe temp sensors
Found on OVH's Advanced servers for example
2019-07-30 14:01:35 +02:00
Daniel Berteaud
6c012aece0 Add basic scripts to monitor VDO volumes 2019-05-21 11:57:45 +02:00
Daniel Berteaud
a9e468b2e5 Don't fail if Statistics::Descriptive doesn't support quantile 2019-04-16 12:06:12 +02:00
Daniel Berteaud
14164177cb More work on BackupPC's monitoring scripts 2019-04-15 16:43:56 +02:00
Daniel Berteaud
5e01f9ee2d Fix reporting MaxXferError 2019-04-04 19:20:32 +02:00
Daniel Berteaud
58a1442b67 Fix a typo in check_backuppc_sudo 2019-04-04 19:15:19 +02:00
Daniel Berteaud
c3f9b4d919 Fix counting entity size 2019-04-04 19:08:55 +02:00
Daniel Berteaud
e51f0065a0 Don't count vm as an entity in BackupPC's entities discovery 2019-04-04 17:13:27 +02:00
Daniel Berteaud
3e464cb4f7 Update BackupPC's discovery and monitoring scripts 2019-04-04 15:32:19 +02:00
Daniel Berteaud
b180cd8a27 Add last_errors in backuppc JSON info 2019-04-03 17:44:47 +02:00
Daniel Berteaud
b32897cc3a Remove crazy and useless regex to exclude hosts from BackupPC 2019-04-03 16:57:32 +02:00
Daniel Berteaud
26b5624421 Enhance backuppc reporting script
Including reporting the new file size, and sending all the info at once in JSON format
2019-04-03 16:49:20 +02:00
Daniel Berteaud
02d58e3e53 Some coding style updates 2019-04-03 16:28:30 +02:00
Daniel Berteaud
49f17304ad More compact BPCSTATUS (1/0 instead of enabled/disabled) 2019-04-03 16:26:14 +02:00
Daniel Berteaud
d381cb5d31 Also report the number in the deferred queue 2019-02-20 19:54:34 +01:00
Daniel Berteaud
0a5f2ccce9 Report number of email in the active and hold queues 2019-02-20 19:38:40 +01:00
Daniel Berteaud
3bec374bb2 Add scripts to ping other hosts 2019-01-19 12:12:57 +01:00
Daniel Berteaud
54f98a5f27 Save cookies to a file so we don't have to login at every invocation
GLPI #34449
2018-12-10 11:57:23 +01:00
Daniel Berteaud
8c062d526c Print ZBX_NOTSUPPORTED in case of API error
Prevent tons of error messages in Zabbix Server's logs
2018-12-09 12:48:58 +01:00
Daniel Berteaud
d782fc24ab Fix ZBX_NOTSUPPORTED string in several scripts 2018-12-09 11:49:09 +01:00
Daniel Berteaud
ddab13d46b Add enhanced squid monitoring support 2018-11-15 15:08:17 +01:00
Daniel Berteaud
ef7dbfa6b6 Add simple script for nginx (similar httpd) 2018-11-09 13:06:18 +01:00
Daniel Berteaud
511ccab917 Fix PVE storage monitoring
GLPI #33910
2018-10-26 08:39:45 +02:00
Daniel Berteaud
f3be79e879 Rework PMG monitoring scripts 2018-10-24 09:42:46 +02:00
Daniel Berteaud
a806da0b58 Add very basic script for PMG monitoring 2018-10-18 11:31:58 +02:00
Daniel Berteaud
5d12647141 check_unifi: also output satisfaction for stations 2018-09-18 12:23:52 +02:00
Daniel Berteaud
21e090cd27 Fix comparison with uninitialized value in check_unifi 2018-09-17 08:18:22 +02:00
Daniel Berteaud
e0b80742cc Report number of unarchived alarms in check_unifi --unifi 2018-09-15 14:05:33 +02:00
Daniel Berteaud
a6ff020641 More fixes for AP monitoring in check_unifi 2018-09-15 11:40:40 +02:00
Daniel Berteaud
ce36e44074 Several fixes in check_unifi 2018-09-15 11:30:19 +02:00
Daniel Berteaud
2c77d2a7c8 Enhance Unifi discovery and monitoring
Adding support for station monitoring
2018-09-14 12:39:55 +02:00
Daniel Berteaud
07efb8e1ef Fix check_unifi when value is defined but false 2018-09-13 18:44:48 +02:00
Daniel Berteaud
30b6fdad55 Add scripts to monitor Unifi sites 2018-09-13 16:29:15 +02:00
Daniel Berteaud
28b3ec4c26 Fix PVE scripts to Work with new pvesh version 2018-08-21 13:03:33 +02:00
Daniel Berteaud
3f53c3a0fa Initialize an empty json object 2018-07-23 19:53:03 +02:00
Daniel Berteaud
7d27a931f3 Fix ZFS pool stats retrieval 2018-07-04 08:11:39 +02:00
Daniel Berteaud
7d882a4778 Fix computing pool CPU usage in check_pve 2018-06-13 23:46:53 +02:00
Daniel Berteaud
8b457ecc69 Add global net and disk stats for the cluster in check_pve_sudo 2018-06-07 14:04:27 +02:00
Daniel Berteaud
37405cd71d Fix check_pve_sudo for single node monitoring 2018-06-05 10:03:34 +02:00
Daniel Berteaud
a5804359db Remove redundant condition 2018-06-05 00:21:48 +02:00
Daniel Berteaud
159247fb00 Fix {#PVE_STOR_STATUS} macro 2018-06-05 00:11:34 +02:00
Daniel Berteaud
ffe8c6b0a5 Only gather info about online nodes 2018-06-04 23:29:27 +02:00
Daniel Berteaud
c146554291 Add some global cluster stats for PVE 2018-06-04 23:08:27 +02:00
Daniel Berteaud
a9bc0f7f54 Enhance PVE scripts and conf 2018-06-03 23:06:08 +02:00
Daniel Berteaud
29fe3a445d Add basic scripts for PVE monitoring 2018-06-01 10:34:40 +02:00
Daniel Berteaud
662d48584e Add stats for ZFS zpools 2018-05-30 17:07:20 +02:00
Daniel Berteaud
e72efa4415 Ensure we always return a value for scan action status errors in check_zfs 2018-05-29 12:38:25 +02:00
Daniel Berteaud
420bb936b3 Handle situations where there's more than 1000 errors on a item in ZFS pools 2018-05-29 12:20:07 +02:00
Daniel Berteaud
65e1f006a7 Various enhancements in check_zfs 2018-05-29 12:03:25 +02:00
Daniel Berteaud
dec361914d Fix macro name for zfs zpool discovery 2018-05-28 17:51:31 +02:00
Daniel Berteaud
d7f456d2ea Add scripts to discover and check ZFS zpools 2018-05-28 17:26:57 +02:00
Daniel Berteaud
df2da12d82 Use "all" key to get all httpd stats in JSON format 2018-03-06 09:29:50 +01:00
Daniel Berteaud
ce67a8f719 Respond with all stats as a JSON structure if no --what given 2018-03-06 08:52:12 +01:00
Daniel Berteaud
0ca02b4974 Support space in httpd status key
So total_accesses and total_kbytes are available again
2018-03-06 08:43:05 +01:00
Daniel Berteaud
381db5eb17 Fix mdadm RAID discovery condition 2018-02-06 10:53:15 +01:00
Daniel Berteaud
b4f79b94e4 Don't WARN when device is being checked, only when it's rebuilding 2018-01-09 17:51:53 +01:00
Daniel Berteaud
0c9fad57bd Don't detect mdadm RAID in containers 2018-01-09 17:23:35 +01:00
Daniel Berteaud
f714617bec Check line format in check_httpd
Instead of spliting errors in case server-status redirect to somewhere else
2017-11-30 10:06:39 +01:00
Daniel Berteaud
98c9297292 Add script to monitor spamassassin's bayes database stats 2017-11-20 23:50:37 +01:00
Daniel Berteaud
3318a48195 Correctly handle Partially Degraded state
which can happen with multi level RAID arrays, like RAID 60
2017-10-12 16:02:28 +02:00
Daniel Berteaud
c99874dd2d Fix disco_lvm_sudo when there's no VG at all
It was returning an empty string, which is not expected by Zabbix Server, so the item was marked as unsupported. It's now returning an empty JSON list
2016-11-24 16:21:37 +01:00
Daniel Berteaud
a30233bf33 Force ini syntax
Prevent error when the config is empty
2016-11-23 19:18:10 +01:00
Daniel Berteaud
593da4265e Add 0 before . for httpd stats 2016-11-09 17:41:55 +01:00
Daniel Berteaud
6db86ee0c5 Return the uri of server-status
Will make it easier later to suppot alternatives uri
2016-11-09 17:14:15 +01:00
Daniel Berteaud
9058167a9e Add scritps to monitor httpd 2016-11-09 16:26:34 +01:00
Daniel Berteaud
2393ed113e Fix handling Airflow_Temperature_Cel label 2016-10-30 10:31:09 +01:00
Daniel Berteaud
68899dc3eb Alternative temp label for smartctl 2016-10-28 12:52:44 +02:00
Daniel Berteaud
71cf068d67 Remove debug line 2016-09-01 19:54:10 +02:00
Daniel Berteaud
4d03342c5d Add support for lm_sensors 2016-09-01 18:34:49 +02:00
Daniel Berteaud
81e5f414c8 Detect HDD temp sensors with sat+megaraid 2016-04-06 13:52:41 +02:00
Daniel Berteaud
c43bdff1a9 Use flock to make sure only one gluster command run at a time 2016-03-21 10:16:28 +01:00
Daniel Berteaud
f9db23c8c5 Prevent heal false positive by checking two times 2015-09-16 15:01:28 +02:00
Daniel Berteaud
2893a84635 Add simple scripts for monitoring DRBD resources
with auto-discovery
2015-09-14 16:41:35 +02:00
Daniel Berteaud
8747854686 Support temp sensors with negative values
Also enhance threshold detector
2015-09-09 18:09:55 +02:00
Daniel Berteaud
a6f8585c05 Several enhancements in sensors ini generator
Including:
Skip sensor if value isn't found
Support power sensor returning value as %
Support power sensor of nut UPS
Better sensor ID sanitization
2015-07-27 16:06:32 +02:00
Daniel Berteaud
1dbc287840 Use separate default threshold for UPS
+ minor coding style updates and optimizations
2015-07-24 16:58:23 +02:00
Daniel Berteaud
4975211274 Minor fixe in sensor generator 2015-07-22 16:57:02 +02:00
Daniel Berteaud
20b5b3aaa6 Minor simplification in sensors generator 2015-07-21 15:05:10 +02:00
Daniel Berteaud
39038b97c7 Actually create UPS sensors 2015-07-21 15:03:36 +02:00
Daniel Berteaud
c5bf918c51 Fix stupid errors in generate_sensors_ini 2015-07-21 14:58:37 +02:00