On 13/7/19 8:13 am, Tom Eastep wrote:
On 7/12/19 10:49 AM, Justin Pryzby wrote:
On Fri, Jul 12, 2019 at 07:31:19PM +0200, Damjan Hajsek wrote:
Hi
I like to know how can I monitor shorewall with monit.
So I like to use monit which check if software runs but shorewall have no
pid file.
Shorewall isn't a resident daemon so there's no process nor PID.
Is there any other file created when shorewall is up?
Creating a file isn't great since the file could exist if it wasn't removed on
boot, maybe if there was some issue and root was readonly and fw wasn't started.
Can't you just take the exit status of iptables -L |grep -m1 Shorewall ?
Or the exit status of 'shorewall status'
If you are on linux and shorewall (and shorewall6) is running as a
systemd service, then systemctl status shorewall(6) can be reasuring and
worth checking occasionally.
Brian
-Tom
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users