---
title: "How to monitor HPE 3PAR StoreServ with op5 Monitor"
description: "Monitoring HPE 3PAR StoreServ with op5 Monitor involves setting up a custom check script and configuring SSH access for the monitor user. The process includes downloading the plugin, creating SSH keys, and defining check commands to enable service monitoring."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020253153-op5-monitor-how-to-monitor-hpe-3par-storeserv-with-op5-monitor/index.html"
---
## This procedure is unsupported

Articles in the "Unsupported Community Documents" space are not supported by ITRS support.

### Version

This article was written for version 7.3.9 of op5 Monitor, it could work on both lower and higher versions if nothing else is stated.

### Introduction

*HPE 3PAR StoreServ storage* is Tier 1 all-flash array data storage that can scale midsize to the largest enterprises and service providers, for instant application provisioning and high levels of service at a fraction of the cost.

This how-to will show you how to set up monitoring with a couple of easy steps.

The plugin is tested against the HPE 3PAR simulator running on version 3.2.2 (MU2).

### Prerequisites

- Admin-level access to 3PAR
- Basic knowledge of service configuration in *op5 Monitor*
- SSH access from op5 Monitor to 3PAR

### Software download

Download check\_3par.sh ([download](https://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/3PAR-check-script/details)) and store it to op5 Monitor /opt/plugins/custom and make it executable.

Please note, that there are more recent updates to that script mentioned in the comments (which supports SSD drives as well).

You may want to upgrade to that (copy content from the comment field, paste it to the editor, and save it as check\_3par.sh)

Also, some other 3par related scripts are available (one at GitHub as check\_3par\_perf)

### Create SSH key for monitor user

Login to op5 Monitor as **monitor** user and create SSH key if not yet created

Check files under /opt/monitor/.ssh

If you have id\_rsa and id\_rsa.pub then you may skip SSH key creation

```
-bash-4.2$ ssh-keygen
```

(press Enter to accept default settings)

Check the SSH key and copy it to the clipboard (it's a long line, make sure to copy all the content)

```
-bash-4.2$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXjsVdIT08KXEbiaaAI/WFJhM31CFSmtYW8j3qKTOLAwYH6o/2kTYJR2vA28H/rwNqsjq9dAqMRNW4GGWXFvLbau4jOkm/a6s6dNgTS2M+P1VqhSwBHNL9J/dODYQDid2xMv7trvNHsYvoXl96gjuelU8jfZZTPSei7yEiQs9OPu+nWXzlRmq+gbtdDvUVOeVl1PU/+jJBLsBfy5F5Gviu4z9n8nOPxvzKvbeEdt4uzpycOgAVkuwAj8lcVDmqpqIrp1PA+ifh+0j2eaWUyQNcy2YJ5xJyXhkJkHFqJaH6VF2J90s7s9EzHuI4n monitor@op5_7
```

### Login to 3PAR as administrative level user

(in this case 3paradm)

```
[root@localhost ~]# ssh 3paradm@192.168.8.50
Password:
3par cli%
```

### Create monitor user and set password

(use a better password than this in the example)

```
3par cli% createuser -c q1w2e3r4t5 monitor all browse
User created
3par cli% exit
```

### Login to 3PAR as monitor user

(use the password created in the previous step)

```
[root@localhost ~]# ssh monitor@192.168.8.50
Password:
3par cli%
```

### Setup passwordless SSH

(enter the command and then copy&paste SSH key from op5 server to here)... Remember to press "Enter" twice

```
3par cli% setsshkey
Please enter the SSH public key below.  When finished, press enter twice.
The key is usually long. It's better to copy it from inside an editor and paste it here. (Please make sure there are no extra blanks.)
The maximum number of characters used to represent the SSH key (including the "from" option, key type, and additional comments) is 4095.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXjsVdIT08KXEbiaaAI/WFJhM31CFSmA28H/rwNqsjq9dAqMRNW4GGWXFvLbau4vCPJp1AA60TRhjOkm/a6s6dNgTS2M+P1VqhSwBHNL9J/dODYQDid2xMv7trvNHsYvoXl96gjuelU8jfZZTPSei7yEiQs9OPu+nWXzlRmq+gbtdDvUVOeVl1PU/+jJBLsBfy5F5Gviu4z9n8nOPxvzKvbeEdt4uzpycOgAVkuwAj8lcVDyXhkt8UNM3MnDMC28zJkHFqJaH6VF2J90s7s9EzHuI4n monitor@op5_7
SSH public key successfully set.
```

### Test few commands as monitor user

```
3par cli% showversion
Release version 3.2.2 (MU2)
Patches: None
Component Name                   Version
CLI Server                       3.2.2 (MU2)
CLI Client                       3.2.2
System Manager                   3.2.2 (MU2)
Kernel                           3.2.2 (MU2)
TPD Kernel Code                  3.2.2 (MU2)
```

```
3par cli% shownode
                                                            Control    Data        Cache
Node --Name--- -State-- Master InCluster -Service_LED -LED- Mem(MB) Mem(MB) Available(%)
   0 1699678-0 Degraded Yes    Yes       Off          Green    2048     512            0
   1 1699678-1 Degraded No     Yes       Off          Amber    2048     512            0
```

### Test check\_3par.sh script

```
-bash-4.2$ cd /opt/plugins/custom
-bash-4.2$ ./check_3par.sh 192.168.8.50 monitor check_pd
OK : All PDs have normal status
-bash-4.2$
```

### Configuring check command

Go to the "Commands" configuration page in *op5 Monitor* and create a new check command with the following options:

- **command\_name**: check\_3par
- **command\_line:** $USER1$/custom/check\_3par.sh $HOSTADDRESS$ monitor $ARG1$

![OP5 Monitor - How to monitor HPE 3PAR StoreServ with op5 Monitor](https://docscdn.itrsgroup.com/faq/images/op5/360020253153-19759187-3par_check_command.png)

### Monitoring test cases

Create a new service on your target host in op5 Monitor and select the "check\_3par" command.
The check command requires one argument:

| Argument | Description |
| --- | --- |
| $ARG1$ | check type |

**Example:**

![OP5 Monitor - How to monitor HPE 3PAR StoreServ with op5 Monitor](https://docscdn.itrsgroup.com/faq/images/op5/360020253153-19759187-3par_check_logical_disk_status.png)

Other check\_command arguments to be used:

- check\_cap\_fc
- check\_cap\_nl
- check\_cap\_ssd
- check\_port\_fc
- check\_node
- check\_pd
- check\_ps\_cage
- check\_ps
- check\_vv

### Additional information

- [Nagios Exchange](https://exchange.nagios.org) [(External)](https://www.selenium.dev/documentation/)

#### Support information

3PAR check plugin and its dependencies are third-party products, not supported by op5 AB


