Nagios Core-3.5.1 Url Monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mani479
Posts: 1
Joined: Mon Dec 18, 2017 12:09 pm

Nagios Core-3.5.1 Url Monitoring

Post by mani479 »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Core-3.5.1 Url Monitoring

Post by scottwilkerson »

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

Code: Select all

# 'check_http4' command definition
define command{
command_name check_http4
command_line $USER1$/check_http -H $HOSTNAME$ -f $ARG1$ -u $ARG1$
##
you may want

Code: Select all

# 'check_http4' command definition
define command{
command_name check_http4
command_line $USER1$/check_http -H $HOSTNAME$ -f $ARG1$ -u $ARG2$
##
but we would need to see the service definition to recommend the command
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked