Page 4 of 4
Re: Monitor QNAP disk space in Nagios
Posted: Thu Oct 16, 2014 11:51 am
by imran_khan
Hello,
Total space on QNAP is 25.26 TB and free is 3.65 TB, even if I am putting warning 5 and critical 10 it is showing same output.
[root@localhost ~]# /usr/local/nagios/libexec/check_snmp -H QNAP_IP -C abc -o .1.3.6.1.4.1.24681.1.2.17.1.4.1 -w 5 -c 10
SNMP OK - "25.26 TB" |
Total space:-
[root@localhost ~]# /usr/local/nagios/libexec/check_snmp -H QNAP_IP -C abc -o .1.3.6.1.4.1.24681.1.2.17.1.4.1
SNMP OK - "25.26 TB" |
Free space:-
[root@localhost ~]# /usr/local/nagios/libexec/check_snmp -H QNAP_IP -C abc -o .1.3.6.1.4.1.24681.1.2.17.1.5.1
SNMP OK - "3.65 TB" |
Thanks,
Imran Khan.
Re: Monitor QNAP disk space in Nagios
Posted: Fri Oct 17, 2014 1:14 pm
by sreinhardt
I believe you are getting no performance data AND no warning or critical value, as your OID is responding with the string of "25.26 TB" and not a value of 25.26 with a label of TB. There is a very large difference, as warning or critical will only check numeric responses, instead you would have to use the string warning and critical matching, which will NOT work as you need. Most likely if the qnap check you were using is polling this same oid, it is taking the string and converting it to a number, which check_snmp is not designed to do. Do you have another oid that might have a numeric value to check instead? Otherwise you would likely have to write a script to gather this oid's data, convert it to a number, then do warning and critical value checks, or just try another plugin.
Re: Monitor QNAP disk space in Nagios
Posted: Fri Oct 17, 2014 2:25 pm
by imran_khan
Hello,
Please help me out to fix the issue of check_qnap_volumes plugin.
Thanks,
Imran Khan.
Re: Monitor QNAP disk space in Nagios
Posted: Mon Oct 20, 2014 9:12 am
by tmcdonald
Can you please provide an answer to sreinhardt's question from his last post?
sreinhardt wrote:Do you have another oid that might have a numeric value to check instead?
Re: Monitor QNAP disk space in Nagios
Posted: Tue Oct 28, 2014 2:56 pm
by imran_khan
Hello,
No we dont have.
Thanks,
Imran Khan.
Re: Monitor QNAP disk space in Nagios
Posted: Wed Oct 29, 2014 1:33 pm
by sreinhardt
If there are no other oid's that provide purely a numeric response, the only option you have is to write a wrapper script or separate plugin to convert the string to a number and do warning\critical metrics from there. This is not something that check_snmp can or will do on its own, as it is very specific about not manipulating data provided to it. If you want, you can certainly inquire with
[email protected] for the amount of time and cost it would be for us to build this. Depending on the detail you are looking for it could be a pretty short project. Alternatively, you can continue trying other plugins on exchange, but I seem to recall the qnap section being fairly minimal.