Icinga plugins

# basic plugins
apt-get install -y nagios-plugins-basic

# memory
wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/icinga/master/plugins/scripts/check_mem.sh -O - | bash -

# hddtemp
https://raw.githubusercontent.com/panticz/icinga/master/plugins/scripts/check_hddtemp.sh

# ipmi
http://www.thomas-krenn.com/de/wiki/IPMI_Sensor_Monitoring_Plugin_Version_1.x

# sensors
http://www.panticz.de/lm-sensors

# automatic apt-update

# harddisc temperature (http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=341&cf_id=24)
wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/installit/master/install.hddtemp.sh -O - | bash -
wget -q http://dl.panticz.de/icinga/check_hddtemp.sh -O /usr/lib/nagios/plugins/check_hddtemp
chmod go+x /usr/lib/nagios/plugins/check_hddtemp

# Linux memory usage check (TODO: find bether one)
# REQUIRED: apt-get install -y perl
wget -q --no-check-certificate https://raw.githubusercontent.com/justintime/nagios-plugins/master/check_mem/check_mem.pl -O /usr/lib/nagios/plugins/check_mem
chmod a+x /usr/lib/nagios/plugins/check_mem

# raid
apt-get install -y nagios-plugins-contrib --no-install-recommends
or
#wget -q http://mirrors.kernel.org/ubuntu/pool/universe/n/nagios-plugins-contrib/nagios-plugins-contrib_11.20140704_amd64.deb -P /tmp
dpkg -x http://mirrors.kernel.org/ubuntu/pool/universe/n/nagios-plugins-contrib/nagios-plugins-contrib_16.20151226_amd64.deb -P /tmp
wget http://dl.panticz.de/icinga/check_raid -P /tmp
dpkg -x /tmp/nagios-plugins-contrib_*_amd64.deb /tmp/
cp /tmp/usr/lib/nagios/plugins/check_raid /usr/lib/nagios/plugins/check_raid

# ipmi
wget -q http://mirrors.kernel.org/ubuntu/pool/universe/n/nagios-plugins-contrib/nagios-plugins-contrib_7.20130614_amd64.deb -P /tmp
dpkg -x /tmp/nagios-plugins-contrib_7.20130614_amd64.deb /tmp/
cp /tmp/usr/lib/nagios/plugins/check_ipmi_sensor /usr/lib/nagios/plugins/check_ipmi_sensor

# Harddisk (S.M.A.R.T.)
/usr/lib/nagios/plugins/check_ide_smart

# ssl certificate
su -s /bin/bash nagios -c "scp /usr/lib/nagios/plugins/check_cert_expire root@YOUR_CLIENT:/usr/lib/nagios/plugins/check_cert_expire"

# check temperature with TEMPer USB sensor (http://www.panticz.de/Ubuntu-Temperature-monitoring-with-TEMPer-USB-sensor)
wget -q http://dl.panticz.de/pcsensor/pcsensor -O /usr/local/bin/pcsensor
chmod a+x /usr/local/bin/pcsensor
wget -q https://raw.githubusercontent.com/panticz/icinga/master/plugins/check_temp -O /usr/lib/nagios/plugins/check_temp
chmod a+x /usr/lib/nagios/plugins/check_temp

# sip (not tested yet)
wget http://raw.githubusercontent.com/bashtoni/nagios-check-sip/master/check_sip -O /usr/lib/nagios/plugins/check_sip
sed -i 's|/usr/lib64/nagios/plugins|/usr/lib/nagios/plugins|g' /usr/lib/nagios/plugins/check_sip

# snmp printer check (single ink check)
wget "http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=1758&cf_id=24" -O /usr/lib/nagios/plugins/check_snmp_printer
chmod a+x /usr/lib/nagios/plugins/check_snmp_printer

# check samba share (not hiden shares)
http://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/SMB/check_smb_share/details
wget -q "http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=2508&cf_id=24" -O /usr/lib/nagios/plugins/check_smb_share
chmod a+x /usr/lib/nagios/plugins/check_smb_share

# mountpoint check (TODO)
http://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/check-nfs-2Fcifs-2Fdavfs-mountpoints/details

# check printer with snmp
wget "http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=3099&cf_id=24" -O check_printer.tgz
tar -xzf check_printer.tgz -C /usr/lib/nagios/plugins/
# test
/usr/lib/nagios/plugins/check_printer 192.168.1.16 public 30 10