Skip to main content

bonjour,

je n’arrive pas à comprendre pourquoi j’ai cette erreur :
UNKNOWN: Can't construct cache
sur cette requette

/usr/lib/centreon/plugins//centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=storage --hostname=xxxxxxxxxxx --snmp-version='3' --snmp-community='xxxxxxxxxxxxxxxxxxxxxx' --snmp-username='xxxxxxxxxxx' --authprotocol='SHA' --authpassphrase='xxxxxxxxxxx' --privprotocol='AES' --privpassphrase='xxxxxxxxxxx' --storage='^/var/app_data$' --name --regexp --display-transform-src='' --display-transform-dst='' --warning-usage='80' --critical-usage='90' --verbose --extend-perfdata='used,used_%,percent()' --filter-perfdata='storage.space|used|free|used_%'.
pourriez-vous m’aider merci

 

--storage='^/var/app_data$'

--name

--regexp

--display-transform-src=''

--display-transform-dst=''

--warning-usage='80'

--critical-usage='90'

--oid-filter='dskPercent.2'

--oid-display='dskPercent.2'

 

UNKNOWN: Unsupported --oid-filter option.

 

snmpwalk -v3 -l authPriv -u centreon -a SHA -A xxxxxxxxxxxxxxxx -x AES -X xxxxxxxxxxxxxxxxxx  xxx.xxx.xxx.xxx  .1.3.6.1.4.1.2021.9.1.9.2

it return :
UCD-SNMP-MIB::dskPercent.2 = INTEGER: 10

 

 

 



I have the same problem on several AIX servers monitored with Plugin pack to monitor AIX operating system via SNMP.

[centreon-engine@vmupolmgmt-01 ~]$ /usr/lib/centreon/plugins//centreon_aix_snmp.pl --plugin=os::aix::snmp::plugin --mode=storage --hostname=******* --snmp-version='2c' --snmp-community='******'  --storage='.*' --name --regexp --display-transform-src='' --display-transform-dst='' --warning-usage='80' --critical-usage='90' --verbose --filter-perfdata='storage.space|used|free'
UNKNOWN: Can't construct cache... 

 

These servers had been correctly reporting disk space for weeks.

Additionally, monitoring the CPU usage of these servers gives the following error:
UNKNOWN: SNMP Table Request: Cant get a single value.

Finally, other services monitored on the same server via SNMP with the same plugin work correctly.
 

 


Hello @vcegarra 
I had the same problem so I added --use-ucd and bam it works

warning-average='80'  --critical-average='90'
UNKNOWN: SNMP Table Request: Cant get a single value.

 --warning-average='80'  --critical-average='90' --use-ucd
OK: CPU(s) average usage is 20.00 % | 'total_cpu_avg'=20.00%;0:80;0:90;0;100

 


Reply