Hi.
I have detected a problem with the StatusMAIL Addon. I will explain it.
On some IPFires, not all, if the “Intrusion Prevention System - Alerts” option is checked, the process is blocked and no mail is sent. The only solution is to uncheck this option to make it work. Logically, it does not add this section to the report.
Some screenshots:
Statusmail goes to 100%. You have to kill the process.
[root@bs /]# /usr/local/bin/statusmail Test
(6) Starting log and status email processing
(7) Initialising plugin system_status_ps.pm
(7) Initialising plugin services_mail.pm
(7) Initialising plugin services_ups_apc.pm
(7) Initialising plugin services_intrusion_prevention_system.pm
(7) Initialising plugin system_ssh.pm
(7) Initialising plugin network_firewall.pm
(7) Initialising plugin hardware_media_space.pm
(7) Initialising plugin system_status_services.pm
(7) Initialising plugin system_internet.pm
(7) Initialising plugin services_clamav.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 services_ids_update.pm
(7) Initialising plugin graphs.pm
(7) Initialising plugin system_kernel.pm
(7) Initialising plugin services_urlfilter.pm
(7) Initialising plugin system_pakfire.pm
(6) Executing status mail schedule Test
(7) Process item Graph :: Hardware Graphs :: Load Graph
(process:7030): Pango-WARNING **: error opening config file '/root/.config/pango/pangorc': Permission denied
(7) Process item Graph :: Network :: firewallhits
(process:7031): Pango-WARNING **: error opening config file '/root/.config/pango/pangorc': Permission denied
(7) Process item Graph :: Network :: tun0
(process:7037): Pango-WARNING **: error opening config file '/root/.config/pango/pangorc': Permission denied
(7) Process item Graph :: System :: CPU Graph
(process:7038): Pango-WARNING **: error opening config file '/root/.config/pango/pangorc': Permission denied
(7) Process item Network :: Firewall :: Country - green0
(7) Process item Network :: Firewall :: Country - red0
(7) Process item Network :: Firewall :: IP address - green0
(7) Process item Network :: Firewall :: IP address - red0
(7) Process item Network :: Firewall :: Port - green0
(7) Process item Network :: Firewall :: Port - red0
(7) Process item Network :: Firewall :: Reason - green0
(7) Process item Network :: Firewall :: Reason - red0
(7) Process item Services :: Intrusion Prevention System :: Alerts
He stays at this point for hours and hours. You have to stop the process with Ctrl + C.
[root@bs statusmail]# ./test_plugin.pl plugins/services_intrusion_prevention_system.pm
Select Message format from the following options: html, text: html
Select Period covered by report from the following options: hours, days, weeks, months: weeks
Select weeks covered by report (1..365):1
Select Maximum lines per item (1..1000):10
Add item Servicios : Sistema de Detección de Intrusiones : Alerts ?
Select Prioridad minima (1..4):4
You launch this process and the same thing happens, it does not give any error but it stays here fried.
In “/var/log/httpd/error_log” appears this:
Use of uninitialized value $params{"subsection"} in hash element at /usr/local/bin/statusmail line 382.
TimF @timf , what data do you need to see the problem?.
BR.