Page 1 of 1

Nagios Threshold issue

Posted: Fri Jul 07, 2017 6:23 pm
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?

Re: Nagios Threshold issue

Posted: Mon Jul 10, 2017 9:54 am
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

Re: Nagios Threshold issue

Posted: Mon Jul 10, 2017 10:06 am
by lmiltchev
Moderator's Note: Please follow up on the issue here: https://support.nagios.com/forum/viewto ... 57#p225857