RES: monitoring url
bcotta at unimedbh.com.br
bcotta at unimedbh.com.br
Fri Aug 27 00:15:05 CEST 2004
Hi,
to check url I?m using the code below.
# 'check_site' command definition
define command{
command_name check_site
command_line $USER1$/check_http -H www.unimedbh.com.br -u
/comum/paginas/index.jsp -e 200
}
With this code i?m checking www.unimedbh.com.br/comum/paginas/index.jsp and
I hope that the site return 200
Regards,
--
Breno Andrade Cotta
bcotta at unimedbh.com.br
Analista de Suporte - Equipe de Rede
Fone: (31) 9977-2841 - (31) 3229-6273
-----Mensagem original-----
De: Cook, Garry [mailto:GWCOOK at mactec.com]
Enviada em: quinta-feira, 26 de agosto de 2004 14:55
Para: Sandoval, Julio
Cc: nagios-users at lists.sourceforge.net
Assunto: RE: [Nagios-users] monitoring url
Julio,
It looks like that URL argument is not interpreted correctly by the
plugin, due to the '(' and ')'.
Try using a backslash to escape the parens, like so: \(PARTIDA\)
If that doesn't work, you might want to try adding the URL to a $USERx$
macro in the resource.cfg file, and then call the plugin like this
(where 'x' matches the number in resource.cfg):
root at monitorRH root]# /usr/lib/nagios/plugins/check_http -H achsnet -I
192.168.0.16 -u $USERx$ PENAGENT&LOGIN
Hope this helps.
-g
Sandoval, Julio wrote:
> Thank,
> I run the followind command in RH9:
> root at monitorRH root]# /usr/lib/nagios/plugins/check_http -H achsnet
> -I 192.168.0.16 -u
> http://achsnet.achs.cl/ACHS2/SITIOWEB/INICIOV3.NSF/(PARTIDA)?O
> PENAGENT&LOGIN
The system response:
bash: syntax error near unexpected token '('
I think that link is the problem. This link is Lotus Notes link.
I hope for yours comments.
Thank.
Julio Sandoval
CNA,MCP.
-----Mensaje original-----
De: Cook, Garry [mailto:GWCOOK at mactec.com]
Enviado el: Jueves, 26 de Agosto de 2004 13:26
Para: Sandoval, Julio; nagios-users at lists.sourceforge.net
Asunto: RE: [Nagios-users] monitoring url
Sandoval, Julio wrote:
> Hi everybody,
>
> I have installed Nagios 1.2 in RH9.
> I'm trying to monitor a especific URL, but i have not been able....
> Well i hope for yours help .
>
> Thank
> Julio Sandoval
If you really want help, it would be a good idea to post some more
information.
Eg.
What does your service template/command look like?
What is the result returned by the plugin from Nagios?
What is the result returned by the plugin when you run it from the
command line? Etc.
Also, if you send your email in plain text instead of HTML, more people
on the list will read it and possibly respond.
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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