Skip to main content

Hello and good morning!
I´d like to use the exagrid plugin to display the landing and retention usage.. that´s working fine - but I need to define the treshholds now.
How can I do that? It´s not working with

/usr/lib/centreon/plugins//centreon_exagrid_snmp.pl --plugin=storage::exagrid::snmp::plugin --mode=server-usage --hostname=172.16.253.1 --snmp-version='2c' --snmp-community='public'  --warning-status='%{status} =~ /warning/i' --critical-status='%{status} =~ /error/i' --warning-retention-usage='85' --critical-retention-usage='95' --warning-landing-usage='85' --critical-landing-usage='95'

or with %-Values...

hello

can you provide more information on “it’s not working”?

what is the output of this command, is it returning ok but does not trigger on the threshold, or is it an error message?

 

this plugin should be using these parameters  

--warning-* --critical-*
            Thresholds. Can be: 'retention-usage' (%), 'landing-usage' (%).

so what you put in your command line is what should be used. 

 

more information please!


Hey thanks for your reply. The outout is the following:

 

CRITICAL: Landing Usage Total: 76.40 TB Used: -51.56 TB (-67.49%) Free: 127.96 TB (167.49%)


hoo

you have negative values!!

 

you should go to the github for centreon plugin, and open an issue there, you should probably make some snmpwalk dump from the exagrid, but the “platform” is working ok, it’s the plugin that need fixing by a developper

you will need to provide some information (model, firmware, snmp dump, the output of the command when you add “--debug” etc...) there is a guideline to follow when you open an issue: Issues · centreon/centreon-plugins · GitHub

 

but I looked at the plugin it code, it’s one of the most basic you can have and it looks it has been developped a long time ago (2016), it looks at a few oid, compute the size then substract to get used/free values.

my guess i the values returned by your version of exagrid doesn’t match what was used in previous Exagrid OS/model 

 

could you do an snmpwalk with this OID and command : 

snmpwalk -v 2c -c public 172.16.253.1 .1.3.6.1.4.1.14941.4.1

(taken from here, it’s the base table for the value used by the plugin : https://github.com/centreon/centreon-plugins/blob/baaaa811d7e27165d6da7cc7e37d6ee8ab93f5bd/src/storage/exagrid/snmp/mode/serverusage.pm#L150C62-L150C84 )

 

if you check a few line below this one, you can see a simply *10^9 multiplication, which is based on the exagrid oid ref, so it should be used = “total size” - “free space”

 

you get negative values meaning your snmp is wrong, either exagrid changed something (but I cannot find newer doc on the snmp mib) or your exagrid software has an issue

 

try making the computation manually with the result from the snmpwalk, if you have a “free” superior to “total”, no need to open a ticket on the the github, but you may need to contact your exagrid support 

 

the oid .1 = configured landing space = “total”

the oid .3 = available landing space  = “free”

that’s what you need to compare


Reply