aboutsummaryrefslogtreecommitdiff
path: root/net/net-snmp/files
Commit message (Collapse)AuthorAge
* net-snmp: rename stop_service to service_stoppedFlorian Eckert2023-03-30
| | | | | | | | | The commands in the function 'stop_service' do not stop the service. Rather, they are commands that are to be executed when the service has already been stopped. By renaming the function, the commands are now executed after the service has been stopped. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net-snmp: fix whitespacesFlorian Eckert2023-03-30
| | | | | | Replace spaces with tabs Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net-snmp: move start order from 50 to 99Seth Kingry2022-02-08
| | | | Signed-off-by: Seth Kingry <sjkingry@gmail.com>
* net-snmp: do not exit if files cannot be openedStijn Tintel2019-12-19
| | | | | | | If snmpd fails to open files, like /dev/kmem or /dev/mem, it exits. Avoid this by adding the -r argument. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* net-snmp: reload firewall only when neededAlin Nastac2019-08-12
| | | | | | | | Firewall needs to be reloaded in the following cases: - on service start when snmpd.general.enabled=1 - when snmpd daemon is stopped Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
* Merge pull request #5069 from dedeckeh/pr-netsnmp-fwStijn Tintel2018-08-02
|\ | | | | net-snmp: fix inbound firewall rule support
| * net-snmp: fix inbound firewall rule supportHans Dedecker2017-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit ae5ee6ba6c506b42d942c98349b3a54181790ec8 added support for inbound firewall rule support but some corner cases were not covered. In case net-snmp is started and the network interface is already up the procd firewall rule is created but not applied by fw3 as service_started calling procd_set_config_changed firewall was missing. When stopping net-snmp clean up the net-snmp inbound firewall rules in iptables by calling procd_set_config_changed firewall in stop_service which will trigger fw3 to remove the inbound firewall rules. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* | SNMPD: Add snmp_extend config optionXavier Franquet2018-05-23
|/ | | | Signed-off-by: Xavier Franquet <xavier@franquet.es>
* net-snmp: avoid duplicate section namesStijn Tintel2017-09-29
| | | | | | | | | | | | | It seems that UCI can't handle duplicate section names in a single config file, even if they use different types. After the previous commit, running `uci export` results in the following error: uci: Parse error (section of different type overwrites prior section with same name) at line 17, byte 23 Append a 6 to the com2sec6 section names to solve this. Fixes: 0e1c8b4ccc2c ("net-snmp: snmpd: listen on IPv6 by default") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* net-snmp: snmpd: listen on IPv6 by defaultStijn Tintel2017-09-29
| | | | | | Closes #4758. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* net-snmp: add snmptrapd packagesStijn Tintel2017-09-29
| | | | | | Closes #4724. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* netsnmp: add global enabled config optionHans Dedecker2017-07-10
| | | | | | | | Add enabled config option in the global uci section; it allows to put into place the snmpd config but not yet start the netsnmp daemon. If config option is unset; netsnmp daemon will be started as before. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* net-snmp: add notification config optionsHans Dedecker2017-06-19
| | | | | | | | | | | | | | | | Add config support which allow snmpd to take a more active role by sending traps. Following config options are supported which map directly on snmpd directives: -trapcommunity -trapsink -trap2sink -informsink -authtrapenable -v1trapaddress -trapsess Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* net-snmp: add inbound firewall rule supportHans Dedecker2017-05-24
| | | | | | | | | | | | Add UCI section general which holds the uci parameter network defining on which interface(s) the snmp agent is reachable for inbound snmp requests in case the firewall zone does not allow INPUT traffic by default. For the different zones to which the different interfaces belong firewall procd input rules are created making the snmp agent reachable on udp port 161. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* net-snmp: add engineID config optionsStijn Tintel2017-02-14
| | | | | | | | | | According to the snmpd.conf man page, the engineID of an snmp agent should be consistent through time. However, it seems that the engineID changes every reboot. Add options to configure how the engineID is generated. The default setting generates it based on the MAC address of the eth0 interface. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* net-snmp: enable AgentX supportStijn Tintel2017-01-05
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* net-snmp: reload snmpd on interface eventsStijn Tintel2016-02-20
| | | | | | | | | | | | | | | | | When applying wireless configuration changes, the ifindex of the wireless interface(s) change. While snmpd picks up the new interfaces with the correct index, it does not remove the old ones: IF-MIB::ifName.23 = STRING: wlan0 IF-MIB::ifName.24 = STRING: wlan1 IF-MIB::ifName.25 = STRING: wlan0 IF-MIB::ifName.26 = STRING: wlan1 This causes problems for monitoring tools that use ifName (or ifDesc) as interface reference. Add a trigger that reloads snmpd on interface up/down events so that it will no longer have the old interfaces. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* net-snmp: add service_triggers callbackfeckert2015-08-06
| | | | | Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> Signed-off-by: Helge Mader <hmader@tdt.de>
* net-snmp: add config optionsfeckert2015-08-06
| | | | | | | | | | | - trap_hostname - trap_ip - access_default - access_HostName - access_HostIP Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> Signed-off-by: Helge Mader <hmader@tdt.de>
* net-snmp: monitor ifindex changesStijn Tintel2015-02-18
| | | | | | | | | When an ifindex for an interface changes, some monitoring tools can no longer find the interface and send alerts. Monitor all network interfaces via the procd netdev parameter, so that /etc/init.d/snmpd reload will restart snmpd if any ifindex changed. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* net-snmp: cosmetic changes in snmpd init scriptStijn Tintel2015-02-18
| | | | | | | | - Refactor RUN_C into CONFIGFILE, as used in dnsmasq and igmpproxy init scripts. - Add a newline after each function definition. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* net-snmp: convert snmpd to procdStijn Tintel2015-02-18
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* net-snmp: remove /etc/default/snmpd DebianismStijn Tintel2015-02-18
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* Update snmpd.initrcmcronny2014-10-13
| | | | | | | | | | add support for "disk <partition> <size>" option example for /etc/config/snmpd =========== config disk option partition '/' option size '500' ===========
* net-snmp: import from oldpackages, add myself as maintainer, add license ↵Jo-Philipp Wich2014-07-02
information, update to v5.4.4, refresh patches Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>