Nagios Web Frontend Quickstart for Mac OS X 10.11 El Capitan
The Mac Tutorial Shows You Step-by-Step How-to Install and Getting-Started with Nagios Monitoring with the Web Frontend on Mac OS X 10.11 El Capitan Unix/BSD.
Here it’s Assumed that the Apple’s Build-in Apache WebServer and PHP is Used, so If Not then Adapt consequently the Commands…
Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes.
-
How-to Install Nagios on Mac OS X 10.11 El Capitan:
-
Starting the Apache WebServer:
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
-
Enable the Apache PHP Module:
sudo nano /private/etc/apache2/httpd.conf
Uncomment:
LoadModule php5_module libexec/apache2/libphp5.so
Ctrl+x to Save & Exit from nano 🙂
-
Symlink the sample config:
sudo ln -sf ~/homebrew/Cellar/nagios/4.0.6/share/nagios.conf /etc/apache2/other/
-
Create the nagiosadmin Account with Pass:
sudo htpasswd -cs ~/homebrew/etc/nagios/htpasswd.users nagiosadmin
Set the Admin Password.
-
Restart Apache WebServer:
sudo apachectl restart
-
Log-in into the Nagios Monitoring Web Interface
http://localhost/nagios
Insert ‘nagiosadmin’ and the Pass!