Having a small problem with this one, I can't get it to change it's syntax to save my life.
I pulled this from another thread -
Running at the command prompt works with the following:
Returns this:
Traffic: 109.95 B/s (0.0%) in, 109.95 B/s (0.0%) out - Total RX Bytes: 21.21 MB, Total TX Bytes: 21.21 MB
So when I try to modify the check command with
I save it, apply it and restart nagios, and if I go look at the command file it has this :
So I thought I would just add a new check command and use it, but the same thing happens. So I added the new command with the name of check_graph_traffic2 and save, apply and restart and when I look at the checkcommands.cfg file I see this.
To make things even more bizzare if I look at the table in the database, it shows....
I am at a total loss, anyone have an idea what I am missing?
This is on the 1.2.3-RC1 release.
I pulled this from another thread -
Code:
$USER1$/check_graph_traffic.pl -H $HOSTADDRESS$ -C $ARG1$ -i $ARG2$ -w $ARG3$ -c $ARG4$ -g -S $ARG5$
Code:
./check_graph_traffic.pl -H 10.162.0.16 -i 1 -w 85 -c 95 -C public
Traffic: 109.95 B/s (0.0%) in, 109.95 B/s (0.0%) out - Total RX Bytes: 21.21 MB, Total TX Bytes: 21.21 MB
So when I try to modify the check command with
Code:
$USER1$/check_graph_traffic.pl -H $HOSTADDRESS$ -C $ARG1$ -i $ARG2$ -w $ARG3$ -c $ARG4$ -g -S $ARG5$
Code:
# 'check_graph_traffic' command definition 12 define command{ command_name check_graph_traffic command_line $USER1$/check_graph_traffic.pl -H $HOSTADDRESS$ -C $ARG1$ -i $ARG2$ -w $ARG3$ -c $ARG4$ -g }
Code:
# 'check_graph_traffic2' command definition 35 define command{ command_name check_graph_traffic2 command_line $USER1$/check_graph_traffic.pl -H $HOSTADDRESS$ -C $ARG1$ -i $ARG2$ -w $ARG3$ -c $ARG4$ -g }
Code:
45 check_graph_traffic2 $USER1$/check_graph_traffic.pl -H $HOSTADDRESS$ -C $ARG1$ -i $ARG2$ -w $ARG3$ -c $ARG4$ -g -S $ARG5$
This is on the 1.2.3-RC1 release.
Comment