I've dropped this;
https://exchange.nagios.org/directory/P ... ta/details
...into place today and have been stumped by something that's probably simpler than I'm making it.
Here's the what I have in commands.cfg;
Code: Select all
define command {
command_name check_speed
command_line $USER1$/check_speed.sh -H $HOSTADDRESS$ -s $ARG1$ -d $ARG2$ -r $ARG3$
}
Code: Select all
define service{
use generic-service,nagiosgraph
host_name engmon ; The name of the host the service is associated with
service_description Check Bandwidth from Engmon to Wal-NFSserver ; The service description
check_command check_speed! -H wal-nfsserver -s 5120 -d /home/engops/xfer_data -r /home/engops/xfer_data
}
Code: Select all
[root@engmon objects]# /usr/local/nagios/libexec/check_speed.sh -H wal-nfsserver -s 5120 -d /home/engops/xfer_data -r /home/engops/xfer_data
D: 52428800.000 bits/s - U: 30836523.008 bits/s |dload=52428800.000bits/s uload=30836523.008bits/s
The classic mistake is leaving out a needed argument, but I don't see that here.
It's Friday and maybe Monday some fresh eyes will help, but I'd like to collect some info this weekend.
Guidance would be appreciated.