Question

Plugin Centreon Cisco standard

  • 20 September 2023
  • 2 replies
  • 189 views

Bonjour to all,

I was testing this plugin lately and stumble upon what seems to be, if not a problem with the plugin itself, more a problem with its documentation. which states :

Mode:     Check interfaces.

    --add-global             Check global port statistics (By default if no --add-* option is             set).

    --add-status             Check interface status.

According to the test I just made that’s the --add-status which is the default in case of none specified, not the --add-global

$ /usr/lib/centreon/plugins//centreon_cisco_standard_snmp.pl --plugin=network::cisco::standard::snmp::plugin --mode=interfaces --hostname=10.*** --snmp-version='2c' --snmp-community='***'  --interface='^Ethernet1/24$' --name

OK: Interface 'Ethernet1/24' Status : up (admin: up)

 

$ /usr/lib/centreon/plugins//centreon_cisco_standard_snmp.pl --plugin=network::cisco::standard::snmp::plugin --mode=interfaces --hostname=10.*** --snmp-version='2c' --snmp-community='***'  --interface='^Ethernet1/24$' --name --add-global

OK: Total port : 1, AdminStatus Up : 1, AdminStatus Down : 0, OperStatus Up : 1, OperStatus Down : 0 | 'total_port'=1;;;0;1 'total_admin_up'=1;;;0;1 'total_admin_down'=0;;;0;1 'total_oper_up'=1;;;0;1 'global_oper_down'=0;;;0;1

 

$ /usr/lib/centreon/plugins//centreon_cisco_standard_snmp.pl --plugin=network::cisco::standard::snmp::plugin --mode=interfaces --hostname=10.*** --snmp-version='2c' --snmp-community='***'  --interface='^Ethernet1/24$' --name --add-status

OK: Interface 'Ethernet1/24' Status : up (admin: up)



Installed package for his plugin is centreon-plugin-Network-Cisco-Standard-Snmp-20230810-100132.el8.noarch, Centreon 22.10.11

I can see that a 20230912-083720 is available but can’t manage to test tight now, And I profit of this feedback to tell again that’s highly unacceptable  not having any release note for the Centreon plugins.

Why is the last release present in the GitHub repository is 20230118 ?


2 replies

Userlevel 4
Badge +12

Hi, thank you for raising the question regarding the Cisco plugin: nothing has been changed to it, it has simply been rebuilt and relivered because of a too sensitive trigger in our automation scripts. We’ll try to improve it.

Generally speaking, every change/bugfix in our plugins should be listed in our Release Notes Monitoring Connectors page and a new tag here will bundle the release.

 

Regarding the “--add-global” option, would “Check global port statistics (By default if no --add-* or --interface option is set).” seem more accurate to you?

 

 

Hi,

Thx for your reply. I am still not used to the fact they’re now called “Connector”, hence I did not find the page.


>Regarding the “--add-global” option, would “Check global port statistics (By default if no --add-* or --interface option is set).” seem more accurate to you?

No it doesn’t. If no --add-* or --interface option is set we get the status (in case we have --interface but no --add-*), or the kind specified by the --add-* option (in case we have a --add-* but no --interface). With no --interface nor --add-*, we also get the status. To make it clearer: the only way to get what the --add-global provides is to explicitly specify it. So it’s in no way a “by default” option. However, the actual default option, if no --add-* is set, is --add-status (whenever --interface is set or not).

Reply