Feature #2945

snmp support

Added by Filippo Carletti almost 7 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-net-snmp
Target version:v6.6
Resolution: NEEDINFO:Yes

Description

Add support for snmp.

Associated revisions

Revision 4de426d1
Added by Giacomo Sanchietti over 6 years ago

First import. Refs #2945

Revision 58e74848
Added by Giacomo Sanchietti over 6 years ago

Add db defaults and snmpd.conf template. Refs #2945

Revision ce534fc1
Added by Giacomo Sanchietti over 6 years ago

Web UI: first implementation. Refs #2945

Revision 755e4173
Added by Giacomo Sanchietti over 6 years ago

createlinks: expand config file and restart daemon. Refs #2945

Revision 9b12d1fd
Added by Giacomo Sanchietti over 6 years ago

db: change default status to disabled. Refs #2945

Revision 26017b64
Added by Giacomo Sanchietti over 6 years ago

createlinks: implement save event. Refs #2945

Revision 777ae97a
Added by Giacomo Sanchietti over 6 years ago

Web UI: moved to Configuration section. Refs #2945

History

#1 Updated by Filippo Carletti almost 7 years ago

yum install net-snmp
chkconfig snmpd on
config set fw_snmpd service status enabled UDPPort 161 access private
service snmpd start
signal-event firewall-adjust

#2 Updated by Filippo Carletti almost 7 years ago

  • Target version set to v6.6-beta1

#3 Updated by Giacomo Sanchietti over 6 years ago

  • NEEDINFO changed from No to Yes

Do we really need a package? Should the server be configurable?
Whant about a simple documentation page?

#4 Updated by Giacomo Sanchietti over 6 years ago

  • Target version changed from v6.6-beta1 to ~FUTURE

#5 Updated by Filippo Carletti over 6 years ago

  • Target version changed from ~FUTURE to v6.6-beta1
A minimal server-manager panel to configure the service should have the following fields:
  • status: enabled/disabled
  • community (default public)
  • location
  • syscontact (optional) email address for notifications (default=root/admin)

#6 Updated by Davide Principi over 6 years ago

  • Target version changed from v6.6-beta1 to v6.6-rc1

#7 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#8 Updated by Giacomo Sanchietti over 6 years ago

  • Target version changed from v6.6-rc1 to v6.6

#9 Updated by Giacomo Sanchietti over 6 years ago

  • Category set to nethserver-net-snmp
  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#10 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#11 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-net-snmp-0.0.1-1.5.g9b12d1f.ns6.noarch.rpm
Test case 1
  • Check the SNMP server is not started by default
Test case 2
  • Enable SNMP server
  • Query the server:
    snmpwalk -mALL -v2c -cpublic localhost
    
Test case 3
  • Enable SNMP server
  • Modify the contact, the community (eg. mypublic) and the location
  • Query the server:
    snmpwalk -mALL -v2c -cmypublic localhost
    

#12 Updated by Filippo Carletti over 6 years ago

  • Status changed from ON_QA to TRIAGED
  • % Done changed from 70 to 20

snmpd answers connections from localhost but not from network: port 161/udp is closed.
Run signal-event firewall-adjust and port 161/udp is opened and queries answered.

#13 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#14 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#15 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-net-snmp-0.0.1-1.7.g777ae97.ns6.noarch.rpm

#16 Updated by Filippo Carletti over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90
[root@ns65 ~]# iptables -nL | grep 161
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:161 /* smb */ 

Only one remark: the comment is "smb" instad of snmp.

#17 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-net-snmp-1.0.0-1.ns6.noarch.rpm
New documentation:

Created new yum group: nethserver-net-snmp

Also available in: Atom PDF