Skip to main content

Managing the Time in Nagios

Hands-On Lab

 

Photo of

Training Architect

Length

00:45:00

Difficulty

Beginner

For this lab, you will need to install and configure the Network Time Protocol (NTP) for Nagios so the local Nagios server is synced with any other time server every hour.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Managing the Time in Nagios

Introduction

For this lab, you will need to install and configure the Network Time Protocol (NTP) for Nagios so the local Nagios server is synced with any other time server every hour.

Solution

  1. Begin by logging in to the lab server using the credentials provided on the hands-on lab page.

    ssh cloud_user@PUBLIC_IP_ADDRESS

Install and Configure NTP

  1. Install NTP.

    sudo yum install ntp
  2. Start synchornization.

    sudo systemctl start ntpd
  3. Verify the synchronization is running.

    systemctl status ntpd
  4. Open the configuration file to double-check the server configuration.

    sudo vim /etc/ntp.conf
  5. View the operational information.

    ntpq -p
  6. Check how often Nagios is polling the time.

    ntpstat

Conclusion

Congratulations — you've completed this hands-on lab!