IBM Xseries 232, dual PIII running rh 7.1, glibc-2.2.2-10
, kernel 2.4.3-12
[root@carme plugins]# ./check_snmp --version
check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5
Inserted print statements to find out where the program
hangs - at the line 'before the fgets' (around line
170-180 in check_snmp.c)
printf (" before the fgets \n");
while (fgets(input_buffer, MAX_INPUT_BUFFER -
1, child_process))
output = strscat(output, input_buffer);
From config.log
configure:3920: checking for type of socket size
configure:3932: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:3928: `buffer' undeclared (first use in this
function)
configure:3928: (Each undeclared identifier is reported
only once
configure:3928: for each function it appears in.)
configure:3928: warning: passing arg 3 of `send' makes
integer from pointer without a cast
configure:3928: warning: passing arg 4 of `send' makes
integer from pointer without a cast
configure: failed program was:
#line 3922 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
int main() {
int a = send(1, (const void *) buffer, (size_t *) 0,
(int *) 0);
; return 0; }
configure:3964: checking for ps
Normal snmpget works ok
Logged In: NO
Fixed?
SNMP mib was generating more messages than the input buffer
can handle.
imho either stderr should be captured or an errormessage
should be displayed indicating the input buffer is too small
for the messages.
Affected mib was removed and problem fixed.