[Nagiosplug-checkins] CVS: nagiosplug/plugins check_nt.c,1.20,1.21
Karl DeBisschop
kdebisschop at users.sourceforge.net
Tue Nov 11 21:54:08 CET 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv30831
Modified Files:
check_nt.c
Log Message:
clean up compiler warnings
Index: check_nt.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nt.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** check_nt.c 31 Oct 2003 04:22:47 -0000 1.20
--- check_nt.c 12 Nov 2003 05:53:06 -0000 1.21
***************
*** 119,123 ****
return_code = STATE_WARNING;
} else {
! asprintf (&output_message, recv_buffer);
return_code = STATE_OK;
}
--- 119,123 ----
return_code = STATE_WARNING;
} else {
! asprintf (&output_message, "%s", recv_buffer);
return_code = STATE_OK;
}
***************
*** 239,248 ****
(mem_commitLimit - mem_commitByte) / 1048576, (mem_commitLimit - mem_commitByte) / mem_commitLimit * 100);
if(check_critical_value==TRUE && percent_used_space >= critical_value)
return_code=STATE_CRITICAL;
else if (check_warning_value==TRUE && percent_used_space >= warning_value)
return_code=STATE_WARNING;
- else
- return_code=STATE_OK;
break;
--- 239,247 ----
(mem_commitLimit - mem_commitByte) / 1048576, (mem_commitLimit - mem_commitByte) / mem_commitLimit * 100);
+ return_code=STATE_OK;
if(check_critical_value==TRUE && percent_used_space >= critical_value)
return_code=STATE_CRITICAL;
else if (check_warning_value==TRUE && percent_used_space >= warning_value)
return_code=STATE_WARNING;
break;
***************
*** 274,284 ****
}
else { /* inverse thresholds */
if(check_critical_value==TRUE && counter_value <= critical_value)
return_code=STATE_CRITICAL;
else if (check_warning_value==TRUE && counter_value <= warning_value)
return_code=STATE_WARNING;
! else
! return_code=STATE_OK;
! }
}
break;
--- 273,282 ----
}
else { /* inverse thresholds */
+ return_code=STATE_OK;
if(check_critical_value==TRUE && counter_value <= critical_value)
return_code=STATE_CRITICAL;
else if (check_warning_value==TRUE && counter_value <= warning_value)
return_code=STATE_WARNING;
! }
}
break;
More information about the Commits
mailing list