Nrpe[Solved]

Started by jejema2, February 17, 2020, 05:05:28 PM

Previous topic - Next topic
February 17, 2020, 05:05:28 PM Last Edit: February 20, 2020, 10:50:00 AM by jejema2
Hello

Already posted in French section, I try here...

I have a fresh install 20.1 upgraded into 20.1.1
I want to monitor the opnsense via a nagios server.
I installed the os-nrpe package via the WUI and configured it to listen to my nagios server.
All requests fall in a timeout error.
CHECK_NRPE STATE CRITICAL: Socket timeout after 10 seconds.
Nrpe service is up, the commands definition are ok, telnet localhost 5666 ok, but telnet opnsense from nagios server is ko.

Any idea?


the only rule is the allow any/any on LAN side

And do you see anything on the logs? /var/log/nrpe.log?

nothing excepted general logs :

[1581687468] Starting up daemon
[1581687468] Server listening on 127.0.0.1 port 5666.
[1581687468] Listening for connections on port 5666
[1581687468] Allowing connections from: 127.0.0.1,<nagios_server_ip>

Sounds not reachable from outside of OPnsense. You must listen on an interface IP or 0/0

How can I make it reachable from the outside?

What so you use as server address?

Listener address : 127.0.0.1
Allowed hosts : 127.0.0.1 + ip of my nagios server

Listen Address should be your WAN or LAN address, the address you configured at your central nagios

Great, ok is ok now, thank you very much ! ;D