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

[apps::vmware::connector::plugin] --filter help #292

Closed
Furiouss38 opened this issue Jan 20, 2016 · 1 comment
Closed

[apps::vmware::connector::plugin] --filter help #292

Furiouss38 opened this issue Jan 20, 2016 · 1 comment
Labels

Comments

@Furiouss38
Copy link

Hi,

I'm looking for help to use the filter with the vmware connector plugin.
I want to be able to check tools status on all my vms that are monitored by my Centreon, but the thing is sometimes centreon hostname for a vm is not exactly the same it is on Vmware (Upper/lower case is the most common issue)

So i was looking to make the check not case dependent.

I'll use '$hostname$' variable from centreon, but if my vm is, for exemple Cyan1 in vmware and cyan1 in centreon, it won't work :

/centreon_plugins.pl --plugin=apps::vmware::connector::plugin --custommode=connector --connector-hostname=127.0.0.1 --container=default --verbose --mode=tools-vm ---filter --vm-hostname='Cyan1'
WARNING: 1 VM with VMTools not up-to-date |
vmtools not up-to-date:
Cyan1

./centreon_plugins.pl --plugin=apps::vmware::connector::plugin --custommode=connector --connector-hostname=127.0.0.1 --container=default --verbose --mode=tools-vm ---filter --vm-hostname='cyan1'
UNKNOWN: Cannot find 'VirtualMachine' object |

what should I put in addition to $hostname$ in the vm-hostname regex to be able to check that ?

I tried --vm-hostname='/$hostname$/i' but it didn't work and my regex knowledge stop there :(

@garnier-quentin
Copy link
Contributor

I don't use case insensitive check in centreon-vmware. I could add a global option in the connector for that. Please open it in centreon-vmware github.

Sims24 pushed a commit that referenced this issue Jul 21, 2021
* fix(administration): fix apache ssl cipher suite example

* fix(administration): fix location match regexp for api
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