check_users can't have 0 as warning limit since 2.1.4

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_users can't have 0 as warning limit since 2.1.4

Postby tomcar » Mon Feb 13, 2017 11:35 am

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
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

Postby rkennedy » Mon Feb 13, 2017 12:35 pm

It looks like this has been reported to the GitHub already - https://github.com/nagios-plugins/nagio ... issues/228
rkennedy
 
Posts: 6562
Joined: Mon Oct 05, 2015 11:45 am

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

Postby bwallace » Mon Feb 13, 2017 12:41 pm

Could you post the full check command and the corresponding service definition?
Be sure to check out the Knowledgebase for helpful articles and solutions!
bwallace
 
Posts: 1148
Joined: Tue Nov 17, 2015 1:57 pm

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

Postby tomcar » Mon Feb 13, 2017 5:23 pm

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
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

Postby dwhitfield » Mon Feb 13, 2017 5:49 pm

@tomcar are we ready to lock this up?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 2330
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

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

Postby tomcar » Tue Feb 14, 2017 1:31 am

Yes, thanks.
tomcar
 
Posts: 3
Joined: Mon Feb 13, 2017 11:28 am


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests