Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD Ignore disable status for poller on script centreon_centreon_sql_metrics.pl #5446

Open
romsworld opened this issue Feb 11, 2025 · 6 comments
Labels

Comments

@romsworld
Copy link

Hi,

Is it possible to ignore disable poller. I have 2 pollers disabled, but, script ignore if enable or disable status.

/usr/lib/centreon/plugins//centreon_centreon_sql_metrics.pl --plugin=database::mysql::plugin

Thanks,

@lucie-dubrunfaut
Copy link
Contributor

Hello :)

Could you give us more context on the commands and mode(s) you are trying to execute?

@romsworld
Copy link
Author

Of course, error with copy paste !
See full command :

/usr/lib/centreon/plugins//centreon_centreon_sql_metrics.pl --plugin=database::mysql::plugin --dyn-mode=apps::centreon::sql::mode::pollerdelay --host='192.168.' --username='' --password='' --filter-name='.*' --warning-delay='180' --critical-delay='300'

@lucie-dubrunfaut
Copy link
Contributor

Hello :)

Indeed, this mode does not check the state of the poller, so it cannot filter on disable pollers. You can try to use the --filter-name option to indirectly exclude this pollers. And maybe we should add an option --exclude-name to exclude identified poller for user reasons. Do you think this could meet your need?

@lucie-dubrunfaut
Copy link
Contributor

Could you try this PR #5450 to check if an exclude option is the right thing for you?

@romsworld
Copy link
Author

Adding an exclusion option means maintaining and modifying it.
There's no point in monitoring a deactivated poller :) In my opinion, it's much simpler to exclude all deactivated pollers.
As a rule, it's rare to have to disable them, but it can happen and should be managed at script level.
Exclusion can be useful if you know that a poller often has latency. But this is not the case here.

@lucie-dubrunfaut
Copy link
Contributor

I understand, but in this case it requires a bigger improvement than adding an exclude option, because as it stands the mode doesn't retrieve the state of the pollers at all. So if you'd like to support this idea, I invite you to propose a TheWatch idea so that it can be voted on :)
Also I'll close this issue as it's more an enhancement request and not a bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants