Nagios is an open source monitoring tool that has been available since 1999. It is commonly used to monitor servers, services, and applications. The document discusses how to install and configure Nagios on various platforms like CentOS, Ubuntu, and Mac OS X. It also provides examples of how to monitor common services like HTTP, MySQL, disk space, and custom applications using Nagios plugins. Graphing and alerting capabilities are discussed as well. The presentation concludes with a demonstration and Q&A section.
7. HTTP
• check_http plugin
• Can check port, string in respond, path, etc.
• Can do POST request with content
• Can do GET, HEAD, OPTIONS,TRACE, DELETE requests
• Can do BASIC auth
9. Using Selenium WebDriver
• Need more complex HTTP check?
• Selenium WebDriver + Google Chrome + script to the rescue!
10. MySQL
• Two plugins: check_mysql and check_mysql_query
• check_mysql can check status of slave
• check_mysql_query will check result of query against warning/
critical levels
12. Disk
• You don’t want to run out of disk space!
• check_disk plugin
• Check available disk space of specific file system or path
13. JMX
• Check the heap space of your WO apps!
• check_jmx
• http://exchange.nagios.org/directory/Plugins/Java-Applications-
and-Servers/check_jmx/details
14. check_woapp.py
• Nagios plugin (Python) that checks numerous stuff in Monitor
• State
• Number of deaths
• Is refusing new sessions
• Is auto recover on?
• # of active sessions
15. Plugin development
• Can be anything! Bash, Python, Perl, Java, etc.
• Only need to send proper exit() signal
• Better to send performance data too
18. Actions
• Can launch actions (scripts) based on events
• Nagios call this « event handlers »
• Examples:
• Start new instance if one is down
• Start newVM if host memory is low