All ,
can some one share few command to check the url of the pages in check_http and check_http_content .
Regards
vinoth
Nagios command for check_http and check_http_content comman
-
- Posts: 4
- Joined: Tue Dec 10, 2013 7:07 am
Re: Nagios command for check_http and check_http_content com
You can display the usage for a plugin with "--help". From the nagios server:
check_http will check to see if a url exists and then match a string (optional).
The command definition usually looks like:
Where $ARG1$ includes all options - thresholds, string checks, etc.
Code: Select all
/usr/local/nagios/libexec/check_http --help
The command definition usually looks like:
Code: Select all
define command {
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios command for check_http and check_http_content com
Can you be a bit more specific?
If you just want to check if a URL is reachable:
If you are looking for a specific string in a page:
If you just want to check if a URL is reachable:
Code: Select all
check_http -H www.nagios.org -u "/about"
Code: Select all
check_http -H www.nagios.org -u "/about" -s "monitoring"
Former Nagios employee