Developing Alerts - wAlber47/Tech-Journal GitHub Wiki
Creating alerts in Nagios can be challenging at first, but this page should help you understand how to create them easily. I will show two of the alerts that my servers have created on them. All of the commands below should both be placed inside the host's configuration file inside of etc/objects
.
Host Offline Alert
- This type of simple alert can be created in one line, it's also a very useful thing to include in your management.
check_ping!200.0,20%!600.0,60%
- The values specify certain constraints that the ping details have to fall between.
Service Load Alert
- Allows for Nagios to monitor each computers CPU load, which is very useful in a more intense operation as it may be hard to keep CPU's from overstraining themselves without it. Even though this one technically is not an alert, it is still useful to be able to visualize and track.
check_nrpe!check_load
- This command uses an external named NRPE which allows for a remote computer to work with a Linux computer to grab useful component information.