summaryrefslogtreecommitdiffstats
path: root/plugins/sslutils.c
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2012-06-25 10:32:01 (GMT)
committerSven Nierlein <sven@nierlein.de>2012-06-25 10:53:47 (GMT)
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 fe31b56..a1ce560 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){
203 stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min); 203 stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min);
204 204
205 if (days_left > 0 && days_left <= days_till_exp_warn) { 205 if (days_left > 0 && days_left <= days_till_exp_warn) {
206 printf (_("%s - Certificate '%s' expires in %d day(s) (%s).\n"), (days_left>days_till_exp_crit)?"CRITICAL":"WARNING", cn, days_left, timestamp); 206 printf (_("%s - Certificate '%s' expires in %d day(s) (%s).\n"), (days_left>days_till_exp_crit)?"WARNING":"CRITICAL", cn, days_left, timestamp);
207 if (days_left > days_till_exp_crit) 207 if (days_left > days_till_exp_crit)
208 return STATE_WARNING; 208 return STATE_WARNING;
209 else 209 else
@@ -212,7 +212,7 @@ int np_net_ssl_check_cert(int days_till_exp_warn, int days_till_exp_crit){
212 printf(_("CRITICAL - Certificate '%s' expired on %s.\n"), cn, timestamp); 212 printf(_("CRITICAL - Certificate '%s' expired on %s.\n"), cn, timestamp);
213 status=STATE_CRITICAL; 213 status=STATE_CRITICAL;
214 } else if (days_left == 0) { 214 } else if (days_left == 0) {
215 printf (_("%s - Certificate '%s' expires today (%s).\n"), (days_left>days_till_exp_crit)?"CRITICAL":"WARNING", cn, timestamp); 215 printf (_("%s - Certificate '%s' expires today (%s).\n"), (days_left>days_till_exp_crit)?"WARNING":"CRITICAL", cn, timestamp);
216 if (days_left > days_till_exp_crit) 216 if (days_left > days_till_exp_crit)
217 return STATE_WARNING; 217 return STATE_WARNING;
218 else 218 else