Ipfstatusmail is not adapted for new changes

Hi Guys.

Ipfstatusmail is not adapted for new changes of core 148 and Location Block feature. Apparently it was adapted or developed for the Maxmind GeoIP. Now, when disappearing, the Ipfmailstatus no longer works correctly.

It’s a shame.

Is there foresight to implement it in IPFire (I think I was thinking of implementing it in the future)?. It seems to me that it is a very interesting feature.

Regards.

1 Like

Hi,

I’m going to have a look at the necessary changes. I’ve got a newer version running on one of my machines, but I still need to get the location changes sorted.

Unfortunately my to to do list seems to be getting longer and longer, but hopefully I can update the GitHub version with the minimal location changes in the next week or so.

Thank you very much Tim for your effort.

Wasn’t it thought that in the future to implement it as an Addon within IPFire?

See what he said @bonnietwin in another thread:

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.

Do you plan to do it?

Regards.

1 Like

That is the intention, however it takes time for the main developers to review the code, so it’s not going to happen in the short term.

I’ve now pushed a new version to github which works with the new location database. You should be able to install it over the top of the old version.

Good morning @timf.

I found two issues with IPFStatusMail. I tell you.

When I launch task, IPFStatusMail not send any mail. An error in /var/log/httpd/error_log appears:

Use of uninitialized value $params{"subsection"} in hash element at /usr/local/bin/statusmail line 382.

If I force task, apears this:

[root@bs ~]# /usr/local/bin/statusmail Test
(6) Starting log and status email processing
(7) Initialising plugin services_urlfilter.pm
(7) Initialising plugin system_internet.pm
(7) Initialising plugin services_clamav.pm
(7) Initialising plugin services_mail.pm
(7) Initialising plugin services_intrusion_prevention_system.pm
(7) Initialising plugin system_status_ps.pm
(7) Initialising plugin graphs.pm
(7) Initialising plugin system_pakfire.pm
(7) Initialising plugin system_status_services.pm
(7) Initialising plugin services_ipblacklist_update.pm
Use of uninitialized value $params{"subsection"} in hash element at /usr/local/bin/statusmail line 382.
Use of uninitialized value $params{"subsection"} in hash element at /usr/local/bin/statusmail line 382.
Use of uninitialized value $params{"subsection"} in hash element at /usr/local/bin/statusmail line 382.
(7) Initialising plugin network_firewall.pm
(7) Initialising plugin system_ssh.pm
(7) Initialising plugin system_kernel.pm
(7) Initialising plugin services_ids_update.pm
(7) Initialising plugin hardware_media_space.pm
(7) Initialising plugin services_ups_apc.pm
(6) Executing status mail schedule Test
(7) Process item Gráfico :: Gráficas de hardware :: Load Gráfico
(7) Process item Gráfico :: Red :: Hits al Firewall
(7) Process item Gráfico :: Red :: tun0
(7) Process item Gráfico :: Sistema :: CPU Gráfico
(7) Process item Red :: Firewall :: Dirección IP: - blue0
(7) Process item Red :: Firewall :: Dirección IP: - green0
(7) Process item Red :: Firewall :: Dirección IP: - orange0
(7) Process item Red :: Firewall :: Dirección IP: - red0
(7) Process item Red :: Firewall :: País - blue0
(7) Process item Red :: Firewall :: País - green0
(7) Process item Red :: Firewall :: País - orange0
(7) Process item Red :: Firewall :: País - red0
(7) Process item Red :: Firewall :: Puerto - blue0
(7) Process item Red :: Firewall :: Puerto - green0
(7) Process item Red :: Firewall :: Puerto - orange0
(7) Process item Red :: Firewall :: Puerto - red0
(7) Process item Red :: Firewall :: Razón - blue0
(7) Process item Red :: Firewall :: Razón - green0
(7) Process item Red :: Firewall :: Razón - orange0
(7) Process item Red :: Firewall :: Razón - red0
(7) Process item Servicios :: Sistema de Detección de Intrusiones :: Alerts
(7) Process item Servicios :: URL filter :: Cliente
(7) Process item Servicios :: URL filter :: Destino
(6) Send mail message for 'xxxxxxxxxxxx - xxxxxxxx.' to xxxxxxxxxx

I try to reinstall IPFStatusMail but this not resolve the problem.

Other issue is nothing related to the URL Filter appears in the reports.

Thanks.