Solved

Monitoring certificat with Centreon : error while using App-Protocol-X509-Expiration-custom

  • 30 March 2022
  • 2 replies
  • 837 views

Badge +2

I try to monitor certificates expiration with Centreon.

I use the model App-Protocol-X509-Expiration-custom which give the command : 

/usr/lib/centreon/plugins//centreon_protocol_x509.pl --plugin=apps::protocols::x509::plugin --mode=validity --hostname=<ip> --port=443 --validity-mode=expiration --warning-date=60: --critical-date=30: 

but mode=validity is not valid a valid one

--list-mode give only  certificate

 

icon

Best answer by Thibault 31 March 2022, 10:33

View original

2 replies

Userlevel 3
Badge +5

Hello @vguegan ,

the “validity” mode is indeed deprecated and replaced by the “certificate” mode in the latest versions of the Plugin.

You may need to update the Pack so the templates will be up-to-date and use the new “App-Protocol-X509-Certificate” Service template.

Hope it helps!

Cheers

Badge +2

Ok. Thank you.

My plugin was up to date but an old service inherited from the older one was present.

By removing the plugin, i had to change the model of my host temporarily and now i use the new model after reinstalling plugin.

So the mode of my service is the good one : certificate

Reply