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

[network::citrix::netscaler::mpx8000::plugin] mode=certificates-expire return wrong output #588

Closed
ATEP0mars0 opened this issue Jan 30, 2017 · 4 comments
Labels

Comments

@ATEP0mars0
Copy link

Hi,

Mode certificates-expire return the wrong (reverse) output code ; it return 0, OK when remains days are inferior to critical threshold. And 2, Critical when remains days are superior to critical threshold.

Thank You !

@garnier-quentin
Copy link
Contributor

What is your command line ?

@ATEP0mars0
Copy link
Author

ATEP0mars0 commented Jan 30, 2017

$ perl centreon_plugins.pl --plugin=network::citrix::netscaler::mpx8000::plugin --mode=certificates-expire --hostname=XXXXXX --snmp-community=XXXXXX --snmp-version=v2c --critical=100

CRITICAL: Certificate 'applis.xxxx.cloud': 170 days remaining before expiration

$ perl centreon_plugins.pl --plugin=network::citrix::netscaler::mpx8000::plugin --mode=certificates-expire --hostname=XXXXXX --snmp-community=XXXXXX --snmp-version=v2c --critical=171

OK: All certificates are ok.

@garnier-quentin
Copy link
Contributor

If you want threshold critical if value <. Please use like that: --critical=100:

Tpo76 pushed a commit to Tpo76/centreon-plugins that referenced this issue Jul 8, 2021
Sims24 added a commit that referenced this issue Jul 21, 2021
Co-authored-by: Simon Bomm <sbomm@centreon.com>
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