我试图让snmpd通知我们的监控系统发生磁盘空间不足等事件。 我在Debian 8上使用snmpd。
我的snmpd.conf文件如下所示:
## # Daemon ## agentAddress udp:161 master agentx dontLogTCPWrappersConnects 1 ## # Authentication ## agentSecName authOnlyUser #rouser internalUser view systemonly included .1.3.6.1.2.1.1 view systemonly included .1.3.6.1.2.1.25.1 rocommunity modify rouser authOnlyUser rwuser authPrivUser priv ## # Process Monitoring ## proc sshd proc ntpd proc nginx ## # Disk Monitoring # 10MBs required on root disk, 5% free on /var, 10% free on all other disks ## disk / 10000 disk /var 5% includeAllDisks 10% ## # System Load ## monitor machineTooBusy hrProcessorLoad > 90 load 12 10 5 # Unacceptable 1-, 5-, and 15-minute load averages ## # Event MIB - automatically generate alerts ## defaultMonitors yes linkUpDownNotifications no ## # Send events to spectrum ## informsink 172.16.102.98 public
当我运行snmpd -Lo -d -r 10 -f我将停止nginx并有意填满文件系统。 我不会看到任何陷阱发送。 如果我运行tcpdump,我可以看到正在发送的启动和closures陷阱,但是没有其他的产生。
我有一个“authOnlyUser”用户创build。
我确定我正在做一些简单而愚蠢的事情,但是我不知道那是什么。