Using CheatSheets To Apply Best Practices

Nagios Cheatsheet

Nagios Cheatsheet

1.1 Nagios Summary

Name Summary
nagiosadmin /etc/nagios3/htpasswd.users
server url http://$nagios_ip/nagios3/
NRPE: customized checks /etc/nagios/nrpe.cfg
npre /var/run/nagios/ nagios-nrpe-server port:5666
nagios tree /var/lib/nagios3/
Nagios conf /etc/nagios3/conf.d, /etc/nagios3/nagios.cfg
historical /var/log/nagios3/nagios.log
nagios retention file /var/lib/nagios3/retention.dat
nagios status file /var/cache/nagios3/status.dat
nagios plugins /usr/lib/nagios/plugins
nagios rrd /usr/local/nagiosgraph/var/rrd/localhost
nagiosgraph conf /usr/local/nagiosgraph/etc, /usr/local/nagiosgraph/etc/nagiosgraph.conf
nagiosgraph log /usr/local/nagiosgraph/var/nagiosgraph.log
dataset options for nagiosgraph /usr/local/nagiosgraph/etc/datasetdb.conf
checknrpe command /etc/nagios-plugins/config/check_nrpe.cfg

1.2 Nagios Check status

Name Summary
Ubuntu/Debian /etc/init.d/nagios3 status, /etc/init.d/nagios-nrpe-server status
CentOS/Fedora /etc/init.d/nagios status, /etc/init.d/nrpe status

1.3 Nagios Check & Plugins

Name Summary
memory check /usr/lib/nagios/plugins/check_nrpe -H -c check_MEMORY
disk check /usr/lib/nagios/plugins/ -M -w 95,90 -c 100,95
disk check /usr/lib/nagios/plugins/check_nrpe -H -c check_DISK_USAGE -t 20
http check /usr/lib/nagios/plugins/check_http -H -p 80
ssh check /usr/lib/nagios/plugins/check_by_ssh -H -C date -l mac
checkproccpu Nagios Plugin: Monitor Service CPU
checkprocfd Nagios Plugin: Monitor Process FD
checkprocmem Nagios Plugin: Monitor Service Memory

1.4 More Resources

License: Code is licensed under MIT License.


Leave a Reply

Your email address will not be published. Required fields are marked *