[Résolu moi-même][NOT RESOLVABLE-RESOLUTION FAILURE] Mailtrail doesn't work

Started by Darkopnsense, January 21, 2020, 03:36:57 PM

Previous topic - Next topic
Hello,

In general I have the message:
Updates in this section need also a restart via sensor or server menu.

As Maltrail doesn't work and I can't find the way,

I would like to know what its path is in console mode.
I am looking for the installation directory of SENSOR and SERVER to start it in manual.


Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Hello,

I found

/usr/local/share/maltrail/maltrail.conf

but the following commands do not work,

python sensor.py
python server.py

what is the PYTHON instruction under freebsd & opnsence ?

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

You need to append the version like for example python2.7

Thank you
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Hello,

After entering the correct synthax in console mode, I do not know why MALTRAIL still does not work.

It always shows me in maltrail / general: "Updates to this section also require a restart via the Sensor or Server menu."

Although in dashboard / services / maltrailderver is activated, also in console mode (Sensor & server = running).

But I am nothing by consulting the port 8338 on my local ip.

It worked for several weeks, but now maltrail does not activate on my configurations, I would like to know who or who is blocking this plugin from me.

I only monitor the wan.

Would there be an activity log to consult and where?

An idea ?

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

This is just a info which stays forever so you know that when you change something in general you also have to save in server/sensor to make them active.

thank you,

I don't understand the meaning of your answer, maybe translation problem.

After modification, what to do in server / sensor?

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

sensor asks me to install 'schedtool'

I don't know where to find the version for freebsd.

If you can give me an "http" link to deploy it with wget

Thank you.

Looking forward to hearing from you,

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Quote from: Darkopnsense on January 22, 2020, 10:37:49 AM
thank you,

I don't understand the meaning of your answer, maybe translation problem.

After modification, what to do in server / sensor?

Regards,

Just hit "Save" :)

Thank you for the answer.

It's a good joke.

Of course, I am going first in the submenus of MALTRAIL (general, sensor, server) to save and see if it changes anything.

So this is not the right track.

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

I have a reflection.

The following plugins are functional:
etpro-telemetry is in python3.7
sensei is in python3.7

While the malfunctioning plugin does not work on a module:
pcapy is in python2.7

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Maybe at first check if the port is really listening, via CLI:

sockstat -4 | grep 8338

Thank you for the answer.

Here is the return of the order:

root@Pare-Feu:/ # sockstat -4 | grep 8338
root     python2.7  52758 3  tcp4   192.168.66.66:8338    *:*

This does not speak to me, I do not know how to interpret the result.

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

From a purely technical perspective, Python 2.7 and 3.7 do neatly coexist so we need a relevant error or health audit issue to assume it does not.


Cheers,
Franco

Quote from: Darkopnsense on January 22, 2020, 11:28:10 PM
Thank you for the answer.

Here is the return of the order:

root@Pare-Feu:/ # sockstat -4 | grep 8338
root     python2.7  52758 3  tcp4   192.168.66.66:8338    *:*

This does not speak to me, I do not know how to interpret the result.

Regards,

So the server is running on port 8338. What happens when you surf to this IP with http (not https)?
Do you get an error? Blocked packet?