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?
Nagios Threshold issue
Re: Nagios Threshold issue
Try changing this:
to this:
See more about thresholds and ranges here: https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Code: Select all
check_file_service!-C 'ssh nagios@$HOSTADDRESS$ ls -l /tmp' -F 'Filename*' -T 'files'! -w >1 -c <1
Code: Select all
check_file_service!-C 'ssh nagios@$HOSTADDRESS$ ls -l /tmp' -F 'Filename*' -T 'files'! -w 1 -c 1:
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios Threshold issue
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!