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' -Tom -- Tom Eastep \ Q: What do you get when you cross a mobster with Shoreline, \ an international standard? Washington, USA \ A: Someone who makes you an offer you can't http://shorewall.org \ understand \_______________________________________________
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users