file monitoring
Leigh Peterson <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All, I've been trying to get SNMP file monitoring implemented, but I've been unsuccessful so far. The ideal situation is that once a file size is larger than the specified threshold, a SNMP trap is sent to the monitoring software (OpsView in this case). Currently the pertinent sections if my snmpd.conf file are: <begin snmpd.conf> agentSecName internal rouser internal defaultMonitors yes file "/var/lib/mysql/Syslog/SystemEvents.MYD" 657000 </end snmpd.conf> Is there anything else I need to include to enable an SNMP trap to be sent? Even though the file size is beyond the specified "657000", when I do an "snmpget" on the value, it returns a "0": [leigh@syslog ~]$ snmpget -v 2c -c public localhost 1.3.6.1.4.1.2021.15.1.3.1 UCD-SNMP-MIB::fileSize.1 = INTEGER: 0 kB Since I've only configured one file to monitor, doing an snmpget for a second file returns: [leigh@syslog ~]$ snmpget -v 2c -c public localhost 1.3.6.1.4.1.2021.15.1.3.2 UCD-SNMP-MIB::fileSize.2 = No Such Instance currently exists at this OID so I think I'm on the right track. If anyone has any ideas or suggestions regarding my configuration, it would be much appreciated. Regards, Leigh _________________________________________________________________ The next generation of MSN Hotmail has arrived - Windows Live Hotmail http://www.newhotmail.co.uk ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users