Using check_http to check multiple folders


#1

Hi

We have a webserver set up similar to the following:-

www.example.com/site1
www.example.com/site2
www.example.com/site3

How can I check for a string on each of these sites.

I have tried using the

-u and -s arguments on check_http but it only seems to check the last site I specify.

Stuart


#2

make 3 different checks. or write a script which runs the three different checks and combines the result…


#3

Thanks, when I tried creating different checks only the 1st one was showing in the Nagios web pages under the host name. The others dont get checked.


#4

did you create them with different names (service_description)? If you use the same only one appears in the interface.