Commit Graph

206 Commits

Author SHA1 Message Date
Daniel Berteaud
c36585d92d Fix using HD hysteresis param 2015-07-10 10:27:33 +02:00
Daniel Berteaud
b571fa5509 Take the old file as param for the sensor converter script 2015-07-09 17:39:33 +02:00
Daniel Berteaud
b9df71e9ba Use separate margin and hyst param for HD 2015-07-09 16:06:50 +02:00
Daniel Berteaud
367454e025 Default temp margin to 20°C instead of 10 2015-07-09 14:30:17 +02:00
Daniel Berteaud
cf8585f524 Fix pwr thresholds order 2015-07-09 14:28:46 +02:00
Daniel Berteaud
113f72fb3a Fix threshold detection for power sensors 2015-07-09 13:54:07 +02:00
Daniel Berteaud
4094dfc530 Better error handling and support for power sensors in the sensor config generator 2015-07-09 13:20:16 +02:00
Daniel Berteaud
c3ee93d817 Fix using keys on hash 2015-07-08 20:03:18 +02:00
Daniel Berteaud
8e90619012 Fix shebang 2015-07-08 20:00:31 +02:00
Daniel Berteaud
e7c34c6e58 Add a generator script for sensors
it'll try to auto discover sensors available using IPMI and smartctl
2015-07-08 16:45:43 +02:00
Daniel Berteaud
b2cc891890 Convert sensors config to a ini format
Automatically migrate from the old to the new format for existing install
2015-07-08 11:31:37 +02:00
Daniel Berteaud
da771ec287 Support different sensors types 2015-07-07 14:36:59 +02:00
Daniel Berteaud
310edb5c50 Code restructuration to detect pending healing processes
But won't work with GlusterFS < 3.6 as it'd trigger many false positive
2015-06-04 15:56:23 +02:00
Daniel Berteaud
19d3b616d1 Fix gluster check if info heal-failed is not supported by gluster 2015-06-04 11:18:51 +02:00
Daniel Berteaud
79dc37ac3a mdadm: Report rebuilding if status is resync 2015-04-15 18:02:06 +02:00
Daniel Berteaud
ba5d5b558e Fix disco_filesystem
and switch to JSON module instead of manually printing (invalid) JSON data
2015-02-10 10:18:38 +01:00
Daniel Berteaud
0860c37f6f Fix check_qmail_sudo script 2015-01-08 10:40:13 +01:00
Daniel Berteaud
4ee55e4708 Add a simple script to check qmail queue (requires qmqtool) 2015-01-05 12:04:17 +01:00
Daniel Berteaud
f83c0e60d1 Discover thin pools, and report thin pool allocation 2014-11-07 14:47:30 +01:00
Daniel Berteaud
5e8df466e0 Better debug info and more robust execution for GlusterFS scripts 2014-07-16 10:36:30 +02:00
Daniel Berteaud
329eb1557a Report a more verbose status for peers and volumes instead of a boolean
So it'll be easier to diag
2014-07-11 19:05:06 +02:00
Daniel Berteaud
a42acdda65 Add simple scripts to discover and check GlusterFS status 2014-07-11 18:23:40 +02:00
Daniel Berteaud
a5f8da6aa0 Support LLD discovery for MegaRAID controllers 2014-07-10 12:55:14 +02:00
Daniel Berteaud
d21824d09f Add discovery script for mdadm based RAID devices 2014-07-09 16:30:41 +02:00
Daniel Berteaud
5214d25e14 Add a simple script to check nmbd lookups 2014-05-06 10:15:54 +02:00
Daniel Berteaud
0bb8a01798 Remove scripts to monitor certificates, they are not generic enough 2014-02-19 09:29:35 +01:00
Daniel Berteaud
7083976d5a Add scripts to monitor PHPki certificates 2014-02-18 13:03:33 +01:00
Daniel Berteaud
4bc1378781 Possibility to disable Zabbix monitoring of some hosts in BackupPC by adding {ZabbixMonitoring} = 0 in their conf 2013-11-29 09:54:49 +01:00
Daniel Berteaud
1e991ce9e2 Do not skip 'removable' devices in disco_block_device, some real disks show a removable flag 2013-10-28 18:30:34 +01:00
Daniel Berteaud
ddcbbc85dd fix macros names in disco_raid_hp_sudo 2013-10-01 14:16:33 +02:00
Daniel Berteaud
217d4a932a Add simple scripts to monitor HP Smart Arrays (requires hpacucli) 2013-10-01 11:12:35 +02:00
Daniel Berteaud
974b41a11a Return No backup warning and max errors threshold in backuppc discovery 2013-04-23 13:02:52 +02:00
Daniel Berteaud
a734699fc9 Initialize an empty array in disco_backuppc_sudo 2013-04-23 12:57:53 +02:00
Daniel Berteaud
708cdf2747 Skip block which won't support smart data 2013-04-22 19:25:24 +02:00
Daniel Berteaud
5229ca1e37 Use full path to smartctl binary so system call works with sudo 2013-04-22 19:20:35 +02:00
Daniel Berteaud
754005c380 Rewrite disco_smart_sudo in perl and switch to read /sys/block so it can detect smart capable drives with older smartctl 2013-04-22 16:53:52 +02:00
Daniel Berteaud
523b45b406 initialize an empty array in disco_sensors 2013-04-19 18:18:16 +02:00
Daniel Berteaud
828a502ea2 initialize an empty array in disco_lvm_sudo 2013-04-19 18:17:07 +02:00
Daniel Berteaud
54ffe7c67c initialize an empty array in disco_block_devices 2013-04-19 18:16:28 +02:00
Daniel Berteaud
40241f2fb8 Return an empty set of ups instead of ZBX_NOTSUPPORTED if no UPS is found or upsc is not installed 2013-04-19 18:15:30 +02:00
Daniel Berteaud
fc6d32923d Add discovery script and conf for nut ups 2013-04-18 14:37:28 +02:00
Daniel Berteaud
1015709880 Possibility to base64 encode the regex passed to zabbix agent 2013-04-18 14:03:22 +02:00
Daniel Berteaud
34ef6daf64 Pass a regex to backuppc discovery. Default is .*, so every hosts are returned. You can use this to selectively ignore hosts 2013-04-18 13:36:07 +02:00
Daniel Berteaud
c9cc8235c4 On some system (debian), logical volume already have /dev/$group in their name
So fix the logical volume name in this case
2013-04-18 10:13:15 +02:00
Daniel Berteaud
f3ca95b83f do not prepend /dev to block device names 2013-04-17 17:07:25 +02:00
Daniel Berteaud
beadda2634 Fix network interface discovery script 2013-04-17 16:52:38 +02:00
Daniel Berteaud
9983c2ea30 Add scripts to discover network interfaces 2013-04-17 15:39:57 +02:00
Daniel Berteaud
3ce2c063d9 Skip block devices with a 0 size, and return the size for each block device 2013-04-16 13:38:33 +02:00
Daniel Berteaud
f88be7264b Fix a typo in disco_block_device so that removable devices are excluded 2013-04-16 13:33:57 +02:00
Daniel Berteaud
e85d56f105 Fix an error message when no sensor is configured 2013-04-16 13:15:34 +02:00
Daniel Berteaud
166443918f Do not prettify sensors discovery output (saves bandwidth) 2013-04-16 11:19:40 +02:00
Daniel Berteaud
9980952270 Support retrieving sensors thresholds and fix sensors conf 2013-04-16 10:53:06 +02:00
Daniel Berteaud
105b0d2d82 Add sensors checks, discovery and conf 2013-04-15 18:51:20 +02:00
Daniel Berteaud
79c3a90cf0 Fix JSON syntax error in disco_smart when several SMART capable drives are present 2013-04-15 16:29:13 +02:00
Daniel Berteaud
96d0cefd38 Remove the -w flag for BackupPC scripts 2013-04-15 15:50:12 +02:00
Daniel Berteaud
2c286311a5 Rename conf and scripts dir 2013-04-15 10:22:37 +02:00