Changes

Jump to: navigation, search

OPS635-lab-nagios

1,578 bytes added, 16:40, 13 January 2020
m
no edit summary
==Investigation 4: Nagios Remote Commands==
* Under Construction* Clone your existing VM again. Call the new VM nagiosclonenagiosnrpe.<yourdomain>.ops, provide it a static address of your choice, and add it to your DNS server.* Install NRPE on nagiosclonenagiosnrpe.* Make sure to modify the NRPE configuration on nagiosnrpe to allow your nagios server to contact it.* Copy your check_sshd plugin to nagiosnrpe, making sure the user account for nrpe can run it. Note you will have to negotiate this with sudo and selinux.* Add a command to your nrpe configuration to allow remote execution of check_sshd.* Start and enable the service, and allow traffic to it through your firewall.* Back on your nagios server, add a new host definition for nagiosnrpe, and add a service that uses nrpe to run the check_sshd plugin on nagiosnrpe.* Ensure that the check runs correctly, then do something to intentionally make it fail (e.g. stop the sshd service), and ensure that that gets recorded too. 
==Submission==
Demonstrate Upload your lab1.cfg, the nagios configuration from nagiosnrpe, your check_sshd plugin, and your event handler to blackboard. ==Completing The Lab==You have now gained experience using common elements of nagios to monitor machines in your script working network. You have configured hosts that should be monitored, identified services to monitor on a newly installed VMthem, created contacts and notifications so that administrators will be notified when things to wrong (and senior admins can be notified if they don't get fixed), and upload it used nrpe to blackboardallow checks to be performed remotely. You have also written simple checks to customize what you want monitored, and event handlers so that nagios can try to repair simple issues for you. There is still more to learn (host and service groups and dependencies will make your configuration much more efficient), but there is only so much room in the course. With what we have covered you have the basic building blocks to monitor your network.
932
edits

Navigation menu