Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - power13

#1
configd.py 594 - [meta sequenceId="239"] [4f14367e-d50c-482a-a47f-7f2a0b133231] get monit status
configd.py 594 - [meta sequenceId="240"] [1c1e7a75-c97e-4eaf-835d-4bb625e52f20] generate template OPNsense/Monit
configd.py 594 - [meta sequenceId="241"] generate template container OPNsense/Monit
configd.py 594 - [meta sequenceId="242"]  OPNsense/Monit generated //usr/local/etc/monitrc
configd.py 594 - [meta sequenceId="243"]  OPNsense/Monit generated //etc/rc.conf.d/monit
configd.py 594 - [meta sequenceId="244"] [2d0fb605-a56d-4af9-a8d9-aab0d1faadac] testing monit configuration
configd.py 594 - [meta sequenceId="245"] [46c30194-9ba9-425f-94e1-0bfa0c4550a7] reload monit configuration
configd.py 594 - [meta sequenceId="246"] [ff607578-5fae-466e-b08c-d9433eddf7cb] system status
configd.py 594 - [meta sequenceId="247"] [13e90899-8209-4b33-99b1-d64c97da02ef] get monit status
configd.py 594 - [meta sequenceId="248"] [646427b1-518f-4897-8d72-4ae8d375ae9d] Show disk usage
configd.py 594 - [meta sequenceId="249"] [f65f9fba-9988-42b9-a322-76592e0c124c] trigger config changed even

Looks good to me, no errors. But same result.

Config check is fine too.

monit -t
Control file syntax OK
#2
I could confirm this in a freshyl installed OPNsense 26.1.4-amd64.

LoadAvg15 was not present in /usr/local/etc/monitrc already, looks broken after installation.

When deleting and re-adding LoadAvg5, LoadAvg5 is not configured anymore in /usr/local/etc/monitrc.
After restoring configuration, LoadAvg5 is present again in /usr/local/etc/monitrc.

However, without restoring configuration, LoadAvg5 is not written anymore into /usr/local/etc/monitrc.

May anybody test this with another OPNsense version?
#3
Hi guys

When I delete LoadAvg15 in Services --> Monit --> Settings --> Service Tests Settings and add it again with the same definition in the Web UI, its not in /usr/local/etc/monitrc anymore.

If I modify LoadAvg1 or LoadAvg5 in the Web UI, changes are written in /usr/local/etc/monitrc as expected.

But whatever I do, I cannot add LoadAvg15 in Web UI, so it would be written in /usr/local/etc/monitrc again.

As I deleted LoadAvg5, I had the same problem. After restoring opnsense configuration, LoadAvg5 was present again and was updated in /usr/local/etc/monitrc.

However, I cannot see any differences between LoadAvg1, LoadAvg5 and LoadAvg15 in the config export:

<test uuid="750c6df9-08d8-4311-b23d-61e1e57ac21c">
        <name>LoadAvg1</name>
        <type>SystemResource</type>
        <condition>loadavg (1min) is greater than 16</condition>
        <action>alert</action>
        <path/>
      </test>
      <test uuid="75e3ff07-7f52-49a1-8acd-a12a666efbbb">
        <name>LoadAvg5</name>
        <type>SystemResource</type>
        <condition>loadavg (5min) is greater than 12</condition>
        <action>alert</action>
        <path/>
      </test>
      <test uuid="08b75292-7e78-4284-b708-a0ee7d217977">
        <name>LoadAvg15</name>
        <type>SystemResource</type>
        <condition>loadavg (15min) is greater than 8</condition>
        <action>alert</action>
        <path/>
      </test>

How can I add LoadAvg15 in Web UI again, so its written to /usr/local/etc/monitrc? Unfortunately I do not have the backup anymore where LoadAvg15 worked ...

I tried to uninstall and install monit again on CLI, but this did not help.

Can anybody confirm the behaviour with monit?

Best regards
power13