
Active Checks
Check Lenovo DS2200
Description:
This is a simple plugin to monitor Lenovo DS2200 storage using SSH protocol.
Current Version
0.9
Last Release Date
October 18, 2021
Compatible With
- Nagios 4.x
Owner
Download URL
Project Notes
Nagios-Lenovo-DS2200-Check
This is a simple plugin to monitor Lenovo DS2200 storage using SSH protocol.
Overview
It was written in a hurry so I know the code is a bit messy. Maybe I'll fix it someday. For now, it works and that's enough.
Requirements
It has been tested on:
Python (2.7.6 && 3.9.5)
Lenovo ThinkSystem DS2200 - ver. GT280R008-04
Ubuntu 20.04
CentOS (7.0 && 8.0)
It's require PARAMIKO: pip install paramiko
How it works
Plugin connect to storage via ssh and check what you need. If all health elements of check will be OK (or N/A in some cases), the nagios response will be OK (GREEN). If there will be error or fail, plug in return CRITICAL alert. Only initiators check will return warning if some problem will found.
How to use it
check_lenovo_ds2200.py -H [host adress] -u [ssh user name] -p [ssh user password] -P [SSH port, its options, default is 22] -c [one form a list]
Check list: disks, psu, disk-groups, pools, init, sensors, controllers, enclosures
Example: check_lenovo_ds2200.py -H 100.100.0.10 -u monitor -p 'qwerty123' -P 666 -c disks
Nagios configuration
First edit your nagios commands.cfg file and add:
define command {
command_name check_lenovo_ds2200
command_line python $USER1$/check_lenovo_ds2200.py -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -P $ARG3$ -c $ARG4$
}
Then add checks in your host.cfg file. This is example of how to define one command check:
check_lenovo_ds2200.py -H 192.168.1.15 -u nagios -p 'p@ssw0rd' -P 22 -c sensors
define service {
use generic-service
hostgroup_name StorageServers
service_description Lenovo Sensors Health Check
check_command check_lenovo_ds2200!nagios!p@ssw0rd!22!sensors
check_interval 10
notifications_enabled 1
}
Reviews
(0)
Add a Review
Page Sections
Project Stats
Rating
0 (0)
Favorites
0
Views
3,103