Re: [Nagios-users] wrta not set
On Mon, 24 Aug 2009, Bruce Thayre wrote: Hello, I have a question that i'm assuming has a quick answer. I've defined a command as: define command{ command_namecheck-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{ usegeneric-service display_namecheck_helpdesk host_namerails_playground service_descriptioncheck helpdesk check_command check-site!helpdesk_url.comhttp://helpdesk_url.com contactsnagiosadmin } 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 You've typo'd your macro name in the command definition. Try $ARG1$. -- 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
Re: [Nagios-users] wrta not set
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_namecheck-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{ usegeneric-service display_namecheck_helpdesk host_namerails_playground service_descriptioncheck helpdesk check_command check-site!helpdesk_url.comhttp://helpdesk_url.com contactsnagiosadmin } 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.comhttp://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.82ms;3000.00;5000.00;0.00 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
Re: [Nagios-users] wrta not set
On Mon, 24 Aug 2009 11:52:32 -0700, Bruce Thayre br...@mipscomputation.com wrote: Hello, I have a question that i'm assuming has a quick answer. I've defined a command as: define command{ command_namecheck-site command_line$USER1$/check_ping -H $ARG1 -w 3000.0,80% -c 5000.0,100% -p 5 -t 10 } Did you paste directly? If so, $ARG1 is missing a closing $... so $ARG1$ 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{ usegeneric-service display_namecheck_helpdesk host_namerails_playground service_descriptioncheck helpdesk check_commandcheck-site!helpdesk_url.com contactsnagiosadmin } 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 -w 3000.0,80% -c 5000.0,100% -p 5 -t 10 PING OK - Packet loss = 0%, RTA = 54.82 ms|rta=54.82ms;3000.00;5000.00;0.00 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? As was mentioned, your test syntax is different, otherwise, fix your command definition, and test again. -- Jonathan Angliss j...@netdork.net -- 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