Squirrel Loggen config problem

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Squirrel Loggen config problem

Don Levey
To all,
Please excuse me if this has been asked and answered; I have been unable
to find it any of my searches.  I have at least two plugin problems; the
other will be asked separately.

I am running:
squirrelmail-1.4.22-15.el7.noarch
php-5.4.16-36.el7_1.x86_64
httpd-2.4.6-31.el7.centos.x86_64
dovecot-2.2.10-4.el7_0.1.x86_64
sendmail-8.14.7-4.el7.x86_64

as well as:
compatability-2.0.16-1.0
squirrel_logger-2.3.1-1.2.7

from .tar.gz files.

I have followed the instructions in the INSTALL document included in the
plugin package, and yet (even with the default options) I get the
following error using configtest.php:

    ERROR: Squirrel Logger plugin is configured to log the "ERROR" event
in $sl_logs, but that event is not enabled in $sl_log_events

Ideally, I would have the errors logged, to a file, but even though the
$sl_logs and $sl_log_events match I get the error above.  Any thoughts
on how I might resolve this?

--
 -Don

------------------------------------------------------------------------------
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squirrel Loggen config problem

Paul Lesniewski
On 8/19/15, Don Levey <[hidden email]> wrote:

> To all,
> Please excuse me if this has been asked and answered; I have been unable
> to find it any of my searches.  I have at least two plugin problems; the
> other will be asked separately.
>
> I am running:
> squirrelmail-1.4.22-15.el7.noarch
> php-5.4.16-36.el7_1.x86_64
> httpd-2.4.6-31.el7.centos.x86_64
> dovecot-2.2.10-4.el7_0.1.x86_64
> sendmail-8.14.7-4.el7.x86_64
>
> as well as:
> compatability-2.0.16-1.0
> squirrel_logger-2.3.1-1.2.7
>
> from .tar.gz files.
>
> I have followed the instructions in the INSTALL document included in the
> plugin package, and yet (even with the default options) I get the
> following error using configtest.php:
>
>     ERROR: Squirrel Logger plugin is configured to log the "ERROR" event
> in $sl_logs, but that event is not enabled in $sl_log_events
>
> Ideally, I would have the errors logged, to a file, but even though the
> $sl_logs and $sl_log_events match

The error tells you they don't "match" and I doubt it's wrong.

> I get the error above.  Any thoughts
> on how I might resolve this?

Look again.  You can post log file snippets if you can't see it.

--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squirrel Loggen config problem

Don Levey
On 8/19/2015 20:15, Paul Lesniewski wrote:

> On 8/19/15, Don Levey <[hidden email]> wrote:
>> ...
>> I have followed the instructions in the INSTALL document included in the
>> plugin package, and yet (even with the default options) I get the
>> following error using configtest.php:
>>
>>     ERROR: Squirrel Logger plugin is configured to log the "ERROR" event
>> in $sl_logs, but that event is not enabled in $sl_log_events
>>
>> Ideally, I would have the errors logged, to a file, but even though the
>> $sl_logs and $sl_log_events match
>
> The error tells you they don't "match" and I doubt it's wrong.
>
>> I get the error above.  Any thoughts
>> on how I might resolve this?
>
> Look again.  You can post log file snippets if you can't see it.
>

Well, I don't have a log file yet; that's kinda what I'm trying to do.
But the config.php file has:

   $sl_log_events = array(
                             'LOGIN',
                             'LOGOUT',
                             'TIMEOUT',
//                             'OUTGOING_MAIL',
//                             'MASS_MAILING',
                             'LOGIN_ERROR',
//                             'ERROR',
//                             'CAPTCHA',
//                             'RESTRICT_SENDERS',
//                             'LOCKOUT',
   );
(lines 41-52)

and

   $sl_logs = array(
      'SYSTEM:LOG_INFO:LOG_MAIL' => array(
//         'LOGIN'            => "Successful webmail login: by %2 (%3)
at %4 on %6: %7",
//         'LOGOUT'           => "Webmail logout: by %2 (%3) at %4 on
%6: %7",
//         'TIMEOUT'          => "Webmail session timed out: by %2 (%3)
at %4 on %6: %7",
//         'OUTGOING_MAIL'    => "Message sent via webmail: by %2 (%3)
at %4 on %6: %7",
//         'MASS_MAILING'     => "Possible outgoing spam: by %2 (%3) at
%4 on %6: %7",
//         'LOGIN_ERROR'      => "Failed webmail login: by %2 (%3) at %4
on %6: %7",
//         'ERROR'            => "Webmail error: by %2 (%3) at %4 on %6:
%7",
//
// The following correspond to events generated by other plugins:
//
//         'CAPTCHA'          => "Webmail CAPTCHA litmus: by %2 (%3) at
%4 on %6: %7",
//         'RESTRICT_SENDERS' => "Failed recipient limit: by %2 (%3) at
%4 on %6: %7",
//         'LOCKOUT'          => "Webmail login page abuse: by %2 (%3)
at %4 on %6: %7",
      ),
      'SYSTEM:LOG_ALERT:LOG_AUTH' => array(
//         'MASS_MAILING'  =>  "Possible outgoing spam: by %2 (%3) at %4
on %6: %7",
      ),
      'FILE'   => array(
         'LOGIN'         =>  "%6 [%1] %2 (%3) from %4: %7\n",
         'LOGOUT'        =>  "%6 [%1] %2 (%3) from %4: %7\n",
         'TIMEOUT'       =>  "%6 [%1] %2 (%3) from %4: %7\n",
//         'MASS_MAILING'  =>  "%6 [%1] %2 (%3) from %4: %7\n",
         'LOGIN_ERROR'   =>  "%6 [%1] %2 (%3) from %4: %7\n",
//         'LOGIN_ERROR'   =>  "%6 [INVALID] %2 (%3) from %4: %7\n",
//         'ERROR'         =>  "%6 [%1] %2 (%3) from %4: %7\n",
      ),
      'SQL'    => array(
//         'LOGIN'         =>  'LOGIN',
//         'LOGOUT'        =>  'LOGOUT',
//         'TIMEOUT'       =>  'TIMEOUT',
//         'MASS_MAILING'  =>  'MASS_MAILING',
//         'LOGIN_ERROR'   =>  'INVALID',
//         'ERROR'         =>  'ERROR',
      ),
   );
(lines 126-162)

>From what I can tell, "ERROR" is commented out in both sections.  Is
there another section I've missed, where this might be set?  Yes, my
goal is to set ERROR as a loggable event, but if I can't get it to work
with the default config, I'm loathe to change it.

Thank you for your time,
 -Don

------------------------------------------------------------------------------
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squirrel Loggen config problem

Paul Lesniewski
On 8/19/15, Don Levey <[hidden email]> wrote:

> On 8/19/2015 20:15, Paul Lesniewski wrote:
>> On 8/19/15, Don Levey <[hidden email]> wrote:
>>> ...
>>> I have followed the instructions in the INSTALL document included in the
>>> plugin package, and yet (even with the default options) I get the
>>> following error using configtest.php:
>>>
>>>     ERROR: Squirrel Logger plugin is configured to log the "ERROR" event
>>> in $sl_logs, but that event is not enabled in $sl_log_events
>>>
>>> Ideally, I would have the errors logged, to a file, but even though the
>>> $sl_logs and $sl_log_events match
>>
>> The error tells you they don't "match" and I doubt it's wrong.
>>
>>> I get the error above.  Any thoughts
>>> on how I might resolve this?
>>
>> Look again.  You can post log file snippets if you can't see it.
>
> Well, I don't have a log file yet; that's kinda what I'm trying to do.

Was a typo - I meant *configuration* file snippets.....


> But the config.php file has:
>
>    $sl_log_events = array(
>                              'LOGIN',
>                              'LOGOUT',
>                              'TIMEOUT',
> //                             'OUTGOING_MAIL',
> //                             'MASS_MAILING',
>                              'LOGIN_ERROR',
> //                             'ERROR',
> //                             'CAPTCHA',
> //                             'RESTRICT_SENDERS',
> //                             'LOCKOUT',
>    );
> (lines 41-52)
>
> and
>
>    $sl_logs = array(
>       'SYSTEM:LOG_INFO:LOG_MAIL' => array(
> //         'LOGIN'            => "Successful webmail login: by %2 (%3)
> at %4 on %6: %7",
> //         'LOGOUT'           => "Webmail logout: by %2 (%3) at %4 on
> %6: %7",
> //         'TIMEOUT'          => "Webmail session timed out: by %2 (%3)
> at %4 on %6: %7",
> //         'OUTGOING_MAIL'    => "Message sent via webmail: by %2 (%3)
> at %4 on %6: %7",
> //         'MASS_MAILING'     => "Possible outgoing spam: by %2 (%3) at
> %4 on %6: %7",
> //         'LOGIN_ERROR'      => "Failed webmail login: by %2 (%3) at %4
> on %6: %7",
> //         'ERROR'            => "Webmail error: by %2 (%3) at %4 on %6:
> %7",
> //
> // The following correspond to events generated by other plugins:
> //
> //         'CAPTCHA'          => "Webmail CAPTCHA litmus: by %2 (%3) at
> %4 on %6: %7",
> //         'RESTRICT_SENDERS' => "Failed recipient limit: by %2 (%3) at
> %4 on %6: %7",
> //         'LOCKOUT'          => "Webmail login page abuse: by %2 (%3)
> at %4 on %6: %7",
>       ),
>       'SYSTEM:LOG_ALERT:LOG_AUTH' => array(
> //         'MASS_MAILING'  =>  "Possible outgoing spam: by %2 (%3) at %4
> on %6: %7",
>       ),
>       'FILE'   => array(
>          'LOGIN'         =>  "%6 [%1] %2 (%3) from %4: %7\n",
>          'LOGOUT'        =>  "%6 [%1] %2 (%3) from %4: %7\n",
>          'TIMEOUT'       =>  "%6 [%1] %2 (%3) from %4: %7\n",
> //         'MASS_MAILING'  =>  "%6 [%1] %2 (%3) from %4: %7\n",
>          'LOGIN_ERROR'   =>  "%6 [%1] %2 (%3) from %4: %7\n",
> //         'LOGIN_ERROR'   =>  "%6 [INVALID] %2 (%3) from %4: %7\n",
> //         'ERROR'         =>  "%6 [%1] %2 (%3) from %4: %7\n",
>       ),
>       'SQL'    => array(
> //         'LOGIN'         =>  'LOGIN',
> //         'LOGOUT'        =>  'LOGOUT',
> //         'TIMEOUT'       =>  'TIMEOUT',
> //         'MASS_MAILING'  =>  'MASS_MAILING',
> //         'LOGIN_ERROR'   =>  'INVALID',
> //         'ERROR'         =>  'ERROR',
>       ),
>    );
> (lines 126-162)
>
> >From what I can tell, "ERROR" is commented out in both sections.  Is
> there another section I've missed, where this might be set?

Does look to be commented out everywhere.  This likely means there is
another configuration file that is being read.  Use find or locate to
help figure it out.  Another fast way to see if a file is being used
-- only on non-production, low volume or private servers -- is to
introduce a PHP syntax error into the configuration file and see if it
causes SquirrelMail to malfunction (watch your logs too).  RedHat does
move its configuration files around...

--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Squirrel Loggen config problem

Don Levey
On 8/19/2015 23:39, Paul Lesniewski wrote:
> On 8/19/15, Don Levey <[hidden email]> wrote:
>>
>>
>> Well, I don't have a log file yet; that's kinda what I'm trying to do.
>
> Was a typo - I meant *configuration* file snippets.....
>
Ah, OK.  They way I've been going,it was just as likely that had
overlooked something.

...

>>
>> >From what I can tell, "ERROR" is commented out in both sections.  Is
>> there another section I've missed, where this might be set?
>
> Does look to be commented out everywhere.  This likely means there is
> another configuration file that is being read.  Use find or locate to
> help figure it out.  Another fast way to see if a file is being used
> -- only on non-production, low volume or private servers -- is to
> introduce a PHP syntax error into the configuration file and see if it
> causes SquirrelMail to malfunction (watch your logs too).  RedHat does
> move its configuration files around...
>

Syntax errors - THAT I'm good at.  But your suggestions also gave me the
idea to try to determine the code in which the plugin is looking for the
config file.  That led me to the functions.php file, in the
sl_get_config function.

There I saw that it would load config.php in the plugins directory only
if it didn't find config_squirrel_logger.php in the main config
directory.  I looked at that file and found the mismatched ERROR lines.
 Uncommenting the ERROR line in sl_log_events allowed me to bypass the
error.  Thank you!

Now to get it to write the log file into my log directory, using my
system's filename format...
 -Don

------------------------------------------------------------------------------
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins
Loading...