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

Custome SSH script for peplink balance

Votes:

0

Hi, I have a peplink balance device and using PRTG to monitor network. I tried MIB but it not support to monitor WAN bandwidth on peplink. However, I can use SSH to get information about WAN bandwidth (content below). How to get this information as a PRTG sensor?

Best regards.

-------------

> get bandwidth wan 1
Connection                           Download         Upload          Total
FTTH_VDC                             749 kbps        81 kbps       830 kbps
    HTTP                               0 kbps         0 kbps         0 kbps
    HTTPS                            741 kbps        78 kbps       820 kbps
    IMAP                               0 kbps         0 kbps         0 kbps
    POP3                               0 kbps         0 kbps         0 kbps
    SMTP                               0 kbps         0 kbps         0 kbps
    OTHERS                             7 kbps         2 kbps        10 kbps

> get bandwidth wan 2
Connection                           Download         Upload          Total
FTTH_VIETTEL                        3784 kbps       948 kbps      4732 kbps
    HTTP                               1 kbps         0 kbps         2 kbps
    HTTPS                            958 kbps       884 kbps      1843 kbps
    IMAP                               0 kbps         0 kbps         0 kbps
    POP3                               0 kbps         0 kbps         0 kbps
    SMTP                               0 kbps         0 kbps         0 kbps
    OTHERS                          2823 kbps        63 kbps      2887 kbps

> get bandwidth wan 3
Connection                           Download         Upload          Total
FTTH_FPT                           16168 kbps       233 kbps     16401 kbps
    HTTP                               8 kbps        12 kbps        20 kbps
    HTTPS                          13773 kbps       185 kbps     13958 kbps
    IMAP                               0 kbps         0 kbps         0 kbps
    POP3                               0 kbps         0 kbps         0 kbps
    SMTP                               0 kbps         0 kbps         0 kbps
    OTHERS                          2386 kbps        35 kbps      2422 kbps

peplink prtg ssh ssh-script ssh-script-advanced-sensor

Created on Mar 11, 2019 11:21:06 AM

Last change on Mar 11, 2019 11:23:56 AM by  Torsten Lindner [Paessler Support]



3 Replies

Votes:

0

You could use the SSH Script Advanced Sensor, but parsing this will be a pain I'm afraid :(


PRTGapi | Feature Requests | WMI Issues | SNMP Issues

Kind regards,
Stephan Linke, Tech Support Team

Created on Mar 11, 2019 7:29:06 PM by  Stephan Linke [Paessler Support]



Votes:

0

Hi Stephan,

I can not access/ save file on Peplink device so can not use your guide "The dropdown menu will list all script files available in the /var/prtg/scriptsxml directory on the target Linux/Unix system." Anw i found a MIB can use to monitor WAN bandwidth, not real time but better than nothing.

Thank you.

Created on Mar 12, 2019 6:18:43 AM



Votes:

0

You could also use this approach to use PowerShell (i.e. EXE/Script Advanced Sensors) to connect to the device, issue the command and evaluate the ouptut. However, the script would need to be modified accordingly. It's just to give you a basic idea of how to implement it :)


PRTGapi | Feature Requests | WMI Issues | SNMP Issues

Kind regards,
Stephan Linke, Tech Support Team

Created on Mar 12, 2019 9:14:38 AM by  Stephan Linke [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.