User Tools

Site Tools


nagios

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
nagios [2012/03/29 13:12] – created ikahugunagios [2012/06/05 11:44] ikahugu
Line 1: Line 1:
-How to setup check_megaraid_sas+[[How to setup check_megaraid_sas]]
  
-1. Make sure you have Megacli installed. In HPC it's installed in /opt/MegaRAID/MegaCli/ 
-2. Download check_megaraid_sas script from Nagios Exchange to the plugins folder of the host. 
-In most systems this is in /usr/lib64/nagios/plugins or /usr/lib/nagios/plugins 
  
-3. The MegaCli script has to be run as root, usually nrpe runs as user nrpe. The nagios check script is fully aware of that and uses sudo to call the raid check script. So nrpe needs to be allowed to call this script as root. Use visudo and add this line:+[[Enable Nagios commands via web-interface]]
  
-nrpe ALL=(ALL) NOPASSWD: /opt/MegaRAID/MegaCli 
- 
-OPTION 2 TODO: (check hpc's /etc/sudoers) 
- 
-4. Add a new command definition to nrpe config : /etc/nagios/nrpe.cfg 
-<code> 
-command[check_raid]=/usr/lib64/nagios/plugins/check_megaraid_sas 
-</code> 
  
  
nagios.txt · Last modified: 2012/07/19 06:56 by ikahugu