Problem with ipfstatusmail

Hi.

I just installed the “ipfstatusmail” as published by TimF in https://github.com/timfprogs/ipfstatusmail and I get this error:

Wasn’t this addon going to be implemented within the IPFire repository? Any ideas?.

Thank you.

1 Like

I have tried reinstalling it and it keeps giving the same error. I forgot to say that I have the Core 149. Maybe it has something to do with it.

Does anyone feel the same?.

Regards.

This appears:

[Fri Sep 18 08:59:51.583275 2020] [mpm_event:notice] [pid 14995:tid 138155738076096] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1g configured -- resuming normal operations
[Fri Sep 18 08:59:51.583815 2020] [core:notice] [pid 14995:tid 138155738076096] AH00094: Command line: '/usr/sbin/httpd'
[Fri Sep 18 09:07:59.560188 2020] [mpm_event:notice] [pid 14995:tid 138155738076096] AH00493: SIGUSR1 received.  Doing graceful restart
[Fri Sep 18 09:07:59.623864 2020] [mpm_event:notice] [pid 14995:tid 138155738076096] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1g configured -- resuming normal operations
[Fri Sep 18 09:07:59.623932 2020] [core:notice] [pid 14995:tid 138155738076096] AH00094: Command line: '/usr/sbin/httpd'
[Fri Sep 18 09:14:50.848621 2020] [mpm_event:notice] [pid 14995:tid 138155738076096] AH00491: caught SIGTERM, shutting down
[Fri Sep 18 09:50:40.090715 2020] [mpm_event:notice] [pid 15936:tid 135143035950016] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1g configured -- resuming normal operations
[Fri Sep 18 09:50:40.092106 2020] [core:notice] [pid 15936:tid 135143035950016] AH00094: Command line: '/usr/sbin/httpd'
gpg: keyring `/var/ipfire/statusmail/keys/pubring.gpg' created
gpg: /var/ipfire/statusmail/keys/trustdb.gpg: trustdb created
gpg: keyring `/var/ipfire/statusmail/keys/secring.gpg' created
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:09:33.095235 2020] [cgid:error] [pid 15939:tid 135142219707968] [client 80.39.18.114:49984] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:09:38.764366 2020] [cgid:error] [pid 15939:tid 135142874011200] [client 80.39.18.114:50009] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:09:49.518400 2020] [cgid:error] [pid 15939:tid 135143022192192] [client 80.39.18.114:50010] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:10:13.306555 2020] [cgid:error] [pid 15939:tid 135142997014080] [client 80.39.18.114:50013] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:11:11.870162 2020] [cgid:error] [pid 15939:tid 135142865618496] [client 80.39.18.114:50015] End of script output before headers: statusmail.cgi
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:13:20.414330 2020] [cgid:error] [pid 15939:tid 135142874011200] [client 80.39.18.114:50028] End of script output before headers: statusmail.cgi
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:13:35.078602 2020] [cgid:error] [pid 15939:tid 135142857225792] [client 80.39.18.114:50030] End of script output before headers: statusmail.cgi
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:13:50.120791 2020] [cgid:error] [pid 15939:tid 135143005406784] [client 80.39.18.114:50031] End of script output before headers: statusmail.cgi
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:14:11.140797 2020] [cgid:error] [pid 15939:tid 135142840440384] [client 80.39.18.114:50032] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 17:23:43.584993 2020] [cgid:error] [pid 15939:tid 135142857225792] [client 80.39.18.114:50152] End of script output before headers: statusmail.cgi
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 18:06:49.383451 2020] [cgid:error] [pid 15939:tid 135143022192192] [client 80.39.18.114:51380] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 18:16:40.783497 2020] [cgid:error] [pid 15939:tid 135143005406784] [client 80.39.18.114:51416] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 18:16:48.594753 2020] [cgid:error] [pid 15939:tid 135142848833088] [client 80.39.18.114:51417] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/
gpg: keyring `/var/ipfire/statusmail/keys/pubring.gpg' created
gpg: /var/ipfire/statusmail/keys/trustdb.gpg: trustdb created
gpg: keyring `/var/ipfire/statusmail/keys/secring.gpg' created
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 18:23:52.646366 2020] [cgid:error] [pid 15939:tid 135142971835968] [client 80.39.18.114:51476] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 18:31:42.731824 2020] [cgid:error] [pid 15939:tid 135142848833088] [client 80.39.18.114:51518] End of script output before headers: statusmail.cgi
gpg: WARNING: nothing exported
Can't locate /var/ipfire/geoip-functions.pl at /usr/lib/statusmail/plugins/network_firewall.pm line 34.
Compilation failed in require at /srv/web/ipfire/cgi-bin/statusmail.cgi line 160.
[Fri Sep 18 18:31:47.595015 2020] [cgid:error] [pid 15939:tid 135143013799488] [client 80.39.18.114:51520] End of script output before headers: statusmail.cgi, referer: https://81.45.42.225:444/

Solved!!!.

Put a “#” in line 34 of file “/usr/lib/statusmail/plugins/network_firewall.pm” and its work fine.

Regards.

The errors follow:

(6) Starting log and status email processing
(7) Initialising plugin system_kernel.pm
(7) Initialising plugin services_intrusion_prevention_system.pm
(7) Initialising plugin system_status_services.pm
(7) Initialising plugin services_blocklist_update.pm
(7) Initialising plugin network_firewall.pm
(7) Initialising plugin services_urlfilter.pm
(7) Initialising plugin graphs.pm
(7) Initialising plugin services_ids_update.pm
(7) Initialising plugin services_clamav.pm
Use of uninitialized value $params{"item"} in hash element at /usr/local/bin/statusmail.pl line 361.
(7) Initialising plugin system_status_ps.pm
(7) Initialising plugin system_ssh.pm
(7) Initialising plugin hardware_media_space.pm
(7) Initialising plugin system_pakfire.pm
(7) Initialising plugin services-ups-apc.pm
(6) Executing status mail schedule Test
Undefined subroutine &GeoIP::lookup called at /usr/lib/statusmail/plugins/network_firewall.pm line 127, <__ANONIO__> line 35.

Maybe this is wrong:

my $country = GeoIP::lookup( $src_addrs ) || $src_addrs;

For the change of GeoIP.

Apparently the network_firewall.pm file is not adapted for the GeoIP update.

How should it be?

Regards.

Hi Roberto,
You need to contact TimF about adapting ipfstatusmail to the latest changes in IPFire.

That’s one of the risks of installing addons in that way rather than getting them integrated into IPFire, together with the security risk as you have to trust that the package is secure or need to comb through the source code yourself.
That’s why the IPFire team do not recommend installing addons from other sources.

After ipfstatusmail has been updated TimF should put a patch together and submit it to the IPFire development mailing list for consideration.
This was recently done by Marcel Follert with socat, a command line tool for communicating with unix sockets and that addon is now in Core Update 149.