mrtg + logsat |
Post Reply
|
| Author | |
eric
Guest Group
|
Post Options
Thanks(0)
Quote Reply
Topic: mrtg + logsatPosted: 24 November 2003 at 10:15am |
|
i am currently trying to get mrtg to run with the spamfilter.ini, is logsat changing the format of the files in the near feauture ? i am half way now, if it works (the perl script) i will post a download okay ? -eric- |
|
![]() |
|
Keizersozay
Guest Group
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 November 2003 at 11:21am |
|
That would be pretty awsome. If you get it working, please post your info. Thanks |
|
![]() |
|
LogSat
Admin Group
Joined: 25 January 2005 Location: United States Status: Offline Points: 4106 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 November 2003 at 2:09pm |
|
Eric, We do not plan on changing the existing log format for existing entries any time soon. We do however add new logged items from time to time. Roberto F. |
|
![]() |
|
eric
Guest Group
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2003 at 10:10am |
|
i am using a perl script as a target in the mrtg.cfg Target[spamfilter.yourserver.local]: `c:\perl\bin\perl.exe d:\mrtg\logsat.pl` is processes the spamfilter ini the same way to return values as the stats asp file from dan. i am stealing dan`s code, because the values mrtg uses are the same, rx bytes -> value can be messages forwarded tx bytes -> value can be messages blocked that makes it possible...
the vb code so far : (must follow the perl script mrtg target) <% Function ReadFromIniFile(strFileName,strSection, strKey) Dim blnSectionFound: blnSectionFound = False Dim blnKeyFound: blnKeyFound = False Dim objFSO: Set objFSO = Server.CreateObject ("Scripting.FileSystemObject") Dim objTextStream: Set objTextStream = objFSO.OpenTextFile(strFileName) Dim strLine Do While Not objTextStream.AtEndOfStream And Not blnSectionFound Do While Not objTextStream.AtEndOfStream And Not blnKeyFound And blnSectionFound If blnKeyFound Then ReadFromIniFile = strValue '============================================================ %> <%Response.Write ReadFromIniFile("SpamFilter.ini","stats","EMailsForwarded:") <%Response.Write ReadFromIniFile("SpamFilter.ini","stats","EMailsBlocked")
i am currently using the net::telnet module but was not yet succesfull with it, (telnetting to my windows server into the path where spamfilter resides.) maybe it`s better to pipe the vbscript as a target, in mrtg...on the local server.. thats the current status. -eric- [ sysadmin / not a programmer :-) ] |
|
![]() |
|
eric
Guest Group
|
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2003 at 10:25am |
|
the vbscript in the asp page returns these values : http://webmail.aquasense.nl/spamstats.asp these values can be run as a target in mrtg directly so far, no result yet. dan : do you want the code first if it works, or am i free to use your code, and post the howto-mrtg with it ? -eric-
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.238 seconds.


Topic Options
Post Options
Thanks(0)


