[Check_mk (english)] how to monitor squid caching server status running on mac

Hi,

We have about a dozen mac minis running squid proxy, and I’d like to monitor them using check_mk.

How should I do this? I have found a squid mkp

http://mathias-kettner.com/check_mk_exchange_file.php?HTML=&file=squid-1.3.mkp

but am not sure how to install it in a mac environment. The macs are running 10.9 through 10.12.

Thanks in advance,

Marc

Once you install the mkp into your Check_MK, the Linux agent is fairly generic. But requires that you have a program called squidclient on your PATH when the agent on the Mac is called.

So, if you can execute squidclient (non-qualified) from a shell on your Macs, just copy the linux plugin into your local plugins dir on your Mac and it will likely work.

···

On 02/16/2018 01:45 PM, Marc Bruell wrote:

Hi,

We have about a dozen mac minis running squid proxy, and I'd like to monitor them using check_mk.

How should I do this? I have found a squid mkp

http://mathias-kettner.com/check_mk_exchange_file.php?HTML=&file=squid-1.3.mkp

but am not sure how to install it in a mac environment. The macs are running 10.9 through 10.12.

I installed check_mk raw 1.2.8p11 last year using OMD. I love it! However, I just tried to install the squid-1.3.mkp check on my check_mk server, and found that I don’t have the command: check_mk which is used to install the extension.

I’m running this on ubuntu 16.04.

Does installing check_mk via OMD exclude the check_mk command? Is there a way to add it? If not, is there another command to use to install extensions given an OMD based install?

Thanks,

Marc

···

On Fri, Feb 16, 2018 at 12:55 PM, Christopher Cox chriscox@endlessnow.com wrote:

Hi,

We have about a dozen mac minis running squid proxy, and I’d like to monitor them using check_mk.

How should I do this? I have found a squid mkp

http://mathias-kettner.com/check_mk_exchange_file.php?HTML=&file=squid-1.3.mkp

but am not sure how to install it in a mac environment. The macs are running 10.9 through 10.12.
On 02/16/2018 01:45 PM, Marc Bruell wrote:

Once you install the mkp into your Check_MK, the Linux agent is fairly generic. But requires that you have a program called squidclient on your PATH when the agent on the Mac is called.

So, if you can execute squidclient (non-qualified) from a shell on your Macs, just copy the linux plugin into your local plugins dir on your Mac and it will likely work.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

I installed check_mk raw 1.2.8p11 last year using OMD. I love it! However, I just tried to install the squid-1.3.mkp check on my check_mk server, and found that I don't have the command: check_mk which is used to install the extension.

You should have check_mk. Are you installing (properly) as the monitor user (whatever user you used for that)?

Check to see who the OMD user for Ubuntu's install of check_mk and become that user to install the mkp

···

On 02/20/2018 03:02 PM, Marc Bruell wrote:

I'm running this on ubuntu 16.04.

Does installing check_mk via OMD exclude the check_mk command? Is there a way to add it? If not, is there another command to use to install extensions given an OMD based install?

Thanks for the tip. Seeing the root prompt in the documentation threw me, but your solution did the trick. When I change the user to the one I specified in omd, I can find the check_mk command.

Given that I didn’t install an agent on the mac, but just placed the mac script on my macs, I don’t believe I have a plugins directory.

Once you install the mkp into your Check_MK, the Linux agent is fairly generic. But requires that you have a program called squidclient on your PATH when the agent on the Mac is called.

So, if you can execute squidclient (non-qualified) from a shell on your Macs,

I can’t find a program called squidclient anywhere on my macs.

just copy the linux plugin into your local plugins dir on your Mac and it will likely work.

Is this the plugin I’d use: /usr/share/sosreport/sos/plugins/squid.py

Where should I create the plugins directory on my macs?

Thanks,

Marc

···

On Tue, Feb 20, 2018 at 2:06 PM, Christopher Cox chriscox@endlessnow.com wrote:

I installed check_mk raw 1.2.8p11 last year using OMD. I love it! However, I just tried to install the squid-1.3.mkp check on my check_mk server, and found that I don’t have the command: check_mk which is used to install the extension.

I’m running this on ubuntu 16.04.

Does installing check_mk via OMD exclude the check_mk command? Is there a way to add it? If not, is there another command to use to install extensions given an OMD based install?
On 02/20/2018 03:02 PM, Marc Bruell wrote:

You should have check_mk. Are you installing (properly) as the monitor user (whatever user you used for that)?

Check to see who the OMD user for Ubuntu’s install of check_mk and become that user to install the mkp


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

hmmm... oddly, the OSX agent (mine didnt) doesn't have a plugin section. Rats... means you may have to embed it into the mac OSX check_mk_agent file itself.

···

On 02/20/2018 03:59 PM, Marc Bruell wrote:

Thanks for the tip. Seeing the root prompt in the documentation threw me, but your solution did the trick. When I change the user to the one I specified in omd, I can find the check_mk command.

Given that I didn't install an agent on the mac, but just placed the mac script on my macs, I don't believe I have a plugins directory.

    Once you install the mkp into your Check_MK, the Linux agent is
    fairly generic. But requires that you have a program called
    squidclient on your PATH when the agent on the Mac is called.

    So, if you can execute squidclient (non-qualified) from a shell on
    your Macs,

I can't find a program called squidclient anywhere on my macs.

    just copy the linux plugin into your local plugins dir on your Mac
    and it will likely work.

Is this the plugin I'd use: /usr/share/sosreport/sos/plugins/squid.py

Where should I create the plugins directory on my macs?

Thanks,

Marc

On Tue, Feb 20, 2018 at 2:06 PM, Christopher Cox > <chriscox@endlessnow.com <mailto:chriscox@endlessnow.com>> wrote:

    On 02/20/2018 03:02 PM, Marc Bruell wrote:

        I installed check_mk raw 1.2.8p11 last year using OMD. I love
        it! However, I just tried to install the squid-1.3.mkp check on
        my check_mk server, and found that I don't have the command:
        check_mk which is used to install the extension.

    You should have check_mk. Are you installing (properly) as the
    monitor user (whatever user you used for that)?

    Check to see who the OMD user for Ubuntu's install of check_mk and
    become that user to install the mkp

        I'm running this on ubuntu 16.04.

        Does installing check_mk via OMD exclude the check_mk command?
        Is there a way to add it? If not, is there another command to
        use to install extensions given an OMD based install?

    _______________________________________________
    checkmk-en mailing list
    checkmk-en@lists.mathias-kettner.de
    <mailto:checkmk-en@lists.mathias-kettner.de>
    http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
    <http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en&gt;

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

All I really want to do is check to make sure that squid processes are running on these machines. Is there another way to check that and get a reliable answer?

Thanks,

Marc

···

On Tue, Feb 20, 2018 at 3:12 PM, Christopher Cox chriscox@endlessnow.com wrote:

hmmm… oddly, the OSX agent (mine didnt) doesn’t have a plugin section. Rats… means you may have to embed it into the mac OSX check_mk_agent file itself.

On 02/20/2018 03:59 PM, Marc Bruell wrote:

Thanks for the tip. Seeing the root prompt in the documentation threw me, but your solution did the trick. When I change the user to the one I specified in omd, I can find the check_mk command.

Given that I didn’t install an agent on the mac, but just placed the mac script on my macs, I don’t believe I have a plugins directory.

Once you install the mkp into your Check_MK, the Linux agent is

fairly generic.  But requires that you have a program called

squidclient on your PATH when the agent on the Mac is called.



So, if you can execute squidclient (non-qualified) from a shell on

your Macs,

I can’t find a program called squidclient anywhere on my macs.

just copy the linux plugin into your local plugins dir on your Mac

and it will likely work.

Is this the plugin I’d use: /usr/share/sosreport/sos/plugins/squid.py

Where should I create the plugins directory on my macs?

Thanks,

Marc

On Tue, Feb 20, 2018 at 2:06 PM, Christopher Cox <chriscox@endlessnow.com mailto:chriscox@endlessnow.com> wrote:

On 02/20/2018 03:02 PM, Marc Bruell wrote:



    I installed check_mk raw 1.2.8p11 last year using OMD. I love

    it! However, I just tried to install the squid-1.3.mkp check on

    my check_mk server, and found that I don't have the command:

    check_mk which is used to install the extension.





You should have check_mk.  Are you installing (properly) as the

monitor user (whatever user you used for that)?



Check to see who the OMD user for Ubuntu's install of check_mk and

become that user to install the mkp





    I'm running this on ubuntu 16.04.



    Does installing check_mk via OMD exclude the check_mk command?

    Is there a way to add it? If not,  is there another command to

    use to install extensions given an OMD based install?



_______________________________________________

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

<mailto:checkmk-en@lists.mathias-kettner.de>

[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

<[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)>

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

You can probably just add:

if type squidclient > /dev/null 2>&1 ; then
    echo "<<<check_squid>>>"
    squidclient -p 3128 -T2 mgr:5min | grep =
fi

to the bottom of your check_mk_agent script on OSX.

···

On 02/20/2018 04:16 PM, Marc Bruell wrote:

All I really want to do is check to make sure that squid processes are running on these machines. Is there another way to check that and get a reliable answer?

Thanks,

Marc

On Tue, Feb 20, 2018 at 3:12 PM, Christopher Cox > <chriscox@endlessnow.com <mailto:chriscox@endlessnow.com>> wrote:

    hmmm... oddly, the OSX agent (mine didnt) doesn't have a plugin
    section. Rats... means you may have to embed it into the mac OSX
    check_mk_agent file itself.

    On 02/20/2018 03:59 PM, Marc Bruell wrote:

        Thanks for the tip. Seeing the root prompt in the documentation
        threw me, but your solution did the trick. When I change the
        user to the one I specified in omd, I can find the check_mk command.

        Given that I didn't install an agent on the mac, but just placed
        the mac script on my macs, I don't believe I have a plugins
        directory.

          Once you install the mkp into your Check_MK, the Linux agent is
          fairly generic. But requires that you have a program called
          squidclient on your PATH when the agent on the Mac is called.

          So, if you can execute squidclient (non-qualified) from a
        shell on
          your Macs,

        I can't find a program called squidclient anywhere on my macs.

          just copy the linux plugin into your local plugins dir on
        your Mac
          and it will likely work.

        Is this the plugin I'd
        use: /usr/share/sosreport/sos/plugins/squid.py

        Where should I create the plugins directory on my macs?

        Thanks,

        Marc

        On Tue, Feb 20, 2018 at 2:06 PM, Christopher Cox > <chriscox@endlessnow.com <mailto:chriscox@endlessnow.com> > <mailto:chriscox@endlessnow.com > <mailto:chriscox@endlessnow.com>>> wrote:

          On 02/20/2018 03:02 PM, Marc Bruell wrote:

          I installed check_mk raw 1.2.8p11 last year using OMD.
        I love
          it! However, I just tried to install the squid-1.3.mkp
        check on
          my check_mk server, and found that I don't have the
        command:
          check_mk which is used to install the extension.

          You should have check_mk. Are you installing (properly) as the
          monitor user (whatever user you used for that)?

          Check to see who the OMD user for Ubuntu's install of
        check_mk and
          become that user to install the mkp

          I'm running this on ubuntu 16.04.

          Does installing check_mk via OMD exclude the check_mk
        command?
          Is there a way to add it? If not, is there another
        command to
          use to install extensions given an OMD based install?

          _______________________________________________
          checkmk-en mailing list
        checkmk-en@lists.mathias-kettner.de
        <mailto:checkmk-en@lists.mathias-kettner.de>
          <mailto:checkmk-en@lists.mathias-kettner.de
        <mailto:checkmk-en@lists.mathias-kettner.de>>
        http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
        <http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en&gt;
                    <http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
        <http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en&gt;&gt;

        _______________________________________________
        checkmk-en mailing list
        checkmk-en@lists.mathias-kettner.de
        <mailto:checkmk-en@lists.mathias-kettner.de>
        http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
        <http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en&gt;

    _______________________________________________
    checkmk-en mailing list
    checkmk-en@lists.mathias-kettner.de
    <mailto:checkmk-en@lists.mathias-kettner.de>
    http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
    <http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en&gt;

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

I didn’t see anything related to squid on the output when I added that snippet to the bottom of my script. I went ahead and searched for services in the off chance that squid would get picked up, but it did not?

Any other thoughts?

···

Thanks,

Marc

On Tue, Feb 20, 2018 at 3:22 PM, Christopher Cox chriscox@endlessnow.com wrote:

You can probably just add:

if type squidclient > /dev/null 2>&1 ; then

echo “<<<check_squid>>>”

squidclient -p 3128 -T2 mgr:5min | grep =

fi

to the bottom of your check_mk_agent script on OSX.

On 02/20/2018 04:16 PM, Marc Bruell wrote:

All I really want to do is check to make sure that squid processes are running on these machines. Is there another way to check that and get a reliable answer?

Thanks,

Marc

On Tue, Feb 20, 2018 at 3:12 PM, Christopher Cox <chriscox@endlessnow.com mailto:chriscox@endlessnow.com> wrote:

hmmm... oddly, the OSX agent (mine didnt) doesn't have a plugin

section.  Rats... means you may have to embed it into the mac OSX

check_mk_agent file itself.





On 02/20/2018 03:59 PM, Marc Bruell wrote:



    Thanks for the tip. Seeing the root prompt in the documentation

    threw me, but your solution did the trick. When I change the

    user to the one I specified in omd, I can find the check_mk command.



    Given that I didn't install an agent on the mac, but just placed

    the mac script on my macs, I don't believe I have a plugins

    directory.



         Once you install the mkp into your Check_MK, the Linux agent is

         fairly generic.  But requires that you have a program called

         squidclient on your PATH when the agent on the Mac is called.



         So, if you can execute squidclient (non-qualified) from a

    shell on

         your Macs,



    I can't find a program called squidclient anywhere on my macs.



         just copy the linux plugin into your local plugins dir on

    your Mac

         and it will likely work.





    Is this the plugin I'd

    use: /usr/share/sosreport/sos/plugins/squid.py



    Where should I create the plugins directory on my macs?



    Thanks,



    Marc



    On Tue, Feb 20, 2018 at 2:06 PM, Christopher Cox

    <chriscox@endlessnow.com <mailto:chriscox@endlessnow.com>

<mailto:chriscox@endlessnow.com

    <mailto:chriscox@endlessnow.com>>> wrote:



         On 02/20/2018 03:02 PM, Marc Bruell wrote:



             I installed check_mk raw 1.2.8p11 last year using OMD.

    I love

             it! However, I just tried to install the squid-1.3.mkp

    check on

             my check_mk server, and found that I don't have the

    command:

             check_mk which is used to install the extension.





         You should have check_mk.  Are you installing (properly) as the

         monitor user (whatever user you used for that)?



         Check to see who the OMD user for Ubuntu's install of

    check_mk and

         become that user to install the mkp





             I'm running this on ubuntu 16.04.



             Does installing check_mk via OMD exclude the check_mk

    command?

             Is there a way to add it? If not,  is there another

    command to

             use to install extensions given an OMD based install?



         _______________________________________________

         checkmk-en mailing list

    checkmk-en@lists.mathias-kettner.de

    <mailto:checkmk-en@lists.mathias-kettner.de>

         <mailto:checkmk-en@lists.mathias-kettner.de


    <mailto:checkmk-en@lists.mathias-kettner.de>>

    [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

    <[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)>

                <[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

    <[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)>>









    _______________________________________________

    checkmk-en mailing list

    checkmk-en@lists.mathias-kettner.de

    <mailto:checkmk-en@lists.mathias-kettner.de>

    [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

    <[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)>



_______________________________________________

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

<mailto:checkmk-en@lists.mathias-kettner.de>

[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

<[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)>

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en