Citizens guide to the 21st century
scratch book of what you should know to be a citizen of the 21st century

apt-get install nagios-nrpe-server nagios-plugins wget www.lsi.com/downloads/Public/SATA/SATA%20Common%20Files/cli_linux_10.2.1_9.5.4.zip unzip cli_linux_10.2.1_9.5.4.zip mv x86_64/tw_cli /usr/local/sbin/ root@vz2010:~# cat /etc/nagios/nrpe_local.cfg command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_raid]=/bin/cat /tmp/3ware command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 10M -c 20M -p /dev/sda1 command[check_vz]=/usr/lib/nagios/plugins/check_vz_ubc root@vz2010:~# grep observer /etc/nagios/nrpe.cfg allowed_hosts=observer.vmk.zhdk.ch root@vz2010:~# crontab -l * * * * * cat /proc/user_beancounters > /tmp/user_beancounters * * * * * /usr/lib/nagios/plugins/check_3ware.pl -d c2 >/tmp/3ware […]

Categories: networking | Add a Comment

apt-get install nagios-nrpe-server nagios-plugins sudo vi /etc/nagios/nrpe.cfg change line: allowed_hosts=127.0.0.1 to: allowed_hosts=<ip of your nagios server> /etc/init.d/nagios-nrpe-server restart scp phrenia.vmk.zhdk.ch:/usr/lib/nagios/plugins/check_3ware.pl /usr/lib/nagios/plugins/ scp phrenia.vmk.zhdk.ch:/usr/lib/nagios/plugins/nagios_vz_bean.py /usr/lib/nagios/plugins/ vi /etc/nagios/nrpe_local.cfg command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_mysql]=/usr/lib/nagios/plugins/check_mysql -u nrpe -p nrpe command[check_raid]=/usr/bin/sudo /usr/bin/perl /usr/lib/nagios/plugins/check_3ware.pl -d c0 command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 10M -c 50M -p /dev/sda1 command[check_vz]=/usr/bin/sudo /usr/bin/python /usr/lib/nagios/plugins/nagios_vz_bean.py visudo add line: nagios  […]