Nagios Web Frontend Quickstart for macOS
The Unix Tutorial shows you Step-by-Step How to Install and Getting-Started with Nagios Monitoring with the Web Frontend on macOS 10.10 Yosemite 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 Core on macOS 10.10 Yosemite.
-
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 /usr/local/homebrew/Cellar/nagios/4.0.6/share/nagios.conf /etc/apache2/other/
-
Create the nagiosadmin Account with Pass:
sudo htpasswd -cs /usr/local/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!