Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
Losing DHCP and maybe more since 23.x
« previous
next »
Print
Pages: [
1
]
Author
Topic: Losing DHCP and maybe more since 23.x (Read 906 times)
neek
Newbie
Posts: 21
Karma: 2
Losing DHCP and maybe more since 23.x
«
on:
May 05, 2023, 07:19:59 am »
I've been running 22.x since it came out and my system has been very stable. I updated to 23.1, and since then, my system will occasionally (maybe every ~2-3 days) stop serving up DHCPv4 addresses to machines on my network. Even if hardcode an address and ping or try to connect to the router, I cannot. I don't really know how to troubleshoot this more, since the only good fix I've found is to reboot the box. My questions:
1. Any good way to look at the logs from before the previous shutdown?
2. I've seen monit, but I haven't figured out how to use it to make sure that e.g. DHCP is up and running, or other core services
3. I've read through a bit of the forum and I haven't seen others with similar trouble. What should I do to help narrow this down so I can file a formal bug report, if that is indeed what this is?
thanks!
Logged
FullyBorked
Sr. Member
Posts: 343
Karma: 24
Re: Losing DHCP and maybe more since 23.x
«
Reply #1 on:
May 05, 2023, 08:43:25 pm »
You can monitor the DHCP service with monit by doing the following:
Monit > Service Settings > Click +
Name
- DHCP_Process
Type
- "Process"
PID File
- /var/dhcpd/var/run/dhcpd.pid
Description
- Verify DHCP Service Is running.
Test
- Does not exist
Save
Apply
Then setup notifications if you'd like. More detail on monit can be found here
https://mmonit.com/monit/documentation/monit.html#Process
Edit: To add, best way
(I've found)
to determine the path to the PID file is by running the following in the CLI.
Code:
[Select]
ps -ax | grep <process name>
«
Last Edit: May 06, 2023, 02:14:20 am by FullyBorked
»
Logged
neek
Newbie
Posts: 21
Karma: 2
Re: Losing DHCP and maybe more since 23.x
«
Reply #2 on:
May 06, 2023, 05:17:49 am »
Thanks very much. Is there a way to auto-restart using either monit or some other service? In pfSense I used to use a watchdog to do that.
Still not sure why I'm losing connectivity, though knowing I've lost it is interesting.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.1 Legacy Series
»
Losing DHCP and maybe more since 23.x