Commit Graph

175 Commits

Author SHA1 Message Date
Daniel Berteaud
b91713591b Fix a typo in ZabbixSizeTooSmallFactor conf 2020-02-10 23:11:19 +01:00
Daniel Berteaud
31a443aa7e Don't skip local node in PVE nodes discovery 2020-02-05 22:59:24 +01:00
Daniel Berteaud
eb817e2f7b Only skip RAID volumes checks when in HBA mode, not physical disks checks 2020-01-22 17:17:53 +01:00
Daniel Berteaud
a38b7ab4b2 Declar variable in the correct scope for hba mode detection 2020-01-22 16:23:26 +01:00
Daniel Berteaud
0135771c7a Handle megaraid controlers in HBO/JBOD mode (skip RAID checks) 2020-01-22 16:18:49 +01:00
Daniel Berteaud
376db5167c Use head -1 to be sure to get a single value for sensors
Some can report 2 values, and Zabbix won't be able to parse it
2020-01-22 14:27:57 +01:00
Daniel Berteaud
e080780248 Fix ready sizeNew from last backup (except when link hasn't ran yet) 2019-12-17 08:51:45 +01:00
Daniel Berteaud
abfa7433e1 Fix key name for enabled value 2019-12-15 17:20:34 +01:00
Daniel Berteaud
d49e7816d5 Init complete JSON objects with default values in bheck_backuppc_sudo 2019-12-15 17:10:46 +01:00
Daniel Berteaud
7ded61c8af Remove unused variables 2019-12-15 17:08:15 +01:00
Daniel Berteaud
eb0ada1a69 Only substract $new_size_of_last_full once 2019-12-15 16:59:26 +01:00
Daniel Berteaud
ca2f76e842 Fix when a host has a single backup with 0 new file size
Which can heppen if you deleted backups manually
2019-12-13 23:45:37 +01:00
Daniel Berteaud
810f192184 Fix backups total size computation when there's only one full 2019-12-13 23:27:39 +01:00
Daniel Berteaud
08f7decaf2 Enhanced stats for BackupPC's entity 2019-12-13 16:43:15 +01:00
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