nagios-nrpe: check_minifirewall use wrong path #66
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: evolix/ansible-roles#66
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For buster, alert5 is now a systemd unit file + a script.
It is not anymore
/etc/init.d/alert5
.check_minifirewall is using this path but that should be
/usr/share/scripts/alert5.sh
for buster.The real problem is in fact in
/usr/local/lib/nagios/plugins/check_minifirewall
line 13.You cannot check using this way because this is a one shot service, there is no active state.
So maybe use is-enabled?
Even
systemctl is-enabled alert5 -q
would be sufficient.Check out
755eaab60a
. If it seems good for you, close this issue 😄(No need for grep as systemctl return the right exit code.)
I'm pretty sure you're right.
I'm just puzzled by the fact that on a fresh install I get this :
the return code should not be 0.
I'll take a look at it
Your fix looks good to me. 👏
Thanks.