check_users can't have 0 as warning limit since 2.1.4

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tomcar
Posts: 3
Joined: Mon Feb 13, 2017 11:28 am

check_users can't have 0 as warning limit since 2.1.4

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

It looks like this has been reported to the GitHub already - https://github.com/nagios-plugins/nagio ... issues/228
Former Nagios Employee
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

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

Post by bwallace »

Could you post the full check command and the corresponding service definition?
Be sure to check out the Knowledgebase for helpful articles and solutions!
tomcar
Posts: 3
Joined: Mon Feb 13, 2017 11:28 am

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

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

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

Post by dwhitfield »

@tomcar are we ready to lock this up?
tomcar
Posts: 3
Joined: Mon Feb 13, 2017 11:28 am

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

Post by tomcar »

Yes, thanks.
Locked