CheckFiles not working
Posted: Wed Aug 08, 2018 10:37 am
I have a CheckFile check_nrpe set up and it is returning 0 Files Found but yet the count still shows files.
Output:
{0 Files Found}|'count'=1053419;1000;2000
Command:
# /usr/local/nagios/libexec/check_nrpe -2 -H 10.100.30.107 -t 30 -c CheckFiles -a path='D:\\Apps_Vision_General\\Vision_Prod\\PrintFlow\\Inbox' pattern=*.* 'master-syntax={%total% Files Found}' MaxWarn=1000 MaxCrit=2000 'filter=size gt 0b'
{0 Files Found}|'count'=1053419;1000;2000
I can run the same command (obvious difference due to file path) and it works as expected.
# /usr/local/nagios/libexec/check_nrpe -2 -H 10.100.32.120 -t 30 -c CheckFiles -a path='D:\\Dell\\ArchiveManager\\Error' pattern=*.* 'master-syntax={%total% Files Found}' MaxWarn=2000 MaxCrit=5000 'filter=size gt 0b'
OK: All 1653 files are ok|'count'=1653;2000;5000
Any suggestions what I'm doing wrong here?
please advise
-pete
Output:
{0 Files Found}|'count'=1053419;1000;2000
Command:
# /usr/local/nagios/libexec/check_nrpe -2 -H 10.100.30.107 -t 30 -c CheckFiles -a path='D:\\Apps_Vision_General\\Vision_Prod\\PrintFlow\\Inbox' pattern=*.* 'master-syntax={%total% Files Found}' MaxWarn=1000 MaxCrit=2000 'filter=size gt 0b'
{0 Files Found}|'count'=1053419;1000;2000
I can run the same command (obvious difference due to file path) and it works as expected.
# /usr/local/nagios/libexec/check_nrpe -2 -H 10.100.32.120 -t 30 -c CheckFiles -a path='D:\\Dell\\ArchiveManager\\Error' pattern=*.* 'master-syntax={%total% Files Found}' MaxWarn=2000 MaxCrit=5000 'filter=size gt 0b'
OK: All 1653 files are ok|'count'=1653;2000;5000
Any suggestions what I'm doing wrong here?
please advise
-pete