Changes

Jump to: navigation, search

OPS635-lab-nagios

5 bytes removed, 22:11, 12 January 2020
m
Investigation 3: Nagios Custom Commands
==Investigation 3: Nagios Custom Commands==
* Create a script plugin called check_apache check_sshd that will use systemctl to check the state of your httpd sshd service. If the service is running, return 0. If it is inactive, return 1. If it is failed, return 2. For any other result return 3.* Create a command definition called check_apache_status check_sshd_status that will call the check_apache check_sshd plugin.* Create a new service definition that will use the new command to check the status of your apache sshd service every two minutes, going into a hard-fail state on the third failed check.* Create an event handler script to restart apache sshd if it is inactive. Use the nagios macros to make sure it only tries to restart apache the service on the second failed check (that is, before it goes into a hard-fail state).
* Add notifications similar to those for your other checks (you should be notified if the service goes into a hard-fail state, and the senior admin should be notified if you don't fix it).
 
==Investigation 4: Nagios Remote Commands==
* Under Construction
932
edits

Navigation menu