summaryrefslogtreecommitdiffstats
path: root/plugins/check_nwstat.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-14 02:26:34 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-14 02:26:34 (GMT)
commit2a68978c564e53cddc90882ee7776a43839dfcff (patch)
tree7c8432f893e4c43f2d20d022ba8ccdc05752e4e6 /plugins/check_nwstat.c
parent9e009c4b1128352c6039d25b39213fd480e9b055 (diff)
downloadmonitoring-plugins-2a68978c564e53cddc90882ee7776a43839dfcff.tar.gz
remove call_getopt and ssprintf
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@191 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nwstat.c')
-rw-r--r--plugins/check_nwstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index f8fca73..53deef8 100644
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
@@ -296,7 +296,7 @@ int main(int argc, char **argv){
296 result=STATE_CRITICAL; 296 result=STATE_CRITICAL;
297 else if(check_warning_value==TRUE && lru_time <= warning_value) 297 else if(check_warning_value==TRUE && lru_time <= warning_value)
298 result=STATE_WARNING; 298 result=STATE_WARNING;
299 sprintf(&output_message,"LRU sitting time = %lu minutes",lru_time); 299 asprintf(&output_message,"LRU sitting time = %lu minutes",lru_time);
300 300
301 301
302 /* check KB free space on volume */ 302 /* check KB free space on volume */
@@ -590,7 +590,7 @@ int main(int argc, char **argv){
590 590
591 max_service_processes=atoi(recv_buffer); 591 max_service_processes=atoi(recv_buffer);
592 592
593 sprintf(&send_buffer,"S21\r\n"); 593 asprintf(&send_buffer,"S21\r\n");
594 result=process_tcp_request(server_address,server_port,send_buffer,recv_buffer,sizeof(recv_buffer)); 594 result=process_tcp_request(server_address,server_port,send_buffer,recv_buffer,sizeof(recv_buffer));
595 if(result!=STATE_OK) 595 if(result!=STATE_OK)
596 return result; 596 return result;