Skip to content

Commit bec99f2

Browse files
authored
Disable snmpd module disk_hw, so no syslog messages about unavailable disks (#977)
* Revert "snmpd ignores unavailable disks (#607)" This reverts commit d70e973. * Disable snmpd module disk_hw, so no syslog messages about unavailable disks Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com> * Strip white spaces Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
1 parent 0f6c8c1 commit bec99f2

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

dockers/docker-snmp-sv2/snmpd.conf.j2

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ agentAddress udp:{{ prefix | ip }}:161
2828
{% endif %}
2929
{% endfor %}
3030
{% else %}
31-
# Listen on all addresses as mgmt ip not specified
31+
# Listen on all addresses as mgmt ip not specified
3232
agentAddress udp:161
3333
{% endif %}
3434

@@ -61,7 +61,7 @@ sysServices 72
6161
#
6262
# Process Monitoring
6363
#
64-
# TODO: should we enable snmp based monitoring of sswsyncd and other processes?
64+
# todo: should we enable snmp based monitoring of sswsyncd and other processes?
6565

6666
# At least one 'sendmail' process, but no more than 10
6767
#proc sendmail 10 1
@@ -76,12 +76,7 @@ sysServices 72
7676
# 10MBs required on root disk, 5% free on /var, 10% free on all other disks
7777
disk / 10000
7878
disk /var 5%
79-
80-
# Note: includeAllDisks will conflict with ignoredisk
81-
# TODO: /root/* are introduced by aufs union mount, happening in initramfs stage. Clean them in the mount list.
82-
ignoredisk /root/host
83-
ignoredisk /root/dev
84-
ignoredisk /root/dev/pts
79+
includeAllDisks 10%
8580

8681
# Walk the UCD-SNMP-MIB::dskTable to see the resulting output
8782
# Note that this table will be empty if there are no "disk" entries in the snmpd.conf file

dockers/docker-snmp-sv2/supervisord.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ stdout_logfile=syslog
2020
stderr_logfile=syslog
2121

2222
[program:snmpd]
23-
command=/usr/sbin/snmpd -f -LS4d -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf,ifTable,ifXTable,inetCidrRouteTable,ipCidrRouteTable,ip -p /run/snmpd.pid
23+
command=/usr/sbin/snmpd -f -LS4d -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf,ifTable,ifXTable,inetCidrRouteTable,ipCidrRouteTable,ip,disk_hw -p /run/snmpd.pid
2424
priority=3
2525
autostart=false
2626
autorestart=false

0 commit comments

Comments
 (0)