Commit Graph

205 Commits

Author SHA1 Message Date
Daniel Berteaud
ca549543c8 Support Debian lib path for BackupPC 2021-05-27 19:44:26 +02:00
Daniel Berteaud
c1f20d9388 Fix zfs pool monitoring when a pool has errors
We must drop stderr so messages like permissions error getting errors do
not pollute the JSON output
2021-02-17 10:30:59 +01:00
Daniel Berteaud
5ff7e2214c [check_samba_dc_sudo] Fix typo with GPO listing 2021-01-14 19:13:53 +01:00
Daniel Berteaud
b780d464dd [check_samba_sudo] Update default audit log file path, and drop errors from samba-tool 2021-01-14 18:55:16 +01:00
Daniel Berteaud
acd74aa1db Optimize samba audit_auth log parsing by reading from the tail of the file
GLPI #47700
2021-01-14 15:40:22 +01:00
Daniel Berteaud
bf190465bf Modernize lvm monitoring scripts
support getting all the value at once in a JSON structure, support VG monitoring, and various other cleanups

GLPI #47654
2021-01-13 17:48:01 +01:00
Daniel Berteaud
33c03ebe45 Small fixes in check_samba_dc (skip unparsable logs, and handle message with NT_STATUS_NO_SUCH_USER 2021-01-12 19:23:28 +01:00
Daniel Berteaud
628f2a5e2e Add general stats to BackupPC monitoring script 2021-01-11 22:53:49 +01:00
Daniel Berteaud
1c2c4e8377 Add OU discovery to samba monitoring
GLPI #47623
2021-01-11 16:09:09 +01:00
Daniel Berteaud
19ec29e577 Minor fixes for samba script and template 2021-01-11 09:28:29 +01:00
Daniel Berteaud
7563ab8655 Add scripts and template to monitor Samba 4 DC
GLPI #47603
2021-01-09 17:20:43 +01:00
Daniel Berteaud
bc0edccfa0 Add guest counter for PVE cluster and node
Also update the Zabbix template to handle those new counters

GLPI #47604
2021-01-08 13:04:22 +01:00
Daniel Berteaud
10660aedf6 Possibility to check certificate
with available --no-cert-check option to disable it. Auto disable if connecting on localhost
2020-12-01 11:38:58 +01:00
Daniel Berteaud
ecb831f05a Run upsc commands with 2>/de/null
With default conf, it'll print "Init SSL without certificate database" which we're not interested in in this context (and would break Zabbix item)
2020-10-26 19:12:49 +01:00
Daniel Berteaud
cf1dbfbba0 IPMI sensors can have / and - in their name 2020-10-26 18:22:54 +01:00
Daniel Berteaud
cd790587e6 Don't return garbage in mpath discovery if command failed 2020-10-22 20:42:26 +02:00
Daniel Berteaud
c0e1aa14ac Add scripts to discover and check multipath devices 2020-10-20 18:18:17 +02:00
Daniel Berteaud
53b83f2d0e Use MAC of device if no name is defined in Unifi device discovery 2020-09-29 15:24:46 +02:00
Daniel Berteaud
4777b8274f Update scripts to work with ssacli (in adition to hpacucli) 2020-09-23 20:00:46 +02:00
Daniel Berteaud
6467da92c4 Add some compatibility for older MySQL servers 2020-09-04 12:38:07 +02:00
Daniel Berteaud
0b4fa6425c check_mysql needs sudo permissions 2020-08-31 15:25:25 +02:00
Daniel Berteaud
f20de75884 Add MySQL monitoring script and template 2020-08-31 15:00:48 +02:00
Daniel Berteaud
a02b5c780b Add /usr/local/BackupPC/lib as lib dir for BackupPC scripts
Needed for manual install, from source
2020-05-27 16:50:50 +02:00
Daniel Berteaud
f6b45619ec Do not rely on distrib version to check if --output-format is needed for check_pve_sudo 2020-05-20 16:29:22 +02:00
Daniel Berteaud
b8f7e1ae6d Fix mdadm when we have spares
Spares should be counted as active devices
2020-04-03 14:38:12 +02:00
Daniel Berteaud
0805013d6a Fix cache when the same resource is queried with different options 2020-03-02 15:05:47 +01:00
Daniel Berteaud
4c8ada96a8 Remove debug statement in util_populate_pve_cache 2020-03-02 15:04:46 +01:00
Daniel Berteaud
25f165ecc9 Add a script to populate check_pve_sudo cache 2020-03-02 12:23:56 +01:00
Daniel Berteaud
c799f083f5 Enhance check_pve_sudo with a local cache support to speed up monitoring 2020-03-02 12:20:32 +01:00
Daniel Berteaud
30a4e4a15d Skip Core X temp sensors
No need to monitor them, as long as we already monitor the CPU temp
2020-02-25 18:33:17 +01:00
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