Page 1 of 1

Re: Problem with command

Posted: Wed Jun 04, 2014 1:21 pm
by abrist
It may be an escaping issue. Try running the original command (without the ui escapes) from the shell.
Also, try running it from the shell with the escapes:

Code: Select all

/usr/local/nagios/libexec/check_graphite -u "http://10.210.250.193" -m "sumSeries "\(group\(stats_counts.sts.api.post.issue.\*.\*.error,stats_counts.sts.api.post.issue.\*.error\)\)"" -d "3" -w 25 -c 30 -M sumSeries "\(group\(stats_counts.sts.api.post.issue.\*.\*.error,stats_counts.sts.api.post.issue.\*.error\)\)"
Post the command results for both.

Re: Problem with command

Posted: Thu Jun 05, 2014 8:31 am
by scottwilkerson
Can you show us the command definition as well as the $ARGn$ you are passing?

thanks

Re: Problem with command

Posted: Thu Jun 05, 2014 3:39 pm
by scottwilkerson
enoc wrote:Is this what were you referring to?
Yes, however can we also see the command from CCM -> Commands -> check_graphite

Thanks

Re: Problem with command

Posted: Thu Jun 05, 2014 3:40 pm
by abrist
Alright. Looks like the escapes are most likely necessary. Change your command to include the escapes. Once you do so, the "test command" option will no longer work as it will double escape, but the check itself should start working.

Code: Select all

check_graphite!"sumSeries" "\(group\(stats_counts.sts.api.post.issue.\*.\*.error,stats_counts.sts.api.post.issue.\*.error\)\)"!3!25!30!!!!