HP P2000
Revision as of 11:58, 12 February 2013 by AlexKirhenshtein (talk | contribs) (Created page with "== Pre-Requirements == * Python 2.7 or higher * lxml == Setup == === Python === * Debian: apt-get install python * Windows: http://downloads.activestate.com/ActivePython/rele...")
Pre-Requirements
- Python 2.7 or higher
- lxml
Setup
Python
- Debian: apt-get install python
- Windows: http://downloads.activestate.com/ActivePython/releases/2.7.2.5/ActivePython-2.7.2.5-win32-x86.msi
LXML
- Debian: apt-get install python-lxml
- Windows: use binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
- Other systems: use OS package manager or do "pip install lxml"
Array setup
Login as administrator and create separate read-only user for monitoring
Agent
- Download latest version of the script and copy it to any directory on the server where agent is running
- Run script by hand to check that it can communicate with the Array's management interface:
./p2000.py -a ARRAY_IP -u USER -p PASSWORD
- If you see no output, add "-d" switch to enable debug output:
./p2000.py -a ARRAY_IP -u USER -p PASSWORD -d
- Configure script as ExternalParametersProvider in nxagentd.conf:
ExternalParametersProvider=/path/to/p2000.py -a ARRAY_IP -u USER -p PASSWORD:60
Check ExternalParametersProvider for more details.
p2000.py usage
Alexs-MacBook-Air:~/Development/netxms/contrib/integration/HP_P2000 alk$ ./p2000.py -h
usage: p2000.py [-h] -a ADDRESS -u USER -p PASSWORD [-n] [-t TAG] [-d]
[-T TIMEOUT]
Get status and performance data from HP P2000 disk arrays.
optional arguments:
-h, --help show this help message and exit
-a ADDRESS, --address ADDRESS
Array IP address
-u USER, --user USER Username
-p PASSWORD, --password PASSWORD
Password
-n, --nossl Disable https
-t TAG, --tag TAG Array tag, will be added to DCI name after prefix
(e.g. "P2000[tag]."). Usefull for monitoring multiple
arrays
-d, --debug Enable debug output
-T TIMEOUT, --timeout TIMEOUT
Network timeout in seconds, default value: 15.