centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
312 stars 274 forks source link

Graphic "Traffic Switch" Up and Down #2637

Closed Johann7214 closed 3 years ago

Johann7214 commented 3 years ago

Hello everyone

I have update CENTREON from CENTREON WEB 2.8.32 to CENTREON 20.10 (by the 18.10).

Since the update, i have a problem with the service TRAFFIC who passed from OK to Unknown.

Example: i want to see the port 23 traffic from my Swich HP Procurve 2810. If i write this command in my terminal on the Centreon Server.

./centreon_plugins.pl --plugin=network::hp::procurve::snmp::plugin --snmp-community= --snmp-version=1 --mode=interfaces --interface=23 --hostname=###.###.###.### --add-traffic community name

.###.###.### ip switch

This command works!

When i return on centreon, i configure the command and the service as below but this returns me an UNKNOWN service. image

image

image

I'am begginer in Centreon and i try to improve my skills...

Can you helped me please?

Best Regards

garnier-quentin commented 3 years ago

The plugin-pack uses the option --name. So you need to use the interface name with option --interface. Eg:

--interface=eth0 --name
Johann7214 commented 3 years ago

The plugin-pack uses the option --name. So you need to use the interface name with option --interface. Eg:

--interface=eth0 --name

Thanks you for reply but i don't understand because i have write this option in my COMMAND and it not works.

garnier-quentin commented 3 years ago

Use service macros INTERFACE to set the interface name.