Pandora FMS Community

extract string data

binet · 24 ene 2018, 13:29 · 2 mensajes · 102 visitas

  1. Inicio del debate

    Hello everyone, First, excuse my english. !! :( I have recently started testing with Pandora Fms version open. After several tests to try to get free disk space in a Synology I got via snmp and with a .apk for Synology of the Panorama9 application that the module receives the following information: "" OK - RAID, md2 raid5 [UUUUUU] 6/6 (AConfusedda5, sdf5, sde5, sdd5, sdc5, sdb5 F: none S: none), size: 19357438640, free: 4626040036, name: / volume1 "" What would be the process to extract only the numeric data of the string "4626040036" that indicate the free space and display them in TB? Thank you.

  2. Hi binet, You would have to filter the output of the command and then do the byte transformation to Tb. Best regards, vic.

Entra en tu cuenta para publicar.