Filters : Help ! uninitialized value in substitution
Filters : Help ! uninitialized value in substitution
Hello all and a big thanx for your work,
I just installed my zoneminder and I get lots of trouble while trying to run filters and email notification.
Here are the errors :
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 906.
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/zmfilter.pl line 708.
Sending notification email ''
Can't send email: can't build entity: no body, and not multipart
Is there a way to fix it ?
I just installed my zoneminder and I get lots of trouble while trying to run filters and email notification.
Here are the errors :
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line 906.
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/zmfilter.pl line 708.
Sending notification email ''
Can't send email: can't build entity: no body, and not multipart
Is there a way to fix it ?
Hi all,
I have the same problem ...
Is there anybody there to help us !!
Regards,
Oliver
________
Model T Engine
I have the same problem ...
Is there anybody there to help us !!
Regards,
Oliver
________
Model T Engine
Last edited by RedFlyer on Mon Feb 14, 2011 5:17 am, edited 1 time in total.
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
Thanks Jamesjameswilson wrote:i use email fine but i am on te live cd. sounds like a config error when it was built but beyond me sorry
James
Yes i'm working wiith a build 1.21.3 version under CENTOS 4.1
After solving PERL module issue (Installing the required module) still got errors in zmfilter.log
________
Colorado marijuana dispensary
Last edited by RedFlyer on Mon Feb 14, 2011 5:17 am, edited 1 time in total.
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
Yesjameswilson wrote:you still getting the same error as on 1st post
________
NEW JERSEY MARIJUANA DISPENSARIES
Last edited by RedFlyer on Mon Feb 14, 2011 5:17 am, edited 1 time in total.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Hi Phil,zoneminder wrote:A couple of things.
1) Have to set the email config up in Options->Email?
2) Which version are you running? The errors in the first post on this thread don't correspond to culpable lines on my setup for 1.21.3.
Phil
1) Yes i have set the email config in Options
2) I'm running version 1.21.3 on a CENTOS 4.1 distro (the first post as you know come from 1.19.x forum, but the problem was similar, that's why i've posted there)
Here is a copy of zmfliter.log
Code: Select all
09/07/2005 02:54:48.828267 zmfilter[3784].INF [Creating notification email]
Use of uninitialized value in pattern match (m//) at /usr/local/bin/zmfilter.pl line994.
Use of uninitialized value in pattern match (m//) at /usr/local/bin/zmfilter.pl line1009.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1034.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1035.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1036.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1037.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1038.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1039.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1039.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1040.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1041.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1042.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1043.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1044.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1045.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1046.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1047.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1048.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1049.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1050.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1051.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1052.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1053.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1054.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1055.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1056.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1085.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1087.
Use of uninitialized value in pattern match (m//) at /usr/local/bin/zmfilter.pl line994.
Use of uninitialized value in pattern match (m//) at /usr/local/bin/zmfilter.pl line1009.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1034.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1035.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1036.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1037.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1038.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1039.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1040.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1041.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1042.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1043.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1044.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1045.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1046.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1047.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1048.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1049.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1050.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1051.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1052.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1053.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1054.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1055.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1056.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1074.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1085.
Use of uninitialized value in substitution (s///) at /usr/local/bin/zmfilter.pl line1087.
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/zmfilter.pl line 826.
09/07/2005 02:54:48.829048 zmfilter[3784].INF [Sending notification email '']
Use of uninitialized value in pattern match (m//) at /usr/local/bin/zmfilter.pl line860.
Can't send email: can't build entity: no body, and not multipart
Best regard,
Oliver
________
OMEGA
Last edited by RedFlyer on Mon Feb 14, 2011 5:17 am, edited 1 time in total.
Okay,
Now that helps some
First error on line 994
Line 1009
Line 1034 to 1056
after my $url = ZM_URL;
I think you may need a perl module.
Check and make sure you have these installed.
MIME::Lite
Net::SMTP
or
MIME::Entity
and also these
Time::HiRes
Date::Manip
Data::Dumper
Getopt::Long
Oh, buy the way don't forget to set a time restriction in your filters for mailing. I have months of video stored and while testing for your issue did just a simple two line filter. ZM has a boolen value in its database so it knows if it sent an event or not but you should set a time restriction like say the last half hour or you might end up with a thousand emails while ZM trys to comply with your filter
Regards,
Cordel
Now that helps some
First error on line 994
Code: Select all
my $need_monitor = $text =~ /%(?:MET|MEH|MED|MEW|MEN|MEA)%/;
Code: Select all
my $need_images = $text =~ /%(?:EPI1|EPIM|EI1|EIM)%/;
after my $url = ZM_URL;
Code: Select all
$text =~ s/%ZP%/$url/g;
$text =~ s/%MN%/$event->{MonitorName}/g;
$text =~ s/%MET%/$monitor->{EventCount}/g;
$text =~ s/%MEH%/$monitor->{HourEventCount}/g;
$text =~ s/%MED%/$monitor->{DayEventCount}/g;
$text =~ s/%MEW%/$monitor->{WeekEventCount}/g;
$text =~ s/%MEM%/$monitor->{MonthEventCount}/g;
$text =~ s/%MEA%/$monitor->{ArchEventCount}/g;
$text =~ s/%MP%/$url?view=watch&mid=$event->{MonitorId}/g;
$text =~ s/%MPS%/$url?view=watchfeed&mid=$event->{MonitorId}&mode=stream/g;
$text =~ s/%MPI%/$url?view=watchfeed&mid=$event->{MonitorId}&mode=still/g;
$text =~ s/%EP%/$url?view=event&mid=$event->{MonitorId}&eid=$event->{Id}/g;
$text =~ s/%EPS%/$url?view=event&mode=stream&mid=$event->{MonitorId}&eid=$event->{Id}/g;
$text =~ s/%EPI%/$url?view=event&mode=still&mid=$event->{MonitorId}&eid=$event->{Id}/g;
$text =~ s/%EI%/$event->{Id}/g;
$text =~ s/%EN%/$event->{Name}/g;
$text =~ s/%ET%/$event->{StartTime}/g;
$text =~ s/%ED%/$event->{Length}/g;
$text =~ s/%EF%/$event->{Frames}/g;
$text =~ s/%EFA%/$event->{AlarmFrames}/g;
$text =~ s/%EST%/$event->{TotScore}/g;
$text =~ s/%ESA%/$event->{AvgScore}/g;
$text =~ s/%ESM%/$event->{MaxScore}/g;
Check and make sure you have these installed.
MIME::Lite
Net::SMTP
or
MIME::Entity
and also these
Time::HiRes
Date::Manip
Data::Dumper
Getopt::Long
Oh, buy the way don't forget to set a time restriction in your filters for mailing. I have months of video stored and while testing for your issue did just a simple two line filter. ZM has a boolen value in its database so it knows if it sent an event or not but you should set a time restriction like say the last half hour or you might end up with a thousand emails while ZM trys to comply with your filter
Regards,
Cordel
Hi Corey,cordel wrote: I think you may need a perl module.
Check and make sure you have these installed.
MIME::Lite
Net::SMTP
or
MIME::Entity
and also these
Time::HiRes
Date::Manip
Data::Dumper
Getopt::Long
Oh, buy the way don't forget to set a time restriction in your filters for mailing. I have months of video stored and while testing for your issue did just a simple two line filter. ZM has a boolen value in its database so it knows if it sent an event or not but you should set a time restriction like say the last half hour or you might end up with a thousand emails while ZM trys to comply with your filter
Regards,
Cordel
I already checked that all necessary PERL module are installed.
I just had some doubt about MIME::Lite that seemed not being installed, have (re)installed but I still have the same issue.
While defining more strict filter to avoid tons of mail i got sql syntax errors. On my CENTOS 4.1 distro, i use MySQL 4.1.10a. Does ZM work fine with this version ?
________
Marijuana Strains
Last edited by RedFlyer on Mon Feb 14, 2011 5:17 am, edited 1 time in total.
Corey, Phil,
Could you please give me a way to verify that necessary PERL module are installed, to be sure that i do that the right way. As said before, i use CENTOS 4.1 (based on RHEL4)
Best regards,
Oliver
________
MFLB VAPORIZER
Could you please give me a way to verify that necessary PERL module are installed, to be sure that i do that the right way. As said before, i use CENTOS 4.1 (based on RHEL4)
Best regards,
Oliver
________
MFLB VAPORIZER
Last edited by RedFlyer on Mon Feb 14, 2011 5:17 am, edited 1 time in total.
Hi Oliver,
I had put a list of requirements in the Hints and Tips topic.
http://www.zoneminder.com/forums/viewtopic.php?p=9614
This should be fairly compleate.
Regards,
Cordel
I had put a list of requirements in the Hints and Tips topic.
http://www.zoneminder.com/forums/viewtopic.php?p=9614
This should be fairly compleate.
Regards,
Cordel
Hi Corey,cordel wrote:Hi Oliver,
I had put a list of requirements in the Hints and Tips topic.
http://www.zoneminder.com/forums/viewtopic.php?p=9614
This should be fairly compleate.
Regards,
Cordel
I've seen that, but my question was, how to verify that these modules are installed in my system. To be sure that i'm doing that the right way.
Regards,
Oliver
________
OG KUSH SEEDS
Last edited by RedFlyer on Mon Feb 14, 2011 5:17 am, edited 1 time in total.
There are several ways do find out.
yum list *perl*
This will show you all RPMs installed and whats not installed but if you used CPAN those will not show up in the list.
I run CentOS release 3.5 and I know that all the required modules were not part of the base, updates, or extras repositories and I had to package them my self then install them (I try to stay consistant so everything is packed to install).
You could also do a locate or find *.pm and look to see if they are installed but you will need to referance perl.org to see what the modules represent.
The modules missing in 3.5 which the mail script needs are:
MIME::Lite
Net::SMTP
or
MIME::Entity
and
Data::Dumper
Getopt::Long
You should be able to see the errors for the moduals in the zm logs.
Regards,
Cordel
yum list *perl*
This will show you all RPMs installed and whats not installed but if you used CPAN those will not show up in the list.
I run CentOS release 3.5 and I know that all the required modules were not part of the base, updates, or extras repositories and I had to package them my self then install them (I try to stay consistant so everything is packed to install).
You could also do a locate or find *.pm and look to see if they are installed but you will need to referance perl.org to see what the modules represent.
The modules missing in 3.5 which the mail script needs are:
MIME::Lite
Net::SMTP
or
MIME::Entity
and
Data::Dumper
Getopt::Long
You should be able to see the errors for the moduals in the zm logs.
Regards,
Cordel