diff options
-rwxr-xr-x | plugins-scripts/check_rpc.pl | 6 | ||||
-rw-r--r-- | plugins/check_disk.c | 22 |
2 files changed, 14 insertions, 14 deletions
diff --git a/plugins-scripts/check_rpc.pl b/plugins-scripts/check_rpc.pl index 8a56b9f..0968982 100755 --- a/plugins-scripts/check_rpc.pl +++ b/plugins-scripts/check_rpc.pl | |||
@@ -311,18 +311,18 @@ sub get_rpcinfo { | |||
311 | printf "$line " if $verbose; | 311 | printf "$line " if $verbose; |
312 | chomp $line; | 312 | chomp $line; |
313 | 313 | ||
314 | if ( $line =~ /program $prognum version ([0-9]*) ready and waiting/ ) { | 314 | if ( $line =~ /[Pp]rogram $prognum version ([0-9]*) ready and waiting/ ) { |
315 | $response .= " version $1"; | 315 | $response .= " version $1"; |
316 | $state = 'OK' unless $state ne 'UNKNOWN'; | 316 | $state = 'OK' unless $state ne 'UNKNOWN'; |
317 | print "1:$response \n" if $verbose; | 317 | print "1:$response \n" if $verbose; |
318 | } | 318 | } |
319 | 319 | ||
320 | if ( $line =~ /program $prognum version ([0-9]*) is not available/ ) { | 320 | if ( $line =~ /[Pp]rogram $prognum version ([0-9]*) is not available/ ) { |
321 | $response2 .= " version $1"; | 321 | $response2 .= " version $1"; |
322 | $state = 'CRITICAL'; | 322 | $state = 'CRITICAL'; |
323 | print "2:$response2 \n" if $verbose; | 323 | print "2:$response2 \n" if $verbose; |
324 | } | 324 | } |
325 | if ( $line =~ /program $prognum is not available/ ) { | 325 | if ( $line =~ /[Pp]rogram $prognum is not available/ ) { |
326 | $response3 = ""; | 326 | $response3 = ""; |
327 | $response3 = "tcp" if $opt_t; | 327 | $response3 = "tcp" if $opt_t; |
328 | $response3 = "udp" if $opt_u; | 328 | $response3 = "udp" if $opt_u; |
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index d1d1b92..037a6f7 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -156,20 +156,20 @@ static struct name_list *seen = NULL; | |||
156 | int main(int argc, char **argv) { | 156 | int main(int argc, char **argv) { |
157 | int result = STATE_UNKNOWN; | 157 | int result = STATE_UNKNOWN; |
158 | int disk_result = STATE_UNKNOWN; | 158 | int disk_result = STATE_UNKNOWN; |
159 | char *output; | 159 | char *output = NULL; |
160 | char *ignored; | 160 | char *ignored = NULL; |
161 | char *details; | 161 | char *details = NULL; |
162 | char *perf; | 162 | char *perf = NULL; |
163 | char *perf_ilabel; | 163 | char *perf_ilabel = NULL; |
164 | char *preamble = " - free space:"; | 164 | char *preamble = " - free space:"; |
165 | char *ignored_preamble = " - ignored paths:"; | 165 | char *ignored_preamble = " - ignored paths:"; |
166 | char *flag_header; | 166 | char *flag_header = NULL; |
167 | int temp_result; | 167 | int temp_result = STATE_UNKNOWN; |
168 | 168 | ||
169 | struct mount_entry *me; | 169 | struct mount_entry *me = NULL; |
170 | struct fs_usage fsp; | 170 | struct fs_usage fsp = {0}; |
171 | struct parameter_list *temp_list; | 171 | struct parameter_list *temp_list = NULL; |
172 | struct parameter_list *path; | 172 | struct parameter_list *path = NULL; |
173 | 173 | ||
174 | #ifdef __CYGWIN__ | 174 | #ifdef __CYGWIN__ |
175 | char mountdir[32]; | 175 | char mountdir[32]; |