AWS Documentation

  1. Home
  2. Docs
  3. AWS Documentation
  4. AWS Nagios on Amazon Linux 2

AWS Nagios on Amazon Linux 2

Nagios Core 4.4.9 AMI on Amazon Linux 2

This AMI features:

  • Apache 2.4
  • PHP 8.1
  • Nagios Core 4.4.9

Nagios installation

Once the instance is running, please access your hosting domain or enter the public DNS provided by AWS {IPv4 Public IP} into your browser.

https://<Nagios host or IP>/nagios

Nagios web server requires basic authentication.

You can find the nagiosadmin user password by accessing the System Log in the EC2 management console:

  1. Go to the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
  2. Chose your Instance and Click on Actions → Monitor and troubleshoot → Get System Log.
  1. Get System log as shown below.

You can also SSH into your instance and find the login credential using the following command.

$ cat /home/ec2-user/credentials 
////////////////////credentials info////////////////////
--- Nagios Core
----- Setting  : Success
----- User     : nagiosadmin
----- Password : tpyiokav25ngPOan
////////////////////////////////////////////////////////

You can access Nagios Core application after completing basic authentication.

Nagios

Nagios config path

/usr/local/nagios/etc/nagios.cfg

Verifying Your Configuration:

$ sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Stop

$ sudo systemctl stop nagios

Nagios Start

$ sudo systemctl start nagios

Nagios Restart

$ sudo systemctl restart nagios

Nagios Reload

$ sudo systemctl reload nagios

Reference

Tags
Was this article helpful to you? Yes No

How can we help?