Page 1 of 1

check_users can't have 0 as warning limit since 2.1.4

Posted: Mon Feb 13, 2017 11:35 am
by tomcar
Hi!

Recently upgraded nagios-plutins on my CentOS to 2.1.4. Since then the check_users plugin keeps complaining that "Warning threshold must be a positive integer".
This is bad, because I really need to have 0 as warning to get alert every time someone logs in to the system.

Seems that it's the same thing in version 2.2.0, version 2.1.1 works as expected.

Br - Tomas

Re: check_users can't have 0 as warning limit since 2.1.4

Posted: Mon Feb 13, 2017 12:35 pm
by rkennedy
It looks like this has been reported to the GitHub already - https://github.com/nagios-plugins/nagio ... issues/228

Re: check_users can't have 0 as warning limit since 2.1.4

Posted: Mon Feb 13, 2017 12:41 pm
by bwallace
Could you post the full check command and the corresponding service definition?

Re: check_users can't have 0 as warning limit since 2.1.4

Posted: Mon Feb 13, 2017 5:23 pm
by tomcar
rkennedy wrote:It looks like this has been reported to the GitHub already - https://github.com/nagios-plugins/nagio ... issues/228
Sorry, missed that.

Br - Tomas

Re: check_users can't have 0 as warning limit since 2.1.4

Posted: Mon Feb 13, 2017 5:49 pm
by dwhitfield
@tomcar are we ready to lock this up?

Re: check_users can't have 0 as warning limit since 2.1.4

Posted: Tue Feb 14, 2017 1:31 am
by tomcar
Yes, thanks.