https://github.com/qaxi/nagios-check_3par
Nagios monitoring tool for HP 3PAR
https://github.com/qaxi/nagios-check_3par
3par hp3par monitoring monitoring-plugins nagios
Last synced: 6 months ago
JSON representation
Nagios monitoring tool for HP 3PAR
- Host: GitHub
- URL: https://github.com/qaxi/nagios-check_3par
- Owner: qaxi
- Created: 2017-04-03T13:43:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-27T06:58:09.000Z (over 4 years ago)
- Last Synced: 2025-03-24T21:22:32.609Z (7 months ago)
- Topics: 3par, hp3par, monitoring, monitoring-plugins, nagios
- Language: Shell
- Homepage:
- Size: 58.6 KB
- Stars: 5
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nagios check_3par
Basic support for monitoring HP 3PAR arrays by Nagios
## Usage
```
check_3par -h | -H <3PAR> [-d] [-u ] [-i [-p ]] [-w ] [-c ] COMMAND [ arg [arg ...]]Options:
-h, --help
Print detailed help screen
-H, --hostname=ADDRESS
3PAR controler
-i, --inform-bin=PATH
Path to 3PAR Inform CLI. Default connection method is SSH.
-u, --username=USER
3PAR username
-p, --password-file=PATH
Password file for 3PAR Inform CLI
-w, --warning=TRESHOLD (default: 80)
Warning treshold
-c, --critical=TRESHOLD (default: 90)
Critical treshold
-d, --debug
Turn on debugging
```## Supported commands
```check_pd : Check status of physical disks
Degraded -> Warning
Failed -> Criticalcheck_node : Check status of controller nodes
Degraded -> Warning
Failed -> Criticalcheck_ld : Check status of logical disks
Degraded -> Warning
Failed -> Criticalcheck_vv : Check status of virtual volumes
Degraded -> Warning
Failed -> Criticalcheck_port_fc : Check status of FC ports
loss_sync -> Warning
config_wait -> Warning
login_wait -> Warning
non_participate -> Warning
error -> Criticalcheck_cap_ssd : Check used SSD capacity
>= 80 -> Warning
>= 90 -> Criticalcheck_cap_fc : Check used FC capacity
>= 80 -> Warning
>= 90 -> Criticalcheck_cap_nl : Check used NL capacity
>= 80 -> Warning
>= 90 -> Criticalcheck_ps_node : Check Power Supply Node
Degraded -> Warning
Failed -> Criticalcheck_ps_cage : Check Power Supply Cage
Degraded -> Warning
Failed -> Criticalcheck_volume : Check status of volume
Degraded -> Warning
Failed -> Criticalcheck_qw : Check status of quorum witness
loss_sync -> Critical
error -> Critical
check_health : Check overall state of the system
check_alerts : Check status of system alerts
```## Usage in Nagios
Copy file `check_3par` to Nagios plugins directory (for example `/usr/lib/nagios/plugins/`).
Copy file `3par.cfg` to Nagios `conf.d` directory (for example `/etc/nagios/conf.d`).
Read `3par.cfg` and adjust it to your needs and restart nagios `service nagios restart`
## Testing
You can test `check_3par` while developing. Copy `test.sh.templ` to `test.sh`, edit it to meet your needs and enjoy happy testing ... ;-)
## Links
Nagios plugin developement [https://nagios-plugins.org/doc/guidelines.html#PLUGOPTIONS]