Hi
I have been trying to Monitor Url using Nagios-3.5.1
./check_http -H http://www.testing.com -f follow -u "/vap/"
HTTP OK: HTTP/1.1 200 OK - 15003 bytes in 0.169 second response time |time=0.169042s;;;0.000000 size=15003B;;;0
But when i execute this command in script it's not working
# 'check_http4' command definition
define command{
command_name check_http4
command_line $USER1$/check_http -H $HOSTNAME$ -f $ARG1$ -u $ARG1$
##
But it's not working
Can you please help me with this
Thank you,
Mani
Nagios Core-3.5.1 Url Monitoring
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios Core-3.5.1 Url Monitoring
Can you show what is in the HOSTNAME in the host object and the $ARG1$ and $ARG2$ of the service definition
Also, it looks like you inadvertanly have $ARG1$ twice in the command definition
you may want
but we would need to see the service definition to recommend the command
Also, it looks like you inadvertanly have $ARG1$ twice in the command definition
Code: Select all
# 'check_http4' command definition
define command{
command_name check_http4
command_line $USER1$/check_http -H $HOSTNAME$ -f $ARG1$ -u $ARG1$
##
Code: Select all
# 'check_http4' command definition
define command{
command_name check_http4
command_line $USER1$/check_http -H $HOSTNAME$ -f $ARG1$ -u $ARG2$
##