[Check_mk (english)] Setup on FreeBSD

Could someone please help me with how I can install check_mk on FREEBSD. I
try the setup script but it errors everytime. It says the download file
should have the source code in it but I do not see it anywhere

Hey Mike -- I've been hacking on the freeBSD check_mk for some time
now. Here is the short answer:
* get the check_mk_agent from here:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=blob_plain;f=agents/check_mk_agent.freebsd;hb=0be71fd4e13d4354b5db9e4687c6e257adc82200
* drop it on your freebsd box (I put it in the home folder of the
"nagios" user I created there)
* setup passwordless ssh from your nagios server to your freebsd box
(putting the private key in the .ssh for whatever user your nagios
/check_mk runs as)
* Edit your /etc/check_mk/main.mk and add the following:

datasource_programs = [
        ( "ssh -l nagios <IP> ./check_mk_agent", [ 'HOSTNAME' ] ),
]

replace HOSTNAME above with the host or hosts (comma delimited) that
you want to run check_mk_agent over ssh. Note the magical "<IP>"
actually does get replaced by check_mk when it calls this agent, so
leave that verbatim. More details on all that can be found here:
http://mathias-kettner.de/checkmk_datasource_programs.html

Let me know if you need any more details.

···

---
Mark McCorkle | IT Operations Lead
Proclivity Systems
22 West 19th St., Ninth Floor
New York, NY 10011
p 646.237.3727
mmccorkle@proclivitysystems.com
www.proclivitysystems.com
Proclivity® | We Value Your Customers™

This message is the property of Proclivity Systems, Inc. and is
intended only for the use of the addressee(s), and may contain
material that is confidential and privileged for the sole use of the
intended recipient. If you are not the intended recipient, reliance
or forwarding without express permission is strictly prohibited;
please contact the sender and delete all copies. (pi)

On Tue, Oct 18, 2011 at 12:51 PM, Mike Wilson <mwi@berkeleycollege.edu> wrote:

Could someone please help me with how I can install check_mk on FREEBSD. I
try the setup script but it errors everytime. It says the download file
should have the source code in it but I do not see it anywhere

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

Thanks Mark but I am looking to run Nagios and check_mk from the freebsd
box

Oh, you want to put the Nagios / Check_MK server on FreeBSD? I don't
think that is supported, and I've never tried. Considering the effort
I've put into the agent to get it working with my FreeBSD 8.2 servers
just as an agent, I doubt the server is going to work well there. I'd
recommend you build a box based on OMDistro.org (same guys that
build/maintain check_mk) and just use agents to monitor your FreeBSD
boxes.

As always, just my $.02

···

---
Mark McCorkle | IT Operations Lead
Proclivity Systems
22 West 19th St., Ninth Floor
New York, NY 10011
p 646.237.3727
mmccorkle@proclivitysystems.com
www.proclivitysystems.com
Proclivity® | We Value Your Customers™

This message is the property of Proclivity Systems, Inc. and is
intended only for the use of the addressee(s), and may contain
material that is confidential and privileged for the sole use of the
intended recipient. If you are not the intended recipient, reliance
or forwarding without express permission is strictly prohibited;
please contact the sender and delete all copies. (pi)

On Tue, Oct 18, 2011 at 1:39 PM, Mike Wilson <mwi@berkeleycollege.edu> wrote:

Thanks Mark but I am looking to run Nagios and check_mk from the freebsd
box

Hi,

last time I looked livestatus was right there in the ports.
FreeBSD was the first to that as far as I know :slight_smile:
Installing that would be the first step.
I would assume you won't have a lot of trouble building Check_MK itself on FreeBSD either. Check out the build instructions and make dist, that should get you going.

Oh, you want to put the Nagios / Check_MK server on FreeBSD? I don't
think that is supported, and I've never tried. Considering the effort
I've put into the agent to get it working with my FreeBSD 8.2 servers
just as an agent, I doubt the server is going to work well there. I'd
recommend you build a box based on OMDistro.org (same guys that
build/maintain check_mk) and just use agents to monitor your FreeBSD
boxes.

Thanks Mark but I am looking to run Nagios and check_mk from the freebsd
box

As some advice, the benefits of using OMD outweigh running a few Linux VMs by many times.
A few months ago I did the last "manual" install of Nagios+Check_MK+Multisite. That was on a CentOS4 box using NetBSD pkgsrc to get reasonably new PHP & Stuff onto this old CentOS.

in the end, it all worked, but I felt like having wasted half a day where I should have just typed

"omd create munich"

I'll admit the install will be a lot less hassle if you already have Nagios and all running, but still...

p.s.: you could always try running OMD in the linuxulator.

Greetings,
Florian

···

On 10/18/11 20:26, Mark McCorkle wrote:

On Tue, Oct 18, 2011 at 1:39 PM, Mike Wilson<mwi@berkeleycollege.edu> wrote:

--
Mathias Kettner GmbH | \/ | |/ / M A T H I A S K E T T N E R
Florian Heigl | |\/| | ' /
Steinstr. 44 | | | | . \ Linux Beratung & Schulung
81667 M�nchen |_| |_|_|\_\ http://mathias-kettner.de
Tel.: 089 / 1890 4210
Fax.: 089 / 1890 4211 Mail: fh@mathias-kettner.de