You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying the nrpe charm to an LXD unit, the charm creates a check_conntrack service. That's great, but for LXD the check itself falls over. The check finds the conntrack module, and then can't find nf_conntrack_max.
It's happier if I add:
if ! [ -f /proc/sys/net/netfilter/nf_conntrack_max ] ; then
echo "OK: no conntrack max present"
exit $STATE_OK
fi
I'd prefer to be able to just disable the check with a setting.
(by xavpaice)
Fix was committed in response to https://bugs.launchpad.net/nrpe-charm/+bug/1673064 but this doesn't work on every occasion. I'm struggling to find a smoking gun for what's different but the fix committed checks for the conntrack module, which is loaded on these lxd containers:
However, the actual check shows that nf_conntrack_max doesn't exist:
ubuntu@juju-a8345d-0-lxd-9:~$ sysctl net.netfilter.nf_conntrack_max
sysctl: cannot stat /proc/sys/net/netfilter/nf_conntrack_max: No such file or directory
When applying the nrpe charm to an LXD unit, the charm creates a check_conntrack service. That's great, but for LXD the check itself falls over. The check finds the conntrack module, and then can't find nf_conntrack_max.
It's happier if I add:
if ! [ -f /proc/sys/net/netfilter/nf_conntrack_max ] ; then
echo "OK: no conntrack max present"
exit $STATE_OK
fi
I'd prefer to be able to just disable the check with a setting.
Imported from Launchpad using lp2gh.
date created: 2017-04-07T00:13:26Z
owner: hloeung
assignee: paulgear
duplicate of: Conntrack check does not work in LXD containers #36
the launchpad url
The text was updated successfully, but these errors were encountered: