I solved the problem by changing perl module. The perl module to be used is SNMP. As CPAN states: "SNMP - The Perl5 'SNMP' Extension Module for the Net-SNMP SNMP package." The "core" of my perl script now is:
| my %snmp_server = ( | hostname => $host, | communit => $opt{'c'} || 'public', | version => '2c', | port => $opt{'p'}, | FreeMemory => $cfg->param('FreeMemory') || '1.2.3.4.1.2', | MaximumQueueSize => $cfg->param('MaximumQueueSize') || '1.2.3.4.1.11', | MaxMemory => $cfg->param('MaxMemory') || '1.2.3.4.1.3', | QueueSize => $cfg->param('QueueSize') || '1.2.3.4.1.4', | TotalMemory => $cfg->param('TotalMemory') || '1.2.3.4.1.10' | ); | | my $sess = new SNMP::Session (DestHost => $snmp_server{hostname}, | Community => $snmp_server{community}, | Version => $snmp_server{version}, | RemotePort => $snmp_server{port} ); | | if ( !($sess) ) { | printf( "ERROR: can't contact $snmp_server{hostname}\n" ); | exit 1; | } | | my @result = ( $sess->get($snmp_server{FreeMemory}), $sess->get($snmp_server{TotalMemory}), | $sess->get($snmp_server{MaxMemory}), $sess->get($snmp_server{QueueSize}), | $sess->get($snmp_server{MaximumQueueSize}) ); | | if ( !(@result) ) { | printf( "ERROR: can't contact $snmp_server{hostname}\n" ); | exit 1; | } | Nothing changes in JBoss config that I posted in my first message. So I don't know if it is a Jboss bug or a NET::SNMP perl-module bug. Do you thik I have to open a JIRA issue anyway? Thanks, Bye, pako View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972949#3972949 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972949 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user