I want to check the disk space for our Synology Diskstation via ssh, but prtg can not interpret the result, because the df command has no option 'T'

The output of the sensor is:

BusyBox v1.16.1 (2011-06-07 14:06:37 CST) built-in shell (ash) Enter 'help' for a list of built-in commands.

DiskStation3> echo PAESSHSTART;df -TP;ec

ho PAESSHEND PAESSHSTART df: invalid option -- T BusyBox v1.16.1 (2011-06-07 14:06:37 CST) multi-call binary.

Usage: df [-Pkmh] [FILESYSTEM]...

Print filesystem usage statistics

Options: -P POSIX output format -k 1024-byte blocks (default) -m 1M-byte blocks -h Human readable (e.g. 1K 243M 2G)

PAESSHEND DiskStation3>

Is there any workaround?

Regards, Peter Schneider


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Dear Peter,

I'm afraid then you can only try using a Custom Script/Exe Sensor, or maybe the SNMP Linux-Sensors with the SNMP Service on the Diskstation.

best regards.


Nov, 2011 - Permalink

does this box have some linuxtools like sed, awk installed, or can you install them on it. If yes, you might try this one:

https://kb.paessler.com/en/topic/27553-is-there-a-way-to-write-custom-ssh-sensors

ciao


Nov, 2011 - Permalink