in reply to Perl NET::SNMP

This is an odd problem. The specific code which seems to be failing (returning undef) is this routine in Net::SNMP::Transport::UDP:
sub _socket_create { IO::Socket->new->socket(PF_INET, SOCK_DGRAM, (getprotobyname('udp')) +[2]); }
and _socket_create is called by this fragment in Net::SNMP::Transport:
if (!defined($this->{_socket} = $this->_socket_create)) { $this->_perror('Failed to open %s socket', $this->type); return wantarray ? (undef, $this->{_error}) : undef }
If you can verify that this is indeed the case it would really help. I can't think right now of a reason why it should fail unless the user the CGI script is running under is unable to create sockets. Is that a possibility?

Replies are listed 'Best First'.
Re^2: Perl NET::SNMP
by glide (Pilgrim) on Apr 30, 2008 at 09:26 UTC
    Hi,

    I don't use the Fedora for a while, but my suspect is the SELinux. Check the log file of the SELinux.

      /sigh, sometimes you forget the simplist things.. I was positive I had corrected this and never even bothered to look back. Thanks for the help