Monit, checking URL with basic Auth but username has @ in itMonit wont start/stop any processesMonit network...

Why doesn't the EU now just force the UK to choose between referendum and no-deal?

Welcoming 2019 Pi day: How to draw the letter π?

Do I need to be arrogant to get ahead?

How to use deus ex machina safely?

PTIJ: Who should I vote for? (21st Knesset Edition)

Gravity magic - How does it work?

How big is a MODIS 250m pixel in reality?

In a future war, an old lady is trying to raise a boy but one of the weapons has made everyone deaf

If I can solve Sudoku can I solve Travelling Salesman Problem(TSP)? If yes, how?

A Cautionary Suggestion

How to simplify this time periods definition interface?

Who is flying the vertibirds?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

It's a yearly task, alright

Employee lack of ownership

Why is the President allowed to veto a cancellation of emergency powers?

Is it normal that my co-workers at a fitness company criticize my food choices?

Why do passenger jet manufacturers design their planes with stall prevention systems?

What are substitutions for coconut in curry?

A link redirect to http instead of https: how critical is it?

Min function accepting varying number of arguments in C++17

Are all passive ability checks floors for active ability checks?

What should tie a collection of short-stories together?



Monit, checking URL with basic Auth but username has @ in it


Monit wont start/stop any processesMonit network availability checkingHave trouble with monit (monit dead but subsys locked)Monit checking URL follow redirectsmonit “check program” with email?why basic auth loops when using nginx and monitChecking if a TCP port is closed with monitMonit Alert with Multiple URLsPrevent monit from checking while restartingMonitoring solr service on Ubuntu 16.0.4 with Monit













1















Monit gives me a syntax error when the username contains an "@", which would be quite common. For example, 'user@gmail' below:



check host somesite with address monitoring.somesite.com
if failed url
https://user@gmail.com:password@monitoring.somesite.com/


Doesn't seem to be anything mentioned in the documenation.



What is the correct method to include special characters in the username?









share























  • user%40gmail.com might work.

    – Gerald Schneider
    Jan 5 '18 at 18:29
















1















Monit gives me a syntax error when the username contains an "@", which would be quite common. For example, 'user@gmail' below:



check host somesite with address monitoring.somesite.com
if failed url
https://user@gmail.com:password@monitoring.somesite.com/


Doesn't seem to be anything mentioned in the documenation.



What is the correct method to include special characters in the username?









share























  • user%40gmail.com might work.

    – Gerald Schneider
    Jan 5 '18 at 18:29














1












1








1








Monit gives me a syntax error when the username contains an "@", which would be quite common. For example, 'user@gmail' below:



check host somesite with address monitoring.somesite.com
if failed url
https://user@gmail.com:password@monitoring.somesite.com/


Doesn't seem to be anything mentioned in the documenation.



What is the correct method to include special characters in the username?









share














Monit gives me a syntax error when the username contains an "@", which would be quite common. For example, 'user@gmail' below:



check host somesite with address monitoring.somesite.com
if failed url
https://user@gmail.com:password@monitoring.somesite.com/


Doesn't seem to be anything mentioned in the documenation.



What is the correct method to include special characters in the username?







monit





share












share










share



share










asked Dec 24 '17 at 0:24









jacksonpjacksonp

26125




26125













  • user%40gmail.com might work.

    – Gerald Schneider
    Jan 5 '18 at 18:29



















  • user%40gmail.com might work.

    – Gerald Schneider
    Jan 5 '18 at 18:29

















user%40gmail.com might work.

– Gerald Schneider
Jan 5 '18 at 18:29





user%40gmail.com might work.

– Gerald Schneider
Jan 5 '18 at 18:29










1 Answer
1






active

oldest

votes


















2














Monit cannot parse %40 to @ But it supports HTTP headers



For example the URL:



https://user@mail.com:password@monit.test.basic


should be converted to



Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==


For example:



check host BasicAuth with address monit.test.basic
if failed
port 443
with protocol https method GET
with http headers [Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==]
then alert
else if succeeded then alert


Document: https://mmonit.com/monit/documentation/monit.html#HTTP






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "2"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f889485%2fmonit-checking-url-with-basic-auth-but-username-has-in-it%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Monit cannot parse %40 to @ But it supports HTTP headers



    For example the URL:



    https://user@mail.com:password@monit.test.basic


    should be converted to



    Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==


    For example:



    check host BasicAuth with address monit.test.basic
    if failed
    port 443
    with protocol https method GET
    with http headers [Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==]
    then alert
    else if succeeded then alert


    Document: https://mmonit.com/monit/documentation/monit.html#HTTP






    share|improve this answer






























      2














      Monit cannot parse %40 to @ But it supports HTTP headers



      For example the URL:



      https://user@mail.com:password@monit.test.basic


      should be converted to



      Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==


      For example:



      check host BasicAuth with address monit.test.basic
      if failed
      port 443
      with protocol https method GET
      with http headers [Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==]
      then alert
      else if succeeded then alert


      Document: https://mmonit.com/monit/documentation/monit.html#HTTP






      share|improve this answer




























        2












        2








        2







        Monit cannot parse %40 to @ But it supports HTTP headers



        For example the URL:



        https://user@mail.com:password@monit.test.basic


        should be converted to



        Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==


        For example:



        check host BasicAuth with address monit.test.basic
        if failed
        port 443
        with protocol https method GET
        with http headers [Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==]
        then alert
        else if succeeded then alert


        Document: https://mmonit.com/monit/documentation/monit.html#HTTP






        share|improve this answer















        Monit cannot parse %40 to @ But it supports HTTP headers



        For example the URL:



        https://user@mail.com:password@monit.test.basic


        should be converted to



        Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==


        For example:



        check host BasicAuth with address monit.test.basic
        if failed
        port 443
        with protocol https method GET
        with http headers [Authorization: Basic dXNlckBtYWlsLmNvbTpwYXNzd29yZA==]
        then alert
        else if succeeded then alert


        Document: https://mmonit.com/monit/documentation/monit.html#HTTP







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 5 mins ago









        Eddie C.

        389211




        389211










        answered Jul 7 '18 at 6:37









        Hieu HuynhHieu Huynh

        215




        215






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f889485%2fmonit-checking-url-with-basic-auth-but-username-has-in-it%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

            Список ссавців Італії Природоохоронні статуси | Список |...

            Українські прізвища Зміст Історичні відомості |...