How to install Nagios on CentOS?
Nagios Installation via Yum
Yum is now setup and you can proceed to install Nagios. But before starting installation we have look for pre-requisites.
Installation Nagios Pre-requisites:
- Apache Web Server
root@yourmachine ~] yum install httpd
Now lets install Nagio
root@yourmachine ~] yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel
Nagios is core package while plugins are required to process checks on system. Development package contains the libraries, headers, & document files for developing Nagios and NRPE plugin is optional. Nagios must run under both the user and group “nagios.” The RPM install takes care of this step for you, so there’s no need to create the user and group. That’s all for the installation of Nagios so let now proceed to setup apache for Nagios.