centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

apps::voip::asterisk::snmp::plugin - mode channel-usage results in 'can't get a single value' error

Open MarOwNFR opened this issue 3 years ago • 10 comments

Hello again everyone!

I take advantage of the great reactivation on this git to ask another question that has nothing to do with my last issue.

I am trying to monitor a Xivo server on Centreon, but when I try the command below, I get the following error :

/usr/lib/centreon/plugins/centreon_asterisk_snmp.pl --plugin=apps::voip::asterisk::snmp::plugin --mode=channel-usage --hostname='**.**.**.**' --snmp-version='2c' --snmp-community='***' --warning-channels-active='' --critical-channels-active='' --warning-calls-active='' --critical-calls-active='' --warning-calls-count='' --critical-calls-count=''

Error : UNKNOWN: SNMP GET Request : Cant get a single value.

I think I have correctly configured SNMP on Xivo and on the OS but this error occurs

Centreon 21.04.0 Plugins : XiVO VoIP Server (v.3.0.10) and Asterisk VoIP SNMP (v.3.1.1)

Thank you in advance for your help once again!

MarOwNFR avatar May 26 '21 17:05 MarOwNFR

Could you provide snmpwalk of following branch .1.3.6.1.4.1.22736 ?

garnier-quentin avatar May 26 '21 17:05 garnier-quentin

It's just below 😃 (Performed from the Xivo server itself)

snmpwalk -v 3 -u *** -l authPriv -a SHA -A "***" -x AES -X "***" 127.0.0.1 .1.3.6.1.4.1.22736

Result : iso.3.6.1.4.1.22736 = No Such Object available on this agent at this OID

Thank you for your help!

MarOwNFR avatar May 26 '21 17:05 MarOwNFR

Something is missing in you snmp configuration. Or asterisk use new snmp oids.

garnier-quentin avatar May 26 '21 17:05 garnier-quentin

Hello !

After analysis of SNMP on my machine I had indeed problems of configuration, the MIB did not load

However, during a test with "snmpwalk", I have this error which occurs and I block completely for hours, in spite of many searches...

command : snmpwalk -v 3 -u *** -l authPriv -a SHA -A "***" -x AES -X "***" 127.0.0.1 .1.3.6.1.4.1.22736

Result: SNMPv2-SMI::enterprises.22736 = No Such Object available on this agent at this OID

However the problematic MIB is well installed and I think loaded

/etc/snmp/snmp.conf

mibdirs +/usr/share/snmp/mibs
mibdirs +/usr/share/snmp/mibs/iana
mibdirs +/usr/share/snmp/mibs/ietf

Thank you in advance for your help!

MarOwNFR avatar May 27 '21 10:05 MarOwNFR

Hi,

Can you confirm that you followed the steps described here: https://techexpert.tips/fr/asterisk-fr/configuration-snmp-dasterisque/

Thanks

Sims24 avatar May 31 '21 20:05 Sims24

Hello,

Thank you for your feedback.

Yes, I have followed these steps but the problems start from the command:

snmpwalk -v2c -c *** 127.0.0.1 1.3.6.1.4.1.22736.1

Result :

SNMPv2-SMI::enterprises.22736.1 = No Such Object available on this agent at this OID

or :

iso.3.6.1.4.1.22736.1 = No Such Object available on this agent at this OID

However in the Xivo console I have this result:

Module             Description                    Use Count  Status      Support Level
res_snmp.so        SNMP [Sub]Agent for Asterisk   0          Running     extended
1 modules loaded

Thank you in advance for your help !

MarOwNFR avatar May 31 '21 21:05 MarOwNFR

Please follow also this chapter: "Didacticiel - Installation de la base MIB Asterisk" I don't know why it's at the end but the Plugin needs these files to work properly.

Sims24 avatar Jun 01 '21 05:06 Sims24

Did you succeed in monitoring your Asterisk OIDs?

Sims24 avatar Jun 22 '21 15:06 Sims24

Hello @Sims24 , My problem is still relevant, unfortunately I have not yet found a solution.

MarOwNFR avatar Jun 22 '21 15:06 MarOwNFR

@MarOwNFR Did you still have the issue ?

garnier-quentin avatar Sep 28 '22 13:09 garnier-quentin