Welcome to Geeklog, Anonymous Friday, July 12 2024 @ 04:23 pm EDT

Geeklog Forums

Monitor Plugin v1.2.1

Status: Banned


Forum User
Full Member
Registered: 11/05/03
Posts: 121
I have a question about the monitor plugin. How does it schedule when to send the logs?

Also, I added the 404.log to the list of logs that is sent. Can this be added as a default?
I did this by going to functions.inc and changing line 342 to the following.
Text Formatted Code
        MONITOR_logEmail(array('error.log','captcha.log','access.log','spamx.log', 'purepro_downloads.log', 'paypal_downloads.log', '404.log'));

Having waited a couple of days without receiving any logs via email I decided to add an admin link to send the files now. This would allow me to test that the send works right away without waiting.

I inserted the following on line 420 in public_html/admin/plugins/monitor/index.php.
Text Formatted Code
                        | <a href="' . $_CONF['site_admin_url'] . '/plugins/monitor/index.php?action=send_logs_now">' . $LANG_MONITOR_1['send_logs_now'] . '</a>                      

Then insert the following line just after "switch (action) {" near the bottom of public_html/admin/plugins/monitor/index.php.
Text Formatted Code
        case 'send_logs_now' :
                $content .= MONITOR_logEmail(array('error.log','captcha.log','access.log','spamx.log', 'purepro_downloads.log', 'paypal_downloads.log', '404.log'));

I also inserted the following on line 67 of the language file english.php.
Text Formatted Code
        'send_logs_now'       => 'SEND LOGS NOW!',     


All times are EDT. The time is now 04:23 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content