Solved

Using --pass-manager options with single command

  • 22 April 2022
  • 4 replies
  • 395 views

Userlevel 4
Badge +14

Hello,

I try to use the --pass-manager options with a provider (hashicorp vault) in a single command not the centreon_plugins.pl community command and it seems not working.

I updated my package :

yum update centreon-plugin-Applications-Ansible-Tower.noarch

But the command say, it not possible to call the module of password manager :

-bash-4.2$ /usr/lib/centreon/plugins/centreon_ansible_tower.pl --plugin=apps::automation::ansible::tower::plugin --custommode=api --mode=job-templates --hostname=my-tower-host --port=443 --proto=https --pass-manager=hashicorpvault --vault-address=my-kms-host --vault-port=8200 --vault-protocol=https --auth-method=token --vault-token='my-token' --secret-path='my-secret-path' --map-option='username=%{key_mysecrets/servicecredentials}' --map-option='password=%{value_mysecrets/servicecredentials}' --http-backend=curl --launch-job-template-id='my-job-id' --launch-extra-vars='my-extra-vars' --launch-limit='' --warning-job-status='' --critical-job-status='' --unknown-job-status='' --warning-failed='2' --critical-failed='5' --output-ignore-perfdata

UNKNOWN: Cannot load module 'centreon::plugins::passwordmgr::hashicorpvault'
Can't locate centreon/plugins/passwordmgr/hashicorpvault.pm in @INC (@INC contains: /usr/lib/centreon/plugins FatPacked::13794184=HASH(0xd27b88) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib/centreon/plugins/centreon_ansible_tower.pl line 3516.

-bash-4.2$ /usr/lib/centreon/plugins/centreon_ansible_tower.pl --plugin=apps::automation::ansible::tower::plugin --custommode=api --mode=job-templates --hostname=it-deploy.z2.r02.local --port=443 --proto=https --pass-manager=keepass
UNKNOWN: Cannot load module 'centreon::plugins::passwordmgr::keepass'
Can't locate centreon/plugins/passwordmgr/keepass.pm in @INC (@INC contains: /usr/lib/centreon/plugins FatPacked::31636360=HASH(0x1e2bb88) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib/centreon/plugins/centreon_ansible_tower.pl line 3516.

-bash-4.2$ /usr/lib/centreon/plugins/centreon_ansible_tower.pl --plugin=apps::automation::ansible::tower::plugin --custommode=api --mode=job-templates --hostname=it-deploy.z2.r02.local --port=443 --proto=https --pass-manager=teampass
UNKNOWN: Cannot load module 'centreon::plugins::passwordmgr::teampass'
Can't locate centreon/plugins/passwordmgr/teampass.pm in @INC (@INC contains: /usr/lib/centreon/plugins FatPacked::11819912=HASH(0xb45b88) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib/centreon/plugins/centreon_ansible_tower.pl line 3516.

I’ve looking for if a rpm was not installed on my centreon poller, but all seems installed.

I see a difference between the release of the 19.10, package 

centreon-plugins-base-1.18-2.el7.centos.noarch.rpm provided in 19.04 is not provided since this release, but it’s probably normal.

Could you give me a help about this ?

Is a feature who involve is to be used only with the centreon-plugins community ?

Regards,

icon

Best answer by Kriko 27 April 2022, 10:30

View original

4 replies

Userlevel 5
Badge +16

Hello @gespada 

Sorry about the time for the response.

Actually the passmanager is not fatpackaged, I will create a internal ticket to see if we can include them.

For the moment I guess that you can use the centreon_plugins.pl from github.

Userlevel 4
Badge +14

Hello @Kriko ,

No problem

I will change my command later when this feature will be fatpacked.

Regards

Userlevel 6
Badge +19

Hey, 


Stay tuned! And read the Plugin Pack monthly release blog post tomorrow ;)

Userlevel 6
Badge +19

It’s out!

Reply