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
311 stars 275 forks source link

Unknown option critical/warning #1851

Closed steaksauce- closed 4 years ago

steaksauce- commented 4 years ago

When using centreon plugin, I am trying to set warning/critical values:

[root@icinga centreon-plugins]# '/usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl' '--plugin' 'network::cisco::standard::snmp::plugin' '--mode' 'cpu' '--hostname' 'SOMEHOSTNAME' '--snmp-community' 'SOMECOMMUNITY' '--critical' ',,80'

Unknown option: critical at /usr/lib64/nagios/plugins/centreon-plugins/centreon/plugins/alternative/Getopt.pm line 67.

The same happens when I try with warning.

garnier-quentin commented 4 years ago

Please use --help to see thresholds options

steaksauce- commented 4 years ago

Thanks, in my case it was caused by the plugin having multiple metrics reporting back.

Mode:
    Check cpu usage (CISCO-PROCESS-MIB and CISCO-SYSTEM-EXT-MIB).

    --check-order
            Check cpu in standard cisco mib. If you have some issue (wrong
            cpu information in a specific mib), you can change the order
            (Default: 'process,old_sys,system_ext').

    --warning-* --critical-*
            Thresholds. Can be: 'core-5s', 'core-1m', 'core-5m',
            'average-5s', 'average-1m', 'average-5m'.