HP P2000

From NetXMS Wiki
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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Pre-Requirements

  • Python 2.7 or higher
  • lxml

Setup

Python

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.