Nagios Threshold issue

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
spidermonkey123
Posts: 1
Joined: Fri Jul 07, 2017 6:04 pm

Nagios Threshold issue

Post by spidermonkey123 »

Nagios XI
check_file_service!-C 'ssh nagios@$HOSTADDRESS$ ls -l /tmp' -F 'Filename*' -T 'files'! -w >1 -c <1

I am trying to setup a file check which will be OK for 1 file present, and basically warning/critical otherwise.
But I received this error 'Problem with warn theshold .....
Crux of it being the warning value needs to be lower than critical, but I need the opposite.

Where am I going wrong please?
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Threshold issue

Post by lmiltchev »

Try changing this:

Code: Select all

check_file_service!-C 'ssh nagios@$HOSTADDRESS$ ls -l /tmp' -F 'Filename*' -T 'files'! -w >1 -c <1
to this:

Code: Select all

check_file_service!-C 'ssh nagios@$HOSTADDRESS$ ls -l /tmp' -F 'Filename*' -T 'files'! -w 1 -c 1:
See more about thresholds and ranges here: https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Threshold issue

Post by lmiltchev »

Moderator's Note: Please follow up on the issue here: https://support.nagios.com/forum/viewto ... 57#p225857
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked