User Tools

Site Tools


nagios

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
nagios [2012/03/29 13:15] ikahugunagios [2012/03/29 13:18] ikahugu
Line 2: Line 2:
  
 1. Make sure you have Megacli installed. In HPC it's installed in /opt/MegaRAID/MegaCli/ 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. 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 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: 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:
 +<code>
 nrpe ALL=(ALL) NOPASSWD: /opt/MegaRAID/MegaCli nrpe ALL=(ALL) NOPASSWD: /opt/MegaRAID/MegaCli
 +</code>
  
 OPTION 2 TODO: (check hpc's /etc/sudoers) OPTION 2 TODO: (check hpc's /etc/sudoers)
 +
 +<code>
 +
 +nrpe    ALL = NOPASSWD: RAIDSTATUSNRPE
 +
 +</code>
 +
  
 4. Add a new command definition to nrpe config : /etc/nagios/nrpe.cfg 4. Add a new command definition to nrpe config : /etc/nagios/nrpe.cfg
nagios.txt · Last modified: 2012/07/19 06:56 by ikahugu