Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Nrpe[Solved]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Nrpe[Solved] (Read 4176 times)
jejema2
Newbie
Posts: 8
Karma: 0
Nrpe[Solved]
«
on:
February 17, 2020, 05:05:28 pm »
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?
«
Last Edit: February 20, 2020, 10:50:00 am by jejema2
»
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Nrpe
«
Reply #1 on:
February 17, 2020, 05:50:17 pm »
Firewall rule for port 5666?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
jejema2
Newbie
Posts: 8
Karma: 0
Re: Nrpe
«
Reply #2 on:
February 18, 2020, 04:14:33 pm »
the only rule is the allow any/any on LAN side
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Nrpe
«
Reply #3 on:
February 18, 2020, 04:33:32 pm »
And do you see anything on the logs? /var/log/nrpe.log?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
jejema2
Newbie
Posts: 8
Karma: 0
Re: Nrpe
«
Reply #4 on:
February 18, 2020, 05:16:30 pm »
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>
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Nrpe
«
Reply #5 on:
February 18, 2020, 05:25:44 pm »
Sounds not reachable from outside of OPnsense. You must listen on an interface IP or 0/0
Logged
jejema2
Newbie
Posts: 8
Karma: 0
Re: Nrpe
«
Reply #6 on:
February 19, 2020, 11:25:31 am »
How can I make it reachable from the outside?
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Nrpe
«
Reply #7 on:
February 19, 2020, 04:05:10 pm »
What so you use as server address?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
jejema2
Newbie
Posts: 8
Karma: 0
Re: Nrpe
«
Reply #8 on:
February 19, 2020, 04:27:49 pm »
Listener address : 127.0.0.1
Allowed hosts : 127.0.0.1 + ip of my nagios server
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Nrpe
«
Reply #9 on:
February 19, 2020, 08:56:06 pm »
Listen Address should be your WAN or LAN address, the address you configured at your central nagios
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
jejema2
Newbie
Posts: 8
Karma: 0
Re: Nrpe
«
Reply #10 on:
February 20, 2020, 10:49:48 am »
Great, ok is ok now, thank you very much !
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Nrpe[Solved]