nagios Red hat linux Shell scripting

How to Install Nagios 4.3.4 on RHEL / CentOS

Nagios is an awesome Open Source monitoring tool, its provides you more comprehensive monitoring environment to always keep an eye on your all machines / networks whether you are in a your data center or just your small labs.


With Nagios, you can monitor your remote hosts and their services remotely on a single window. It shows warnings and indicates if something goes wrong in your servers which eventually helps us to detect some problems before they occur. It helps us to reduce downtime and business losses.

Download Nagios:

Include Ngios config file to apache
go to the bottom of the page and insert as below
Create password for “nagiosadmin” user
Restart apache and start nagios
Install Nagios Plugins
Set auto start to nagios and apache services
usermod -a -G nagios apache – permanent fix for Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!

Installing Plugins and NRPE on Remote Linux Host

Installing NRPE without xinetd on Nagios Host and Remote Host
Configure NRPE
Veryfing nagios config
Enable external cgi commnds

Leave a Reply

Your email address will not be published. Required fields are marked *