centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

Let's add a --list-counters option ?

Open UrBnW opened this issue 5 years ago • 5 comments

Hi,

What about a --list-counters option in counters template ? I always go through code itself to have the proper counters list, which is not really convenient :)

Would also prevent from maintaining the list in the help of the various modes.

Thank you for your feedback 👍

UrBnW avatar Sep 24 '20 10:09 UrBnW

You want to display it with --list-counters option ? and no more in help ? Maybe...

garnier-quentin avatar Sep 24 '20 10:09 garnier-quentin

Yes, simply advising in the help to run --list-counters to get the full list.

UrBnW avatar Sep 24 '20 10:09 UrBnW

Especially given the fact that these counters can be used at several places, --critical-* / --warning-* / --unknown-*, but also in --filter-counters...

UrBnW avatar Sep 24 '20 10:09 UrBnW

We should add a description also in the code (can be useful)

garnier-quentin avatar Sep 24 '20 14:09 garnier-quentin

Yes, good idea. --list-counters could also perhaps display the counter type (diff/count, current etc...).

UrBnW avatar Sep 24 '20 14:09 UrBnW

Hi, Thanks for your interest in Centreon. Requests for new features and enhancements must be suggested here. Troubleshooting and questions must now be asked here (cf our new issue template).

Thank you for your understanding.

fmattesct avatar Dec 28 '23 15:12 fmattesct