What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Using SSH / Powershell to parse EMC Data Domain Physical Capacity Measurements

Votes:

0

Hi,

I am new to PRTG, and while my experience has been great so far, I am stuck with some manual / scripted sensor manipulations.

Specifically, I am trying to chart EMC Data Domain physical capacity measurements, values which are not exposed by the EMC Data Domain MIB, but can be obtained at a command line as follows:

SERVICES\jonathanb@hostname# compression physical-capacity-measurement sample show history

MTree: /data/col1/MTREE_ONE
Measurement Time      Logical Used   Physical Used   Global-Comp   Local-Comp        Total-Comp
                        (Pre-Comp)     (Post-Comp)        Factor       Factor            Factor
                             (GiB)           (GiB)                                (Reduction %)
-------------------   ------------   -------------   -----------   ----------   ---------------
2017/09/04 19:34:17            0.0             0.0         0.00x        0.00x     0.00x (0.00%)
2017/09/10 06:00:03          133.9            13.0         6.64x        1.55x   10.28x (90.28%)
2017/09/14 16:18:26          117.3            12.7         5.97x        1.55x    9.24x (89.18%)
2017/09/17 06:00:03          150.9            14.2         6.86x        1.55x   10.63x (90.59%)
2017/09/23 02:45:56          184.4            15.6         7.63x        1.55x   11.84x (91.55%)
-------------------   ------------   -------------   -----------   ----------   ---------------

MTree: /data/col1/MTREE_TWO
Measurement Time      Logical Used   Physical Used   Global-Comp   Local-Comp       Total-Comp
                        (Pre-Comp)     (Post-Comp)        Factor       Factor           Factor
                             (GiB)           (GiB)                               (Reduction %)
-------------------   ------------   -------------   -----------   ----------   --------------
2017/09/04 19:33:57            0.0             0.0         0.00x        0.00x    0.00x (0.00%)
2017/09/10 06:00:02        45120.8          8314.3         1.85x        2.94x   5.43x (81.57%)
2017/09/14 16:17:07        69841.0         11729.8         2.04x        2.92x   5.95x (83.21%)
2017/09/17 06:00:04       151515.1         18180.3         2.88x        2.89x   8.33x (88.00%)
2017/09/23 02:45:55       197882.5         20609.3         3.34x        2.88x   9.60x (89.59%)
-------------------   ------------   -------------   -----------   ----------   --------------

Total number of measurements retrieved = 10.

The goal is that each MTREE (think directory / accounting unit), I want to plot Logical Used and Physical Used over Time; where time would be sampling once per week. This information is currently available in a different system, but I want to record and expose it through a PRTG MAP:

EMC Data Domain MTREE Capacity Usage

The challenge with the SSH Script sensor is that the DDOS is locked down so that you can't create or store a script on it.

  • Any suggestions how I could access the data from PRTG?
  • Any suggestions how I could parse the entries in PRTG into channels to allow the type of chart I need?

emc prtg ssh

Created on Sep 24, 2017 4:36:17 PM

Last change on Sep 25, 2017 11:20:39 AM by  Felix Saure [Paessler Support]



3 Replies

Votes:

0

Hello JBourke,

I understand what you try to achieve, but I only know DDoS as a Distributed-Denial-of-Service, how exactly does this affect the creation of the script?

There are two ways to create you own sensor:

  1. Store the script on the target machine and return the output to an SSH Script Advanced Sensor.
  2. Forward the results via HTTP. You can use the HTTP Push Data Advanced sensor to receive the HTTP requests.

The required syntax to create multiple channels is described on the
Setup | PRTG API | Custom Sensor page.

Best regards, Felix

Created on Sep 25, 2017 11:45:37 AM by  Felix Saure [Paessler Support]



Votes:

0

Hi Felix,

In this case, DDOS = Data Domain Operating System, the highly customised OS running on EMC Data Domain systems.

It affects the script because you can't write to the file system, you can't put a script on the Data Domain.

I am thinking I may need to store something like a Powershell script locally on my PRTG host, and use that to establish an SSH session to the Data Domain, and parse the returned values into channels...but I have no idea how to do that.

Created on Sep 25, 2017 11:51:54 AM



Votes:

0

Hi there,

Thanks for clearing that up with the "DDOS". :)
You can also try to build a PowerShell-script (as you already suggested) by using the "EXE/Script Sensors":
https://www.paessler.com/manuals/prtg/exe_script_sensor
https://www.paessler.com/manuals/prtg/exe_script_advanced_sensor
The correct syntax of these sensors is described within the PRTG Webinterface under "Setup > PRTG API".

Best regards.

Created on Sep 26, 2017 8:33:44 PM by  Dariusz Gorka [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.