Hi,
I monitor the expiration of keys and secrets for my applications in Azure.
I have encoutered an issue with the return of warning/critical thresholds for keys and passwords.
For instance :
/usr/lib/centreon/plugins//centreon_plugins.pl --plugin=cloud::microsoft::office365::management::plugin --mode=app-credentials --tenant=$MY_TENANT_ID --client-id=$CENTREON_API_CLIENT_ID --client-secret=$CENTREON_API_CLIENT_SECRET --filter-app-name='3CX Serveur' --unit='d' --warning-key-expires='''
OK: application '3CX Serveur' key credential 'XXX' status: valid, expires in 2y 7M 3w 1d 18h 53m 10s | '3CX Serveur~XXX#application.key.expires.days'=966d;;;0;
=> the key expires in 966 days.
Now I want to receive an alert when key expires in 900 days :
/usr/lib/centreon/plugins//centreon_plugins.pl --plugin=cloud::microsoft::office365::management::plugin --mode=app-credentials --tenant=$MY_TENANT_ID --client-id=$CENTREON_API_CLIENT_ID --client-secret=$CENTREON_API_CLIENT_SECRET --filter-app-name='3CX Serveur' --unit='d' --warning-key-expires=''900”
WARNING: application '3CX Serveur' key credential 'XXX' expires in 2y 7M 3w 1d 18h 48m 39s | '3CX Serveur~XXX#application.key.expires.days'=966d;0:900;;0;
I suspect there might be an issue in the source code, as the return is supposed to be OK.
Any help will be appreciated, ty !