SNMP not working

Status
Not open for further replies.

raymonvdm

Dabbler
Joined
Aug 24, 2011
Messages
14
Hi,

I mn trying to get SNMP working on a FreeNAS-8.0-RELEASE-i386 build but it is failing.

The boxes have a static ip but when i check netstat -nl snmp is not listed

Code:

freenas# netstat -nl
Active Internet connections
Proto Recv-Q Send-Q  Local Address          Foreign Address       (state)
tcp4       0      0 192.168.110.190.80     192.168.110.50.54399   TIME_WAIT
tcp4       0      0 192.168.110.190.80     192.168.110.50.54397   TIME_WAIT
tcp4       0      0 192.168.110.190.80     192.168.110.50.54396   TIME_WAIT
tcp4       0      0 192.168.110.190.80     192.168.110.50.54395   TIME_WAIT
tcp4       0      0 192.168.110.190.80     192.168.110.50.54394   TIME_WAIT
tcp4       0      0 192.168.110.190.80     192.168.110.50.54393   TIME_WAIT
tcp4       0      0 192.168.110.190.80     192.168.110.50.54392   TIME_WAIT
tcp4       0      0 192.168.110.190.22     192.168.110.50.45419   ESTABLISHED
tcp4       0      0 192.168.110.190.2049   192.168.110.195.916    ESTABLISHED
udp4       0      0 127.0.0.1.53405        127.0.0.1.162          
udp4       0      0 127.0.0.1.123          *.*                    
udp6       0      0 ::1.123                                       *.*                                           
udp6       0      0 fe80:2::1.123                                 *.*                                           
udp4       0      0 192.168.110.190.123    *.*                    
udp4       0      0 192.168.110.255.138    *.*                    
udp4       0      0 192.168.110.190.138    *.*                    
udp4       0      0 192.168.110.255.137    *.*                    
udp4       0      0 192.168.110.190.137    *.*                    
Active UNIX domain sockets
Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
cd928560 stream      0      0 cb7feb84        0        0        0 /var/run/snmpd.sock
cd9276b8 stream      0      0 cdbd1860        0        0        0 /tmp/django.sock
cd927810 stream      0      0 cda48a78        0        0        0 /var/run/rpcbind.sock
cd927d70 stream      0      0 cda40a78        0        0        0 /var/run/devd.pipe
cd92735c dgram       0      0        0 cd927968        0 cd927204
cd927b6c dgram       0      0        0 cd927a14        0        0
cd927204 dgram       0      0        0 cd927968        0 cd927ec8
cd927ec8 dgram       0      0        0 cd927968        0 cd928000
cd928000 dgram       0      0        0 cd927968        0 cd927408
cd927408 dgram       0      0        0 cd927968        0 cd927c18
cd927c18 dgram       0      0        0 cd927968        0 cd92760c
cd92760c dgram       0      0        0 cd927968        0 cd927764
cd927764 dgram       0      0        0 cd927968        0 cd9278bc
cd9278bc dgram       0      0        0 cd927968        0        0
cd927968 dgram       0      0 cda50000        0 cd92735c        0 /var/run/logpriv
cd927a14 dgram       0      0 cda5010c        0 cd927b6c        0 /var/run/log
freenas# 



I already modified the host file

Code:

::1                     localhost localhost.my.domain freenas freenas.local
127.0.0.1               localhost localhost.my.domain freenas freenas.local
192.168.110.190         freenas.domainname.org



And also tried to edit /etc/snmpd.conf

Code:

# open standard SNMP ports
begemotSnmpdPortStatus.[freenas.domainname.org].161 = 1
begemotSnmpdPortStatus.127.0.0.1.161 = 1
#begemotSnmpdPortStatus.192.168.110.190.161 = 1




But stil no luck. I would like to use Cacti to make graphs of the interfaces en disks. I already have a dedicated cacti box to use for al my other machines so cacti is not the problem.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,878
Yes, download the latest nightly build (more recent than Beta-4) and create the CD via the iso file. Boot your FreeNAS from the CD and do the install.
 
Status
Not open for further replies.
Top