Your command line syntax differs from your configured command_line . The
command_line in your command definition has a '-H' while your test line does not
From: Bruce Thayre [mailto:br...@mipscomputation.com]
Sent: Monday, August 24, 2009 2:53 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] <wrta> not set
Hello,
I have a question that i'm assuming has a quick answer. I've defined a command
as:
define command{
command_name check-site
command_line $USER1$/check_ping -H $ARG1 -w 3000.0,80% -c 5000.0,100% -p
5 -t 10
}
which i use to just ping different sites via my services.cfg. So in my
services.cfg i have entries that look like:
define service{
use generic-service
display_name check_helpdesk
host_name rails_playground
service_description check helpdesk
check_command
check-site!helpdesk_url.com<http://helpdesk_url.com>
contacts nagiosadmin
}
Now everything checks out, however when i open up my service page within
nagios, i see all my check-sites have unknown statuses stating:
<wrta> was not set
Looking at the check_ping plugin it states that <wrta> is set with the -w
option, and looking at my check-site command above, you can see that i hard
code <wrta>, so i don't understand why it is not working. Trying that command
above on the command line as such:
./check_ping helpdesk_url.com<http://helpdesk_url.com> -w 3000.0,80% -c
5000.0,100% -p 5 -t 10
PING OK - Packet loss = 0%, RTA = 54.82
ms|rta=54.820000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
So the syntax should work, i just can't figure out what part i have wrong
that's causing nagios to freak out. Any help would be great?
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users@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