RE: file monitoring

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: ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-24-2007
Leigh Peterson
 
Posts: n/a
Default RE: file monitoring

--===============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>
&nbsp;<BR>
Can anyone help me out with this?<BR>
&nbsp;<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.&nbsp; 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).&nbsp; Currently the pertinent =
sections if my snmpd.conf file are:<BR><BR>&lt;begin snmpd.conf&gt;<BR>agen=
tSecName internal<BR>rouser internal<BR><BR>defaultMonitors yes<BR><BR>file=
&nbsp; "/var/lib/mysql/Syslog/SystemEvents.MYD" 657000<BR>&lt;/end snmpd.co=
nf&gt;<BR><BR>Is there anything else I need to include to enable an SNMP tr=
ap to be sent?&nbsp; 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.&nbsp; 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==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:34 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0