Can't get nrpe to run rrdtraf
Posted: Mon Jun 25, 2012 10:33 am
I'm having an issue trying to get the plugin check_rrdtraf to work with check_nrpe so I can monitor MRTG servers that are on a diferent linux box vs the one that is running Nagios.
I can get Nagios to run any of the example plugin's from both the system prompt and withint Nagios, however when I try and run check_rrdtraf from the system prompt to verify it's working right, all I get is the help page for check_rrdtraf.All the logs don't seem to be capturing anything, or possibly I'm looking at the wrong log file (shouldn't it be going to the nagios.log file?).
I believe I followed the instructions right for setting up NRPE, below is what I have in each ".cfg" file:
On Host machine I have added the following to the commands.cfg file:
# 'check_nrpe command' definition
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -C $ARG1$
}
# 'check_local_rrdtraf' command definition
define command{
command_name check_rrdtraf
command_line $USER1$/check_rrdtraf -H $HOSTADDRESS$ -f $ARG1$ -w $ARG3$ -c $ARG4$ -e $ARG5$
}
On the remote machine, I have the following in the nrpe.cfg file:
command[check_rrdtraf]=/usr/local/nagios/lib/check_rrdtraf -f $ARG1$ -w $ARG2$ -c $ARG3$ -e $ARG4$
I also have the following in the nrpe.cfg file on the remote machine and I ran the configure script using the --enable-command-args setting:
allowed_hosts=127.0.0.1,1.2.3.82
dont_blame_nrpe=1
Check_nrpe seems to work OK with all the examples, just doesn't want to play well with check_rrdtraf when I try running it at the system prompt to test it. Below is the syntax I used at the system prompt:
# /usr/local/nagios/libexec/check_nrpe -H 1.2.3.82 \
-c check_rrdtraf /srv/www/htdocs/Server_Switch/1.2.3.15_gi1_0_1.rrd \
67108864,120795995 67108864,120795995 300
Again, when I run above, I get the help info for check_rdtraf instead of the actual results.
Anyone see anything that I'm missing?
NOTE: Host server IP: 1.2.3.80
Remote server IP: 1.2.3.82
Any help would be highly appreciated!
I can get Nagios to run any of the example plugin's from both the system prompt and withint Nagios, however when I try and run check_rrdtraf from the system prompt to verify it's working right, all I get is the help page for check_rrdtraf.All the logs don't seem to be capturing anything, or possibly I'm looking at the wrong log file (shouldn't it be going to the nagios.log file?).
I believe I followed the instructions right for setting up NRPE, below is what I have in each ".cfg" file:
On Host machine I have added the following to the commands.cfg file:
# 'check_nrpe command' definition
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -C $ARG1$
}
# 'check_local_rrdtraf' command definition
define command{
command_name check_rrdtraf
command_line $USER1$/check_rrdtraf -H $HOSTADDRESS$ -f $ARG1$ -w $ARG3$ -c $ARG4$ -e $ARG5$
}
On the remote machine, I have the following in the nrpe.cfg file:
command[check_rrdtraf]=/usr/local/nagios/lib/check_rrdtraf -f $ARG1$ -w $ARG2$ -c $ARG3$ -e $ARG4$
I also have the following in the nrpe.cfg file on the remote machine and I ran the configure script using the --enable-command-args setting:
allowed_hosts=127.0.0.1,1.2.3.82
dont_blame_nrpe=1
Check_nrpe seems to work OK with all the examples, just doesn't want to play well with check_rrdtraf when I try running it at the system prompt to test it. Below is the syntax I used at the system prompt:
# /usr/local/nagios/libexec/check_nrpe -H 1.2.3.82 \
-c check_rrdtraf /srv/www/htdocs/Server_Switch/1.2.3.15_gi1_0_1.rrd \
67108864,120795995 67108864,120795995 300
Again, when I run above, I get the help info for check_rdtraf instead of the actual results.
Anyone see anything that I'm missing?
NOTE: Host server IP: 1.2.3.80
Remote server IP: 1.2.3.82
Any help would be highly appreciated!