Skip to content

Instantly share code, notes, and snippets.

@anthony-kam
anthony-kam / collectd.conf
Created October 25, 2016 15:48
Collectd.conf with pretty generic metrics
### collectd.conf config file (Collectd 5.5)
FQDNLookup true
Interval 300
Timeout 2
ReadThreads 5
LoadPlugin syslog
@anthony-kam
anthony-kam / smartctl_script.sh
Created October 25, 2016 15:46
Check SMART with software or hardware raid (MegaRaid)
#!/bin/bash
## Prerequisites :
# smartmontools - Sudo command & espacially (sudo /usr/sbin/smartctl).
# MegaCli (MegaRAID) if needed.
# HP ACU Cli (HP RAID) if needed.
## Inside your file /etc/sudoers:
# backup ALL= NOPASSWD: sudo /sbin/MegaCli -pdlist -a0
# backup ALL= NOPASSWD: sudo /usr/sbin/smartctl