Jail monitoring or alerts?

Michael Hanna

Dabbler
Joined
Jun 17, 2017
Messages
43
I've been using freenas for about 6 months or so now and just recently started using jails... actually just before the 11.2 Release was announced. Once I updated to 11.2 I recreated my jail in the new interface and removed my old jail using the legacy GUI. My jail consists of Sonarr, Radarr, and Sabnzbd. Yesterday I experience my first issue with a jail where it seems to have just stopped. Logged into the freenas server and started it again and everything seems to be working fine but this led me to start looking for a way to monitor running jails and maybe throw an alert/email if it stops responding or changes states. In my browsing of the forums I can't seem to find anything built into freenas to accomplish this so I thought I would ask to see if anything like this might exist and I'm just missing it.
 

samuel-emrys

Contributor
Joined
Dec 14, 2018
Messages
136
I've been using freenas for about 6 months or so now and just recently started using jails... actually just before the 11.2 Release was announced. Once I updated to 11.2 I recreated my jail in the new interface and removed my old jail using the legacy GUI. My jail consists of Sonarr, Radarr, and Sabnzbd. Yesterday I experience my first issue with a jail where it seems to have just stopped. Logged into the freenas server and started it again and everything seems to be working fine but this led me to start looking for a way to monitor running jails and maybe throw an alert/email if it stops responding or changes states. In my browsing of the forums I can't seem to find anything built into freenas to accomplish this so I thought I would ask to see if anything like this might exist and I'm just missing it.

Not aware of anything off the top of my head, but a quick search yielded a few threads, which might give you some direction: [1] [2] [3]

Most of these seem to focus on restarting a stopped service rather than providing notification, though perhaps that will be useful for you:
Some appear to be deprecated or unmaintained, so do some research before choosing what's right for you. Note (if you're unaware) that these are not available as plugins, and so you will have to install them using either ports or pkg from the command line interface of your jail. Also, if you're installing them in a plugin jail, and not one you've created from the command line, then you might run into issues finding these packages. You'll probably have to switch the package repository to FreeBSD so that the pkg command finds them. I provide brief instructions on this here
 
Top