Replies: 1 comment 1 reply
-
the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
trying to check if a file exists
in nsclient this workes for us:
/usr/local/nagios/libexec/check_nrpe -H 192.168.83.226 -p 5666 -c check_files -a "path=c:/program files/" pattern=CDPConfig.exe "filter=version >= '1.0'" "detail-syntax=%(filename): %(version)" show-all
Trying the same thing with snclient:
filter for version is not possible
/usr/local/nagios/libexec/check_nrpe -H 192.168.83.226 -p 5666 -c check_files -a "path=c:/program files/" pattern=CDPConfig.exe "top-syntax=%(name)"
gives me:
%(name) |'count'=1;;;0 'size'=251392B;;;0
Seems like the variable ist not recognized. tried it with name filename
with show-all (which is not in the official documentation) i get the almost the result that i want
/usr/local/nagios/libexec/check_nrpe -H 192.168.83.226 -p 5666 -c check_files -a "path=c:/program files/" pattern=CDPConfig.exe show-all
Beta Was this translation helpful? Give feedback.
All reactions