aboutsummaryrefslogtreecommitdiff
path: root/plugins/sslutils.c
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.de> 2012-06-25 12:32:01 +0200
committerGravatar Sven Nierlein <sven@nierlein.de> 2012-06-25 12:53:47 +0200
commit24242f6ab75adb2de617921e79fe6bece4b75612 (patch)
treea2eedd5f2c21c8c152f855d20867b208bfa38ebc /plugins/sslutils.c
parenteb2615a0bae70dc5ee5020b9d96d1ae7c95d1728 (diff)
downloadmonitoring-plugins-24242f6ab75adb2de617921e79fe6bece4b75612.tar.gz
check_http: added test for warning thresholds
fixed typo in sslutils
Diffstat (limited to 'plugins/sslutils.c')
-rw-r--r--plugins/sslutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c
index fe31b562..a1ce560d 100644
--- a/plugins/sslutils.c
+++ b/plugins/sslutils.c
@@ -203,7 +203,7 @@ int np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit){
stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min);
if (days_left > 0 && days_left <= days_till_exp_warn) {
- printf (_("%s - Certificate '%s' expires in %d day(s) (%s).\n"), (days_left>days_till_exp_crit)?"CRITICAL":"WARNING", cn, days_left, timestamp);
+ printf (_("%s - Certificate '%s' expires in %d day(s) (%s).\n"), (days_left>days_till_exp_crit)?"WARNING":"CRITICAL", cn, days_left, timestamp);
if (days_left > days_till_exp_crit)
return STATE_WARNING;
else
@@ -212,7 +212,7 @@ int np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit){
printf(_("CRITICAL - Certificate '%s' expired on %s.\n"), cn, timestamp);
status=STATE_CRITICAL;
} else if (days_left == 0) {
- printf (_("%s - Certificate '%s' expires today (%s).\n"), (days_left>days_till_exp_crit)?"CRITICAL":"WARNING", cn, timestamp);
+ printf (_("%s - Certificate '%s' expires today (%s).\n"), (days_left>days_till_exp_crit)?"WARNING":"CRITICAL", cn, timestamp);
if (days_left > days_till_exp_crit)
return STATE_WARNING;
else