SNMP free disk space value

Q'center app, Helpdesk app
Post Reply
MatthiasRoth
First post
Posts: 1
Joined: Thu Apr 08, 2021 3:17 pm

SNMP free disk space value

Post by MatthiasRoth »

Hey,

we have a monitoring system where we catch the SNMP free disk space value. It seems like QNAP made some changes to these values because our monitoring doesn't work anymore. The problem is that the values now contain the memory sizes such as "MB", "GB", etc...

Before it was always in GB (as far as I remember and without the actual word "GB") and we filtered on the size like this : if <SNMP disk space value> is under 0,1 then sent an alert. So if the free disk space is under 100 megabytes we would get a notification through our monitoring system. But this doesn't work anymore since sometimes it is in GB, MB and TB and we can't adjust it properly.

Is there any chance we can get this working again? The only option I know would be RegEx (I think) since it is supported in our monitoring system but we couldn't get it working.

Any Ideas??

Kind regards,

Matthias
User avatar
McBride
Know my way around
Posts: 107
Joined: Fri Jun 07, 2013 3:00 pm
Location: Vienna

SNMP free disk space value

Post by McBride »

Regex seems to be the thing. Stack exchange says

https://salesforce.stackexchange.com/qu ... the-period

var z = x.replace(/[^0-9.]/g, '')

If it doesn’t matter to you if you have all in one place, QNAP has a threshold system on volumes, but I never tried it.

Austria est imperare orbi universo
Post Reply

Return to “NAS Management”