Hello folks :)
I got a machine to look at, so I've issued a 'systemctl status' and see a 'degraded' state.
so I've done a 'systemctl status --failed' and see that 'fwlogwatch.service' was never started and shows 'exit code' as reasons...
looking at the logs it appears it has never started fine since debian 12 install on this machine...
On Wed, Nov 20, 2024 at 01:19:24PM +0100, Jean-François Bachelet wrote:
Hello folks :)Guessing by the package description, fwlogwatch just collects diverse firewall logs and (optionally) may take actions. Moreover, the description encourages the guess that you might try starting it manually, to see
I got a machine to look at, so I've issued a 'systemctl status' and see a
'degraded' state.
so I've done a 'systemctl status --failed' and see that 'fwlogwatch.service' >> was never started and shows 'exit code' as reasons...
looking at the logs it appears it has never started fine since debian 12
install on this machine...
what kind of complaints it has?
It seems to have a man page.
fwlogwatch.service - Firewall log analyzer
    Loaded: loaded (/lib/systemd/system/fwlogwatch.service; enabled; preset: enabled)
    Active: failed (Result: exit-code) since Wed 2024-11-20 17:02:18 CET; 1min 27s ago
      Docs: man:fwlogwatch
   Process: 294164 ExecStart=/bin/sh -c if [ "x${START_DAEMON}" != "xtrue" ]; then echo "aborted"; exit 1; fi;   exec
/usr/sbin/fwlogwatch -c /etc/fwlogwatch/fwlogwatch.config -R ${PARAMS} (code=exited, status=1/FAILURE)
       CPU: 16ms
nov. 20 17:02:18 deb systemd[1]: Starting fwlogwatch.service -
Firewall log analyzer...
nov. 20 17:02:18 deb sh[294164]: aborted
nov. 20 17:02:18 deb systemd[1]: fwlogwatch.service: Control process
exited, code=exited, status=1/FAILURE
nov. 20 17:02:18 deb systemd[1]: fwlogwatch.service: Failed with
result 'exit-code'.
nov. 20 17:02:18 deb systemd[1]: Failed to start fwlogwatch.service - Firewall log analyzer.
░░ L'unité (unit) fwlogwatch.service a échoué, avec le résultat failed.
nov. 20 17:02:18 voxdeb systemd[1]: Starting fwlogwatch.service -
Firewall log analyzer...
░░ Subject: L'unité (unit) fwlogwatch.service a commencé à démarrer ░░ Defined-By: systemd
â–‘â–‘ Support: https://www.debian.org/support
â–‘â–‘
░░ L'unité (unit) fwlogwatch.service a commencé à démarrer.
nov. 20 17:02:18 voxdeb sh[294164]: aborted
nov. 20 17:02:18 voxdeb systemd[1]: fwlogwatch.service: Control
process exited, code=exited, status=1/FAILURE
â–‘â–‘ Subject: Unit process exited
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: https://www.debian.org/support
â–‘â–‘
â–‘â–‘ An ExecStart= process belonging to unit fwlogwatch.service has exited. â–‘â–‘
â–‘â–‘ The process' exit code is 'exited' and its exit status is 1.
nov. 20 17:02:18 voxdeb systemd[1]: fwlogwatch.service: Failed with
result 'exit-code'.
â–‘â–‘ Subject: Unit failed
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: https://www.debian.org/support
â–‘â–‘
â–‘â–‘ The unit fwlogwatch.service has entered the 'failed' state with
result 'exit-code'.
nov. 20 17:02:18 voxdeb systemd[1]: Failed to start fwlogwatch.service
- Firewall log analyzer.
░░ Subject: L'unité (unit) fwlogwatch.service a échoué
â–‘â–‘ Defined-By: systemd
â–‘â–‘ Support: https://www.debian.org/support
â–‘â–‘
░░ L'unité (unit) fwlogwatch.service a échoué, avec le résultat failed.
Hello Tomas :)
Le 20/11/2024 à 13:38, tomas@tuxteam.de a écrit :
On Wed, Nov 20, 2024 at 01:19:24PM +0100, Jean-François Bachelet wrote:
Hello folks :)
I got a machine to look at, so I've issued a 'systemctl status' and see a 'degraded' state.
so I've done a 'systemctl status --failed' and see that 'fwlogwatch.service'
was never started and shows 'exit code' as reasons...
looking at the logs it appears it has never started fine since debian 12 install on this machine...Guessing by the package description, fwlogwatch just collects diverse firewall logs and (optionally) may take actions. Moreover, the description encourages the guess that you might try starting it manually, to see
what kind of complaints it has?
it is started by systemd at boot but crash.
I've tested starting it manualy with 'systemctl start fwlogwatch' but or reboot after disabling ufw, but no changes.
it seems to be installed by default, but if it not work what's the point ?
:/
It seems to have a man page.
checked it, nothing special in it, the only thing turned on is the 'fwlogwatch.pid' file that must be found by systemd in /run...
after check that file hasn't be created at installation time...
so I've 'touched' it ;)
and tried again a start... crash but some more infos now :
'systemctl start fwlogwatch.service' (root mode ;))
failed with exit code...
'systemctl status fwlogwatch.service' :
fwlogwatch.service - Firewall log analyzer
    Loaded: loaded (/lib/systemd/system/fwlogwatch.service; enabled; preset: enabled)
    Active: failed (Result: exit-code) since Wed 2024-11-20 17:02:18 CET; 1min 27s ago
      Docs: man:fwlogwatch
   Process: 294164 ExecStart=/bin/sh -c if [ "x${START_DAEMON}" != "xtrue" ]; then echo "aborted"; exit 1; fi;   exec /usr/sbin/fwlogwatch -c /etc/fwlogwatch/fwlogwatch.config -R ${PARAMS} (code=exited, status=1/FAILURE)
       CPU: 16ms
'systemctl status fwlogwatch.service' :
fwlogwatch.service - Firewall log analyzer
    Loaded: loaded (/lib/systemd/system/fwlogwatch.service;
enabled; preset: enabled)
    Active: failed (Result: exit-code) since Wed 2024-11-20
17:02:18 CET; 1min 27s ago
      Docs: man:fwlogwatch
   Process: 294164 ExecStart=/bin/sh -c if [ "x${START_DAEMON}" != >>"xtrue" ]; then echo "aborted"; exit 1; fi;   exec >>/usr/sbin/fwlogwatch -c /etc/fwlogwatch/fwlogwatch.config -R
${PARAMS} (code=exited, status=1/FAILURE)
       CPU: 16ms
nov. 20 17:02:18 deb systemd[1]: Starting fwlogwatch.service -
Firewall log analyzer...
nov. 20 17:02:18 deb sh[294164]: aborted
nov. 20 17:02:18 deb systemd[1]: fwlogwatch.service: Control process >>exited, code=exited, status=1/FAILURE
nov. 20 17:02:18 deb systemd[1]: fwlogwatch.service: Failed with
result 'exit-code'.
nov. 20 17:02:18 deb systemd[1]: Failed to start fwlogwatch.service
- Firewall log analyzer.
On Wed, Nov 20, 2024 at 05:35:58PM +0100, Jean-François Bachelet wrote: [cut]there is no such stuff in the confs...
I might be reading this wrong, but the "ExecStart" command is a shell
'systemctl status fwlogwatch.service' :
fwlogwatch.service - Firewall log analyzer
    Loaded: loaded (/lib/systemd/system/fwlogwatch.service; enabled; >>> preset: enabled)
    Active: failed (Result: exit-code) since Wed 2024-11-20 17:02:18 >>> CET; 1min 27s ago
      Docs: man:fwlogwatch
   Process: 294164 ExecStart=/bin/sh -c if [ "x${START_DAEMON}" !=
"xtrue" ]; then echo "aborted"; exit 1; fi;Â Â Â exec /usr/sbin/
fwlogwatch -c /etc/fwlogwatch/fwlogwatch.config -R ${PARAMS}
(code=exited, status=1/FAILURE)
       CPU: 16ms
nov. 20 17:02:18 deb systemd[1]: Starting fwlogwatch.service -
Firewall log analyzer...
nov. 20 17:02:18 deb sh[294164]: aborted
nov. 20 17:02:18 deb systemd[1]: fwlogwatch.service: Control process
exited, code=exited, status=1/FAILURE
nov. 20 17:02:18 deb systemd[1]: fwlogwatch.service: Failed with
result 'exit-code'.
nov. 20 17:02:18 deb systemd[1]: Failed to start fwlogwatch.service -
Firewall log analyzer.
script which basically says "if the $START_DAEMON variable does not
equal 'true', then echo 'aborted' and stop". Given you get sh printing
the word 'aborted', I think you're reading that branch.
Did you set "START_DAEMON=true" in /etc/default/fwlogwatch or similar?
/etc/cron.daily/fwlogwatch
#!/bin/sh
# fwlogwatch's daily cron job
# Copyright 2001 Alberto Gonzalez Iniesta <agi@agi.as>
# Licensed under the GNU General Public License, version 2. See the file
# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
#
set -e
test $DEBIAN_SCRIPT_DEBUG && set -v -x
FWLOGWATCH=/usr/sbin/fwlogwatch
CONFIG=/etc/default/fwlogwatch
EXTRA_HEADER="Content-Type: text/plain"
test -x $FWLOGWATCH || exit 0
test -r $CONFIG || exit 0
# Source configuration generated from debconf's values
. $CONFIG
if [ "$CRON_EMAIL" = "none" ]; then
exit 0
fi
OUTPUT=`$FWLOGWATCH $CRON_PARAMS`
(echo "$OUTPUT" | grep -q 'No valid time entries found') \
&& exit 0
## Mail results
TMPFILE=`mktemp /tmp/fwlogwatch.XXXXXXXXXX`
#echo "From: " >> $TMPFILE
echo "To: $CRON_EMAIL" >> $TMPFILE
echo "Subject: fwlogwatch daily news" >> $TMPFILE
(echo "$OUTPUT" | grep -q '</html>') \
&& echo "Content-Type: text/html" >> $TMPFILE
echo >> $TMPFILE>
echo "$OUTPUT" >> $TMPFILE
/usr/lib/sendmail -F `id -nu` "$CRON_EMAIL" < $TMPFILE
rm -f $TMPFILE
# vim:set ai et sts=2 sw=2 tw=0:
I might be reading this wrong, but the "ExecStart" command is a shell script >> which basically says "if the $START_DAEMON variable does not equal 'true', >> then echo 'aborted' and stop". Given you get sh printing the word 'aborted', >> I think you're reading that branch.there is no such stuff in the confs...
Did you set "START_DAEMON=true" in /etc/default/fwlogwatch or similar?
here is what the cron daily conf says for it :[..]
as said, /etc/fwlogwatch.config is all commented out except for the pid
file.
On 2024-11-20, Jean-François Bachelet wrote:
I might be reading this wrong, but the "ExecStart" command is a shell scriptthere is no such stuff in the confs...
which basically says "if the $START_DAEMON variable does not equal 'true', >>> then echo 'aborted' and stop". Given you get sh printing the word 'aborted',
I think you're reading that branch.
Did you set "START_DAEMON=true" in /etc/default/fwlogwatch or similar?
I reply to you on debian-user-french yesterday
fwlogwatch.service use /lib/systemd/system/fwlogwatch.service
which use conf file /etc/default/fwlogwatch
and if START_DAEMON is not "true" it does exit 1
So you just need to put in /etc/default/fwlogwatch
START_DAEMON='true'
Did you check the right file /etc/default/fwlogwatch ? What version do
you have ? Provide us :
dpkg -l fwlogwatch
~/Bureau$ dpkg -l fwlogwatch
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Architecture Description +++-==============-============-============-=================================
ii fwlogwatch 1.4-4 amd64 Firewall log analyzer
sorry, mistaping ;) it's in '/etc/fwlogwatch/fwlogwatch.config'here is what the cron daily conf says for it :[..]
as said, /etc/fwlogwatch.config is all commented out except for the pid
file.
I don't know where you find "/etc/fwlogwatch.config"
in this script I found :
CONFIG=/etc/default/fwlogwatch
Hello Michel ^^)[snip]
Le 21/11/2024 à 08:33, Michel Verdier a écrit :
On 2024-11-20, Jean-François Bachelet wrote:
in this script I found :
CONFIG=/etc/default/fwlogwatch
oups, the only place I'vee not checked... you're right it was there at
false, dunno why... changed it for 'true'.
and still crashing...
looking at the 'systemctl --failed' log it appears that it lacks the '/var/log/messages' directory, another thing that has not been created
at installation of fwlogwatch...
IMHO that should be corrected in the installer...
BTW, now its up and running. :) let's see if I get messages from it
^^)
Thanks everyone :)
Jeff
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 166:19:22 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,528 |