Problem with command

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problem with command

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with command

Post by scottwilkerson »

Can you show us the command definition as well as the $ARGn$ you are passing?

thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with command

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problem with command

Post 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!!!!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked