summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--THANKS.in1
-rw-r--r--plugins/check_nt.c7
2 files changed, 7 insertions, 1 deletions
diff --git a/THANKS.in b/THANKS.in
index 6666de4f..ac2b1c24 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -265,3 +265,4 @@ Dann Frazier
265Stephane Chazelas 265Stephane Chazelas
266Craig Leres 266Craig Leres
267Brian Landers 267Brian Landers
268Ryan Kelly
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 32d4ff6c..60806bb3 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -203,7 +203,12 @@ int main(int argc, char **argv){
203 uphours = (uptime % 86400) / 3600; 203 uphours = (uptime % 86400) / 3600;
204 upminutes = ((uptime % 86400) % 3600) / 60; 204 upminutes = ((uptime % 86400) % 3600) / 60;
205 asprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)"),updays,uphours, upminutes); 205 asprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)"),updays,uphours, upminutes);
206 return_code=STATE_OK; 206 if (check_critical_value==TRUE && uptime <= critical_value)
207 return_code=STATE_CRITICAL;
208 else if (check_warning_value==TRUE && uptime <= warning_value)
209 return_code=STATE_WARNING;
210 else
211 return_code=STATE_OK;
207 break; 212 break;
208 213
209 case CHECK_USEDDISKSPACE: 214 case CHECK_USEDDISKSPACE: