Operating System - Linux
1834635 Members
3513 Online
110069 Solutions
New Discussion

snmp daemon doesn't work fine under linux

 
Carles Viaplana
Valued Contributor

snmp daemon doesn't work fine under linux

Hello,

We're trying to configure an snmp daemon in a linux system (habana) but when we try to get data we get the following error.

canberra:/usr/local/nagios/libexec # ./check_snmp_storage.pl -H habana -C public -m / -r -w 85 -c 98
ERROR: Description/Type table : No response from remote host 'habana'.
canberra:/usr/local/nagios/libexec #

Here you're /etc/snmpd.conf file:

HABANA:/etc # more snmpd.conf
# Following entries were added by HP Insight Management Agents at
# Tue Oct 25 13:12:42 CEST 2005
rwcommunity public 127.0.0.1
rocommunity public 127.0.0.1
rwcommunity public 193.146.12.150
rocommunity public 193.146.12.150
trapcommunity public
trapsink 193.146.12.150 public
syscontact Sysadmin (root@localhost)
syslocation Server Room

# ---------------------- END --------------------
# Following entries were added by HP Insight Management Agents at
# Tue Oct 25 12:07:43 CEST 2005

# ---------------------- END --------------------
HABANA:/etc #

Is there anything wrong?
Should I open any port on habana in order to allow snmp packets?

Thanks in advance for your help.
Regards,

Carles
5 REPLIES 5
Sergejs Svitnevs
Honored Contributor

Re: snmp daemon doesn't work fine under linux

Please check /etc/hosts.allow file to make sure you have enabled snmp access from 193.146.12.150.

/etc/hosts.allow
....
snmpd: 193.146.12.150

Regards
Carles Viaplana
Valued Contributor

Re: snmp daemon doesn't work fine under linux

Hello,

I modified hosts.allow file as you told in your message but I still get same error.

Any idea?

Thanks for your help.
Regards,

Carles
Jeroen Peereboom
Honored Contributor

Re: snmp daemon doesn't work fine under linux

There may be an error in your perl script?

Maybe you can start with a simple snmpget?
Like snmpget -v1 -c public habana system.sysDescr.0 (or syslocation.0)

Try it on habana (with habana and localhost), and on canberra

Canberra's IP address is 193.146.12.150, I assume?

JP
Carles Viaplana
Valued Contributor

Re: snmp daemon doesn't work fine under linux

Hello,

I tried command you suggested but I get timeout error:

HABANA:/etc # snmpget -v1 -c public habana system.sysDescr.0
Timeout: No Response from habana.
HABANA:/etc #

Any idea?

Thanks in advance for your help.
Regards,

Carles
Carles Viaplana
Valued Contributor

Re: snmp daemon doesn't work fine under linux

Hello all,

there were a configuration issue that we solved.

Thanks anyway for your help.
Regards,

Carles