Welcome to Pandora FMS Community › Forums › Community support › Advanced troubleshooting › Unitialized “EventStormProtect” variable causing spamming of pandora_server.error log
-
Unitialized “EventStormProtect” variable causing spamming of pandora_server.error log
Posted by xyros on March 15, 2019 at 07:36The /var/log/pandora/pandora_server.error log file is being spammed with the following two error message, at a rate of about one message per second:
Argument “” isn’t numeric in numeric eq (==) at /usr/lib/perl5/PandoraFMS/Core.pm line 363.
Argument “” isn’t numeric in numeric eq (==) at /usr/lib/perl5/PandoraFMS/Core.pm line 4259.It is mostly the first error message that appears in the logs.
Those line numbers refer to the following line of code:
if ($EventStormProtection == 1) {The line appears to relate to the “Event Storm protection” setting under Configuration->General.  I have never set nor changed that setting from it’s default disabled state. Nor should I have to, if I don’t need the functionality.  I suspect that, because of this, the “EventStormProtection” variable has a null value.
Hope this is enough information for fixing this issue.
Thanks
Currently running: Pandora FMS 7.0NG.732-1 on CentOS
xyros replied 5 years, 10 months ago 2 Members · 6 Replies -
6 Replies
-
::
The /var/log/pandora/pandora_server.error log file is being spammed with the following two error message, at a rate of about one message per second:
Argument “” isn’t numeric in numeric eq (==) at /usr/lib/perl5/PandoraFMS/Core.pm line 363.
Argument “” isn’t numeric in numeric eq (==) at /usr/lib/perl5/PandoraFMS/Core.pm line 4259.It is mostly the first error message that appears in the logs.
Those line numbers refer to the following line of code:
if ($EventStormProtection == 1) {The line appears to relate to the “Event Storm protection” setting under Configuration->General.  I have never set nor changed that setting from it’s default disabled state. Nor should I have to, if I don’t need the functionality.  I suspect that, because of this, the “EventStormProtection” variable has a null value.
Hope this is enough information for fixing this issue.
Thanks
Currently running: Pandora FMS 7.0NG.732-1 on CentOS
Greetings, xyros
If you enable Event Storm Protection it will prevent that flooding of events. However, it appears to be some kind of problem with the verbosity configuration in pandora_server.conf, its value might be too high.Â
Could you please send us the configuration you have?
Kind regards,Â
Eduardo.
-
-
::
I do not use Event Storm Protection. Â It is not enabled in my configuration. Â The only storm protection I use are the following:
snmp_storm_protection 6
snmp_storm_timeout 900pandora_server.conf coming as PM…
Greetings, xyros
After taking a look at your .conf file, I don’t see anything out of the ordinary. Please do try to enable “Event Storm Protection” in the console configuration, then save the changes and disable it again to initialize the parameter.Â
Please let us know if this takes effect.Â
One quick question, which MR do you have in your installation?
Kind regards,Â
Eduardo.
-
-
::
Enabling and disabling Event Storm Protection actually does not work. Â After disabling it again, the error messages are back
I have MR 12
Greetings, xyros
Pandora is actually running MR 25, please try to update it as it follows:Â
First of all check if you have MR 25 in /var/www/html/pandora_console/extras/mr
Then proceed to enter your database an execute the following commands (please do take extra care doing this, because Pandora’s database is extremely important).
mysql > use pandora; mysql > source /var/www/html/pandora-console/extras/mr/13.sql mysql > source /var/www/html/pandora-console/extras/mr/14.sql mysql > source /var/www/html/pandora-console/extras/mr/15.sql [...] mysql > source /var/www/html/pandora-console/extras/mr/25.sql
Â
Keep doing this until you reach MR 25. DO NOT skip any MR, you’ll have to apply them in order.Â
After this, you’ll have to update the console footer token.Â
mysql > use pandora; mysql > update tconfig set value=25 where token='MR';
Please be extra careful with this step.Â
Let us know how this works.Â
Kind regards,Â
Eduardo.
-