Multiple URL Monitoring with "check_http" and "check_form_submit"


I have 3 separate web portal wherein one would input a username and password
It resides on one single server.

I have created 3 separate “Service Names” for “check_http” namely WEBPOS, ADMIN and REPORTS that corresponds to its respective login page.
It has also an OK status respectively. Please see the first figure.

Now, I read in one post here that having a page that make use of username and password will require the use of the plugin “check_form_submit” to monitor the 3 web pages.
As what I understand I will also need to create 3 separate rules for each webpage… I was able to create the FORM for “webpos”
I copied the first rule “WEBPOS” and named it to ADMIN but it says:

CRIT - Unable to open https://https://stage.mydomain.com/admin//: [Errno -3] Temporary failure in name resolution

Questions:

  1. To monitor the HTTPS status of Multiple URLs will require separate rules, right?
  2. To monitor the status of a page that shows a page that requires a username and password will require separate “check_form_submit” rules, right?
  3. Why is it the original “check_form_submit” rule is OK but the copied one is not?

Any help is appreciated.
Chris

Yes

If your page shows a form you need to fill then it is right. In your big screenshot with the HTTP service definition the user and password is only used for basic auth from the webserver.

that’s i cannot say without seeing the rule definition.

Beside your questions, you need to pay attention to the called URLs. Only the “webpos” check goes to a real web page. The other two get an “301 moved permanently” answer what means the requested URL is not the real target. It is possible that the form check will not work on such a URL.

1 Like

Is there really a duplicate “https://” in the URL?

Sorry I included the https:// in the virtual host tick box. But when I removed it and replaced it with the one in the image, The ERROR I get is :

CRIT - Unable to open https://stage.mydomain.com/https://stage.mydomain.com/admin/index.php/login/user_validation: [404] HTTP Error 404: Not Found

The page with a User and Password login requirement is https://stage.mydomain.com/admin/

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.