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 ?

Justin


_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to