OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: cmmh on September 29, 2022, 10:27:05 pm

Title: Zenarmor seem to die about every 24 hours
Post by: cmmh on September 29, 2022, 10:27:05 pm
Any tips for debugging/troubleshooting why Zenarmor (and elasticsearch) seem to stop working within 24 hours? 
Title: Re: Zenarmor seem to die about every 24 hours
Post by: enpassant on September 29, 2022, 11:37:36 pm
I had this problem some time back, and I changed my database to MongoDB and it solved the problem outright. If you can test that out, it's worth trying. For some reason, ElasticSeach did not agree with my setup.
Title: Re: Zenarmor seem to die about every 24 hours
Post by: sy on September 30, 2022, 02:49:50 pm
Hi,

Can you share a bug report from the upper right corner of Zenarmor GUI?
Title: Re: Zenarmor seem to die about every 24 hours
Post by: almodovaris on October 15, 2022, 11:25:45 pm
Yup, I had a similar problem, although not exactly every 24 hours. Solution:

cd /usr/local/opnsense/service/conf/actions.d
nano actions_eastpect.conf

There enter:

[start]
command:/usr/home/my_eastpect.sh
parameters:%s
type:script
description:Restarting eastpect
message:Restarting eastpect

Then:

nano /usr/home/my_eastpect.sh

There enter:

#!/bin/sh
service eastpect restart

Then:

chmod +x /usr/home/my_eastpect.sh
service configd restart

Create two cron jobs with Restarting eastpect at two different hours, 12 hours apart in between. Press Apply.