- wget https://nagios.fm4dd.com/howto/source/notification-ngraph/nagios_send_host_mail.pl
- wget https://nagios.fm4dd.com/howto/source/notification-ngraph/nagios_send_service_mail.pl
- yum install perl-Mail-Sendmail rrdtool-perl perl-Digest-MD5 -y
- perl -MRRDs -le 'print q(ok!)'
http://askaralikhan.blogspot.com/2010/12/receiving-snmp-traps-in-nagios.html
-
/usr/local/nagios/libexec/check_nt -H 192.168.48.200 -p 12489 -v CLIENTVERSION -s password
-
snmpwalk -v 2c -c public 192.168.2.250
-
/usr/local/nagios/libexec/check_nrpe -H 10.0.0.124
echo "[
date +%s] DISABLE_HOSTGROUP_HOST_NOTIFICATIONS;linux-servers" > /usr/local/nagios/var/rw/nagios.cmd
echo "[
date +%s] DISABLE_HOSTGROUP_SVC_NOTIFICATIONS;linux-servers" > /usr/local/nagios/var/rw/nagios.cmd
- ./nagios_send_host_mail.pl -v -t -r [email protected] -f graph -u -l en
- ./nagios_send_host_mail.pl -v -t -r [email protected] -f graph -u -l en
yumdownloader --downloadonly --downloaddir=/tmp perl-Mail-Sendmail rrdtool-perl perl-Digest-MD5
`- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w MEM
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w PS
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w FAN
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w FAN --fan-warn=4000,6000 --fan-crit=3000,7000
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w VDISK
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w DISK
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w SENSOR
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w PU
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w BATTERY
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w CPU
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w SENSOR --temp-warn=29,61
- /usr/local/nagios/libexec/check_idrac2 -H IDRACIP -c public -p -v2c -w GLOBAL`
./check_snmp_load.pl -H 192.168.29.205 -C nagios --v2c -w 80 -c 90 -f ./check_snmp_storage.pl -H -H 192.168.29.205 -C nagios --v2c -w 80 -c 90 -m 'Physical Memory' ./check_snmp_storage.pl -H -H 192.168.29.205 -C nagios --v2c -w 80 -c 90 -m 'Virtual Memory' ./check_snmp_storage.pl -H -H 192.168.29.205 -C nagios --v2c -w 80 -c 90 -q 'FixedDisk' -m C ./check_snmp -H 192.168.29.205 -C nagios -o sysUpTime.0
yum install perl-DBI perl-DBD-MySQL perl-GD cpan install DBI yum install perl-DBD-mysql ./check_mysqld.pl -H localhost -u root -p mysql ./check_mysqld.pl -H localhost -u root -p mysql -a uptime,threads_connected,questions,slow_queries,open_tables -A threads_running,innodb_row_lock_time_avg -w ",,,," -c ",,,,>250"