Plugin output discrepancy Nagios 2.0b4 (RHEL3 RPM)
Scott, Casey
Casey.Scott at wizards.com
Mon Sep 19 19:45:43 CEST 2005
I am trying to use the check_temptraxe plugin. The plugin is configured
as directed:
services.cfg
define service{
use generic-service
host_name temptrax
service_description Datacenter Temperature
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups datacenter-facilities
notification_interval 15
notification_period 24x7
notification_options c,r
check_command check_temptraxe!1!75!80
}
checkcommands.cfg
define command{
name check_temptraxe
command_name check_temptraxe
command_line $USER1$/check_temptraxe -H $HOSTADDRESS$ -p
$ARG2$ -w $ARG3$ -c $ARG4$
}
hosts.cfg
define host {
use generic-host
host_name temptrax
alias WotC Datacenter Temperature Probes
address 10.1.1.85
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
The output is correct for the service portion.
E.g. /var/log/messages shows "Sep 19 10:25:55 TSUTIL01 nagios: SERVICE
ALERT: temptrax;Datacenter Temperature;OK;HARD;1;Temp Ok: Probe 1 = 74.9
F"
Plugin output in status.dat for the service{} shows ""Temp Ok: Probe 1 =
74.0 F.
However, the host{} portion shows "Error: Incorrect command line
arguments". The error seems to indicate that the check command is being
run without any parameters when the host{} data is collected, but does
run with parameters when service{} data is collected. The error is
displayed for the host's "status information" in Host Detail. Does
anyone have any idea why Nagios is getting 2 different results from the
same plugin? Any help would be appreciated!
TIA,
Casey Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050919/1775c9f6/attachment.html>
More information about the Users
mailing list