Skip to main content

Hello,

I am having a problem monitoring multiple interfaces with the centreon_cisco_standard_snmp.pl plugin: If I select only one interface, no problem:

[centreon-engine@server~]$ /usr/lib/centreon/plugins/centreon_cisco_standard_snmp.pl --plugin=network::cisco::standard::snmp::plugin --mode=interfaces --hostname='myciscodevice' --snmp-version='2c' --snmp-community='public' --interface="Te1/1/1" --name --add-status --add-traffic --add-errors --units-traffic='percent_delta' --units-errors='percent_delta'  --units-cast='percent_delta' --oid-filter='ifname' --oid-display='ifname'
OK: Interface 'Te1/1/1' Status : up (admin: up), Traffic In : 355.33Kb/s (0.00%), Traffic Out : 152.05Kb/s (0.00%), Packets In Discard : 0.00% (0 on 260987), Packets In Error : 0.00% (0 on 260987), Packets Out Discard : 0.00% (0 on 183107), Packets Out Error : 0.00% (0 on 183107), Packets In Crc : 0.00% (0 on 260987), Packets In Fcserror : 0.00% (0 on 260987) | 'traffic_in'=355332.22b/s;;;0;10000000000 'traffic_out'=152045.79b/s;;;0;10000000000 'packets_discard_in'=0.00%;;;0;100 'packets_error_in'=0.00%;;;0;100 'packets_discard_out'=0.00%;;;0;100 'packets_error_out'=0.00%;;;0;100 'packets_crc_in'=0.00%;;;0;100 'packets_fcserror_in'=0.00%;;;0;100

 

But if I add one or more, separating them with a comma as stated in the documentation, I receive a cache error:

>centreon-engine@server~]$ /usr/lib/centreon/plugins/centreon_cisco_standard_snmp.pl --plugin=network::cisco::standard::snmp::plugin --mode=interfaces --hostname='myciscodevice' --snmp-version='2c' --snmp-community='public' --interface='Te1/1/1,Te2/1/2' --name --add-status --add-traffic --add-errors --units-traffic='percent_delta' --units-errors='percent_delta'  --units-cast='percent_delta' --oid-filter='ifname' --oid-display='ifname'
UNKNOWN: No entry found (maybe you should reload cache file)

 

Of course, I have tried deleting the related cache file but the problem doesn't seem to come from there.

Does anyone have a solution to this problem?

Hello @rmula 

Have you tried:

Te1\/1\/1,Te2\/1\/2/

or

/Te1\/1\/1|Te2\/1\/2/

Hello @ponchoh 

Thanks but I've already tested these solutions just to be sure, but the problem does not come from escaping characters because it works if I put only one interface without escaping the '/'.


🤷‍♂️ (Te1/1/1|Te2/1/2)


This solution works, thank you @ponchoh !


Reply