diff options
Diffstat (limited to 'plugins/sslutils.c')
-rw-r--r-- | plugins/sslutils.c | 4 |
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){ | |||
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 |