Nagios
From Bashlinux
Jump to navigationJump to search
Many of the services are monitored via SNMP, which means it must be installed and running on each monitored host.
This instructions are for a regular Nagios installation and plug-ins, for detailed explanation to setup and configuration see the following sections:
Installation
- Install Nagios dependencies
- Install Nagios plug-ins dependencies
- Install Nagios
- Create password for web admistrator
The commands for the above instructions are:
# yum install fping perl-Crypt-DES perl-Net-SNMP perl-Socket6 # yum install perl-XML-Parser mod_perl perl-Frontier-RPC perl-XML-XPath # yum install nagios nagios-plugins nagios-plugins-nrpe # htpasswd -c /etc/nagios/htpasswd.users nagiosadmin
Standard Configuration
- Check this values in /etc/nagios/cgi.cfg{}
use_authentication=1 authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin
- To monitor apache, un comment the following lines
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
Plug-ins
Some 3rd party plug-ins that might help to check hosts via snmp without a Nagios agent