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
308 stars 270 forks source link

[network::sonus::sbc::snmp::plugin] --mode=cpu: Unknown option #4792

Open joschi99 opened 6 months ago

joschi99 commented 6 months ago

latest plugins

none of this option will work:

    --warning-average
            Warning threshold average CPU utilization.

    --critical-average
            Critical threshold average CPU utilization.

    --warning-core
            Warning thresholds for each CPU core

    --critical-core
            Critical thresholds for each CPU core

Looking on the sourcecode seem's that the plugin is referencing to cpudetailed:

package network::sonus::sbc::snmp::mode::cpu;

use base qw(snmp_standard::mode::cpudetailed);

use strict;
use warnings;
omercier commented 6 months ago

Hi @joschi99, Indeed, according to the code, it should work like snmp_standard::mode::cpudetailed but the PODs have now been updated accordingly.

Can you confirm that it works fine with this?

    --warning-*
            Warning threshold in percent. Can be: 'user', 'nice', 'system',
            'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal',
            'guest', 'guestnice'.

    --critical-*
            Critical threshold in percent. Can be: 'user', 'nice', 'system',
            'idle', 'wait', 'kernel', 'interrupt', 'softirq', 'steal',
            'guest', 'guestnice'.
joschi99 commented 6 months ago

I can confirm that mode=cpu-detailed is working as aspected and there is no problem. But this plugin has also mode=cpu which is wrong.

lucie-dubrunfaut commented 6 days ago

Hello :)

I edited my comment, it's appear it's about a failed copy/paste. We noticed it and me will fix it quickly.