This is a discussion on RE: file monitoring within the SNMP Users forums, part of the Networking and Network Related category; --===============1598969573== Content-Type: multipart/alternative; boundary="_5aae63c6-32eb-4bea-8f52-2657445352e9_" --_5aae63c6-32eb-4bea-8f52-2657445352e9_ Content-Type: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1598969573==
Content-Type: multipart/alternative; boundary="_5aae63c6-32eb-4bea-8f52-2657445352e9_" --_5aae63c6-32eb-4bea-8f52-2657445352e9_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi All, =20 Can anyone help me out with this? =20 Thanks, Leigh From: warpig369@hotmail.comTo: net-snmp-users@lists.sourceforge.netSubject:= file monitoringDate: Thu, 18 Oct 2007 23:21:05 +0100 Hi All,I've been trying to get SNMP file monitoring implemented, but I've b= een unsuccessful so far. The ideal situation is that once a file size is l= arger than the specified threshold, a SNMP trap is sent to the monitoring s= oftware (OpsView in this case). Currently the pertinent sections if my snm= pd.conf file are:<begin snmpd.conf>agentSecName internalrouser internaldefa= ultMonitors yesfile "/var/lib/mysql/Syslog/SystemEvents.MYD" 657000</end s= nmpd.conf>Is there anything else I need to include to enable an SNMP trap t= o be sent? Even though the file size is beyond the specified "657000", whe= n I do an "snmpget" on the value, it returns a "0":[leigh@syslog ~]$ snmpge= t -v 2c -c public localhost 1.3.6.1.4.1.2021.15.1.3.1UCD-SNMP-MIB::fileSize= ..1 =3D INTEGER: 0 kBSince I've only configured one file to monitor, doing a= n snmpget for a second file returns:[leigh@syslog ~]$ snmpget -v 2c -c publ= ic localhost 1.3.6.1.4.1.2021.15.1.3.2UCD-SNMP-MIB::fileSize.2 =3D No Such = Instance currently exists at this OIDso I think I'm on the right track. If= anyone has any ideas or suggestions regarding my configuration, it would b= e much appreciated.Regards,Leigh Play Movie Mash-up and win BIG prizes!=20 __________________________________________________ _______________ 100=92s of Music vouchers to be won with MSN Music https://www.musicmashup.co.uk= --_5aae63c6-32eb-4bea-8f52-2657445352e9_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable <html> <head> <style> ..hmmessage P { margin:0px; padding:0px } body.hmmessage { FONT-SIZE: 10pt; FONT-FAMILY:Tahoma } </style> </head> <body class=3D'hmmessage'> <BR>Hi All,<BR> <BR> Can anyone help me out with this?<BR> <BR> Thanks,<BR> Leigh<BR><BR> <BLOCKQUOTE> <HR> From: warpig369@hotmail.com<BR>To: net-snmp-users@lists.sourceforge.net<BR>= Subject: file monitoring<BR>Date: Thu, 18 Oct 2007 23:21:05 +0100<BR><BR> <META content=3D"Microsoft SafeHTML" name=3DGenerator> <STYLE> ..ExternalClass .EC_hmmessage P {padding:0px;} ..ExternalClass EC_body.hmmessage {font-size:10pt;font-family:Tahoma;} </STYLE> Hi All,<BR><BR>I've been trying to get SNMP file monitoring implemented, bu= t I've been unsuccessful so far. The ideal situation is that once a f= ile 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:<BR><BR><begin snmpd.conf><BR>agen= tSecName internal<BR>rouser internal<BR><BR>defaultMonitors yes<BR><BR>file= "/var/lib/mysql/Syslog/SystemEvents.MYD" 657000<BR></end snmpd.co= nf><BR><BR>Is there anything else I need to include to enable an SNMP tr= ap to be sent? Even though the file size is beyond the specified "657= 000", when I do an "snmpget" on the value, it returns a "0":<BR><BR>[leigh@= syslog ~]$ snmpget -v 2c -c public localhost 1.3.6.1.4.1.2021.15.1.3.1<BR>U= CD-SNMP-MIB::fileSize.1 =3D INTEGER: 0 kB<BR><BR>Since I've only configured= one file to monitor, doing an snmpget for a second file returns:<BR><BR>[l= eigh@syslog ~]$ snmpget -v 2c -c public localhost 1.3.6.1.4.1.2021.15.1.3.2= <BR>UCD-SNMP-MIB::fileSize.2 =3D No Such Instance currently exists at this = OID<BR><BR>so I think I'm on the right track. If anyone has any ideas= or suggestions regarding my configuration, it would be much appreciated.<B= R><BR>Regards,<BR>Leigh<BR><BR> <HR> Play Movie Mash-up and win <A href=3D"https://www.moviemashup.co.uk/" targe= t=3D_blank>BIG prizes! </A></BLOCKQUOTE><br /><hr />The next generation of = MSN Hotmail has arrived - <a href=3D'http://www.newhotmail.co.uk' target= =3D'_new'>Windows Live Hotmail</a></body> </html>= --_5aae63c6-32eb-4bea-8f52-2657445352e9_-- --===============1598969573== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --===============1598969573== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============1598969573==-- |