Nagios: Difference between revisions
From Bashlinux
Jump to navigationJump to search
Content deleted Content added
Created page with "Many of the services are monitored via <tt>SNMP</tt>, which means it must be installed and running on each monitored host. This instructions are for a regular Nagios installa..." |
No edit summary |
||
| Line 2: | Line 2: | ||
This instructions are for a regular Nagios installation and plug-ins, for detailed explanation to setup and configuration see the following sections: |
This instructions are for a regular Nagios installation and plug-ins, for detailed explanation to setup and configuration see the following sections: |
||
* [[Nagios Hosts |
* [[Nagios Hosts configuration]] |
||
* [[Nagios Plugins |
* [[Nagios Plugins configuration]] |
||
== Installation == |
== Installation == |
||
Latest revision as of 15:38, 8 June 2015
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