Changes between Version 67 and Version 68 of LSIMegaRAIDSAS


Ignore:
Timestamp:
02/10/16 13:32:21 (8 years ago)
Author:
Adam Cécile
Comment:

Nagios stuff

Legend:

Unmodified
Added
Removed
Modified
  • LSIMegaRAIDSAS

    v67 v68  
    683683}}}
    684684
    685 
     685=== 3.4.3. Nagios integration ===
     686
     687The script can be called with --nagios parameter. It will force a single line output and will return exit code 0 if all good, or 2 if at least one thing is wrong.
     688It's the standard nagios expected return code.
     689
     690You probably want to run the script through NRPE, define the command like this:
     691
     692In '''/etc/nagios/nrpe.d/00_check_raid.cfg'''
     693{{{
     694command[check_raid]=/usr/bin/sudo /usr/sbin/megaclisas-status --nagios
     695}}}
     696
     697You also need a sudo config file, in '''/etc/sudoers.d/00-check-raid'''
     698{{{
     699nagios ALL=(root) NOPASSWD:/usr/sbin/megaclisas-status --nagios
     700}}}
     701
     702Then you can expect such monitoring facilities (centreon on-top centreon-engine in this picture):
     703
     704[[Image(centreon_check_raid.png)]]
    686705
    687706== 3.5. About /dev/megaraid_sas_ioctl_node ==