Test check works in CCM, but fails once applied
Posted: Tue Dec 15, 2015 12:27 pm
I'm having issues with a command and i'd greatly appreciate some help.
I am using Desktop NSC++ Ver. 4.4.14
Server Nagios XI 2014R2.7
I have done testing from the Nagios Server, Test Check Command, and local computer the following command works just fine.
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c Check_Files -a path=$ARG1$ "filter=filename='$ARG2$'" "ok=count>= 1" "warn=written< -$ARG3$" "crit=written< -$ARG4$ or count= 0" "perf-syntax=${file} Last Written: %(written_l)"
From using the "test check" this is the output
COMMAND: /usr/local/nagios/libexec/check_nrpe -H 172.21.1.73 -t 30 -c Check_Files -a path=C:\\temp "filter=filename='test.txt'" "ok=count>= 1" "warn=written< -1h" "crit=written< -1d or count= 0" "perf-syntax=${file} Last Written: %(written_l)"
OUTPUT: CRITICAL: 2/2 files (test.txt, test.txt)|' Last Written: 2015-Nov-24 12:35:31_written'=1448393731;1450196700;1450113900 ' Last Written: 2015-Nov-23 14:41:56_written'=1448314916;1450196700;1450113900 'count'=2;0;0
However when i apply the code to go live, it says it has unknown state and words that says "no files found". I know at one point I was getting errors with Filters. i'm not sure why it works everywhere else just not in "live" after applying
Please let me know with any information that may help.
Thanks
I am using Desktop NSC++ Ver. 4.4.14
Server Nagios XI 2014R2.7
I have done testing from the Nagios Server, Test Check Command, and local computer the following command works just fine.
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c Check_Files -a path=$ARG1$ "filter=filename='$ARG2$'" "ok=count>= 1" "warn=written< -$ARG3$" "crit=written< -$ARG4$ or count= 0" "perf-syntax=${file} Last Written: %(written_l)"
From using the "test check" this is the output
COMMAND: /usr/local/nagios/libexec/check_nrpe -H 172.21.1.73 -t 30 -c Check_Files -a path=C:\\temp "filter=filename='test.txt'" "ok=count>= 1" "warn=written< -1h" "crit=written< -1d or count= 0" "perf-syntax=${file} Last Written: %(written_l)"
OUTPUT: CRITICAL: 2/2 files (test.txt, test.txt)|' Last Written: 2015-Nov-24 12:35:31_written'=1448393731;1450196700;1450113900 ' Last Written: 2015-Nov-23 14:41:56_written'=1448314916;1450196700;1450113900 'count'=2;0;0
However when i apply the code to go live, it says it has unknown state and words that says "no files found". I know at one point I was getting errors with Filters. i'm not sure why it works everywhere else just not in "live" after applying
Please let me know with any information that may help.
Thanks