Forum Discussion

J_2's avatar
J_2
Icon for Nimbostratus rankNimbostratus
Aug 08, 2019

Enhancing Probes for SharePoint 2016 on Prem

Hello

I have some questions about enhancing SharePoint Probes:

  • Doing Curl with the IP-Adress ends with an Code 200 but with an Error

<head><meta name="GENERATOR" content="Microsoft SharePoint" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Expires" content="0" /><meta http-equiv="X-UA-Compatible" content="IE=8"/><meta name="ROBOTS" content="NOHTMLINDEX" /><title>

       Error

</title><link rel="stylesheet" type="text/css" href="/_layouts/15/1033/styles/corev15.css?rev=f4ES4o33Y5B6OSnm1GOXLA%3D%3DTAG0"/><head><meta name="GENERATOR" content="Microsoft SharePoint" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Expires" content="0" /><meta http-equiv="X-UA-Compatible" content="IE=8"/><meta name="ROBOTS" content="NOHTMLINDEX" /><title>

       Error

</title><link rel="stylesheet" type="text/css" href="/_layouts/15/1033/styles/corev15.css?rev=f4ES4o33Y5B6OSnm1GOXLA%3D%3DTAG0"/><head><meta name="GENERATOR" content="Microsoft SharePoint" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Expires" content="0" /><meta http-equiv="X-UA-Compatible" content="IE=8"/><meta name="ROBOTS" content="NOHTMLINDEX" /><title>

       Error

</title><link rel="stylesheet" type="text/css" href="/_layouts/15/1033/styles/corev15.css?rev=f4ES4o33Y5B6OSnm1GOXLA%3D%3DTAG0"/>

 

  • There ist the possibility to grep the returnparameter "SharePointError: 0" or "X-SharePointHealthScore: 0" how does the probe have to look like.

Do you Need to install an agent in the SharePoint Server?

 

Thank you very much for your answer

 

J.

  • you might want to run curl with the -v parameter so you can also see the headers.

     

    the SharePoint Error header can be easily used in a regular HTTP or HTTPS health monitor

     

    see more further discussion on this here:

    https://devcentral.f5.com/s/feed/0D51T00006i7fFaSAI

     

     

  • J_2's avatar
    J_2
    Icon for Nimbostratus rankNimbostratus

    Hi Boneyard

    Thank you for your answer.

     

    1. Why are "Errors" shown? Hast it to do with the webpage?
    2. I would like to test the curl myself. I tried all the variants none of them worked

    Do you have a hint.

     

    Regards

     

    J.

    • the error is probably shown because you have to request the correct website url and perhaps provide the hostname

      curl -v -k -H "Host: <hostname>" http(s)://x.x.x.x/ 

      would be a good start, try it and share the output with removing / changing any sensitive (company name, public IPs) output

  • J_2's avatar
    J_2
    Icon for Nimbostratus rankNimbostratus

    ​Hi Boneyard

    Thank you very much for your support.

    I will try this command.

    Regards

    Juan