OPNsense Forum

English Forums => 24.7, 24.10 Series => Topic started by: ermannobonfazi on November 19, 2024, 12:04:42 PM

Title: Monit - Service - Poll time
Post by: ermannobonfazi on November 19, 2024, 12:04:42 PM
I'm trying to edit the poll time for a service configured in monit, according to my needs but if I enter an integer (for cycles) Monit will not save and the button Apply will never disappear and monit will be stuck, If I try to enter a cron syntax for every 30 minutes (*/30 * * * *) it seems that does not support the step characther (/).
This is what the help for poll time says: Set the service poll time. Either as a number of cycles "NUMBER CYCLES" or Cron-style "* 8-19 * * 1-5". So an integer for number of cycles should be supportes, since according to monit documentation a cycles is every 2 minutes, 15 should be my integer but Monit does not restart.
Title: Re: Monit - Service - Poll time
Post by: IHaventGotAClue on January 10, 2025, 06:12:36 AM
I was having the same issue and spent more time then I'd like to admit trying to fix it. I blame it on the poorly worded help statement but maybe I'm just dumb. If you're using cycles you need to put "# CYCLES". If you just put a number it will not work, hopefully this helps you.