check_traffic plugin
Tedman Eng
teng at dataway.com
Tue Aug 31 06:03:27 CEST 2004
You check command doesnt seem to have all the info required:
check_command check_nrpe!check_traffic!
Should probably be:
check_command check_nrpe!check_traffic!2!1544000!Serial0/0
-----Original Message-----
From: Ian Masters [mailto:ian at acces.co.jp]
Sent: Monday, August 30, 2004 7:20 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_traffic plugin
I'm having trouble with the Nagios check_traffic plugin.
If I run the command on the remote host I get good output:
/usr/local/nagios/libexec/check_traffic -H localhost -i 2 -b 1544000 -r
Serial0/0 -w 70 -c 80
Total RX Bytes: 918.86 MB, Total TX Bytes: 615.02 MB<br>Average Traffic:
284.89 B/s (0.0%) in, 247.95 B/s (0.0%) out
But when I run it via nrpe from the Nagios host (server) I'm getting "NRPE:
Unable to read output" error on the GUI console.
On my Nagios host (server) in services.cfg I have:
# Service definition
define service{
use generic-service ; Name of
service template to use
host_name tom,dick,harry
service_description Traffic NRPE
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups stafi-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nrpe!check_traffic!
}
And in checkcommands.cfg
# 'check_traffic' command definition
define command{
command_name check_traffic
command_line $USER1$/check_traffic -H $HOSTADDRESS$ -i $ARG1$ -b
$ARG2$ -r $ARG3$ -w 70 -c 80
}
If anyone has an idea what is causing my problem I'd be very grateful for
any suggestions.
Thanks
Ian Masters
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list