https://github.com/derjd/nagios-plugins
Collection of check scripts compatible with nagios, nrpe, icinga, icinga2.
https://github.com/derjd/nagios-plugins
icinga icinga2 icinga2-plugins monitoring-plugins nagios nagios-plugins nrpe-plugins
Last synced: 2 months ago
JSON representation
Collection of check scripts compatible with nagios, nrpe, icinga, icinga2.
- Host: GitHub
- URL: https://github.com/derjd/nagios-plugins
- Owner: derJD
- Created: 2016-07-17T20:31:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-22T18:26:44.000Z (about 5 years ago)
- Last Synced: 2025-01-11T18:19:25.377Z (4 months ago)
- Topics: icinga, icinga2, icinga2-plugins, monitoring-plugins, nagios, nagios-plugins, nrpe-plugins
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nagios-plugins
A collection of check scripts compatible with nagios, nrpe, icinga, icinga2.## HP/MF DataProtector
Scripts for monitoring DataProtector.
### Requirements* Ruby >= 1.8.7
* CentOS/RedHat >= 6
* Cell Manager >= 6.XX### check_hpdp_pool_health
HP DataProtector nagios check for Pool health status**Example**
```
root@dp01:~ # ./check_hpdp_pool_health.rb -h
Usage: check_hpdp_pool_health.rb [options]
-p, --pool name of pool to check (regex possible)
-w Number of media left raising warning
--warning
-c Number of media left raising critical
--critical
-h, --help Show this help message
root@dp01:~ #
```* Check all pools containing "LTO" in their name
```
root@dp01:~ # ./check_hpdp_pool_health.rb -p LTO
OK: All media in pool "LTO-default" in good shape
OK: All media in pool "LTO_freepool" in good shape
OK: All media in pool "LTO-group1" in good shape
OK: All media in pool "LTO-group2" in good shape
root@dp01:~ #
```* Check pool with custom mediacount threathold
```
root@dp01:~ # ./check_hpdp_pool_health.rb -p local -c 10
CRITICAL: Pool "local" has less/equal 10 writable media left!
root@dp01:~ # ./check_hpdp_pool_health.rb -p local -w 10
WARNING: Pool "local" has less/equal 10 writable media left!
root@dp01:~ #```
### check_hpdp_pool_size
HP DataProtector nagios check for Pool usage**Example**
```
root@dp01:~ # ./check_hpdp_pool_size.rb --help
Usage: check_pool.rb [options]
-p, --pool name of pool to check (regex possible)
-w, --warning Percent space raising warning
-c Percent space raising critical
--critical
-f, --filter string to group pools
-h, --help Show this help message
root@dp01:~ #
```* Check single pool
```
root@dp01:~ # ./check_hpdp_pool_size.rb -p ceph_ma1_1weeks
Pool "ceph_ma1_1weeks": 10236GB Total; 2102GB (21%) Used | 'Pool Size ceph_ma1_1weeks'=2102GB;7677.0;9212.4;0;10236
root@dp01:~ #
```* check Loadbalanced pools and filter / merge their usage together:
```
root@dp01:~ # ./check_hpdp_pool_size.rb -p ceph_ma._1weeks -f 1weeks
Pool "ceph_ma2_1weeks": 2047GB Total; 0GB (0%) Used | 'Pool Size ceph_ma2_1weeks'=0GB;1535.25;1842.3;0;2047
Pool "ceph_ma3_1weeks": 2047GB Total; 2047GB (100%) Used | 'Pool Size ceph_ma3_1weeks'=2047GB;1535.25;1842.3;0;2047
Pool "ceph_ma1_1weeks": 10236GB Total; 2102GB (21%) Used | 'Pool Size ceph_ma1_1weeks'=2102GB;7677.0;9212.4;0;10236
Pool "1weeks": 14330GB Total; 4148GB (29%) Used | 'Pool Size 1weeks'=4148GB;10747.5;12897.0;0;14330
root@dp01:~ #
```### check_hpdp_sos_status
HP DataProtector nagios check for StoreOnceSoftware status**Example**
```
root@dp01:~ # ./check_hpdp_sos_status.rb -h
Usage: check_hpdp_sos_status.rb [options]
-H, --host Name of StoreOnceSoftware Server
-S, --store Name of StoreOnceSoftware Servers Storage
-L, --limit Percent of free space
-h, --help Show this help message
root@dp01:~ #
``````
root@dp01:~ # ./check_hpdp_sos_status.rb -H ma1-dp01.backup.example.com -S B2D_ma1 -L 10
OK: B2D_ma1 is Online.
Dedupratio: 4.2 : 1
22.52% of Space left on device
root@dp01:~ #
```