chrisss404 / check-mk-arm

Checkmk for Raspberry Pi.
182 stars 23 forks source link

Distributed Monitoring possible? #44

Closed webernetz closed 2 years ago

webernetz commented 2 years ago

Hey Christian,

one question: have you ever tried to run checkmk on a Raspberry Pi in the "Distributed Monitoring" mode? I am using the latest version (2.0.0p12) on a Raspberry Pi 3 B+ and it COMPLETELY kills the Pi after adding the first host. More precisely:

Any ideas?

Thanks a lot Johannes

chrisss404 commented 2 years ago

Hey Johannes,

sorry, I have no experience with distributed monitoring. Maybe someone else can help out here?

BR Christian

sergiodadi commented 2 years ago

Hello,

sorry, I have no experience with distributed monitoring. Maybe someone else can help out here ?

I use "distributing monitoring" on 2 Raspberry 4 (4 GB) 200 km away , I have no problem, see the screen shot . it is personal use 🙂

Linux r-n.nojo.fr 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux

check_mk version 2.0.0p12 CRE

lsb_release -a

No LSB modules are available.

Distributor ID: Raspbian

Description: Raspbian GNU/Linux 10 (buster)

Release: 10

Codename: buster

best regards

-- Serge

BR

Christian

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chrisss404/check-mk-arm/issues/44#issuecomment-945979569, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACN7SEP6QCGN66JXAVOO273UHRHTFANCNFSM5GG2I5PA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Serge - Le site: https://www.nojo.fr/ 😄

sergiodadi commented 2 years ago

Hello,

attached files are not permit on gihhub.

You can see the screenshot here: https://piwigo.nojo.fr/index.php?/category/231


Serge

Le lun. 18 oct. 2021 à 19:04, Christian Hofer @.***> a écrit :

Hey Johannes,

sorry, I have no experience with distributed monitoring. Maybe someone else can help out here?

BR Christian

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chrisss404/check-mk-arm/issues/44#issuecomment-945979569, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACN7SEP6QCGN66JXAVOO273UHRHTFANCNFSM5GG2I5PA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Serge - Le site: https://www.nojo.fr/ 😄

webernetz commented 2 years ago

Hey @sergiodadi,

thanks a lot for this information. As far as I can see on the screenshots you're not using the "configuration connection", don't you? Maybe this gives some extra load on my Pi. You are using the 2x Raspberry Pi as standalone checkmk instances, while the status of all hosts is shown on your main site?

Kind regards Johannes

webernetz commented 2 years ago

Maybe my problems are not related to the distributed monitoring but to something else. I just tried another scenario in which I used a standalone instance of checkmk on the Pi. By just changing something on the "site management" I got already this:

grafik

I am using a Raspberry Pi 3B+ with Ubuntu 20.04.3 LTS (Focal Fossa). Maybe the apache defaults are too heavy for the Pi? The memory is completely exhausted...

sergiodadi commented 2 years ago

Hi,

thanks a lot for this information. As far as I can see on the screenshots you're not using the "configuration connection", don't you?

see the main local site configuration here : https://piwigo.nojo.fr/picture.php?/14878/category/231 see the remote site configuration here: https://piwigo.nojo.fr/picture.php?/14879/category/231

I am using a Raspberry Pi 3B+ with Ubuntu 20.04.3 LTS (Focal Fossa)

My 2 Raspberry run under Raspbian GNU/Linux 10 (buster)

You have 1 GB of memory , I have 4 GB 😉

-- Serge - Le site: https://www.nojo.fr/

webernetz commented 2 years ago

Ok, thanks again for your reply.

I also got an answer from a checkmk developer on Twitter:

Checkmk may work with tuning in specific constellations, but it won’t be much fun. That’s also one important reason why we don’t offer official builds. A NUC, for example, will be a much better fitting platform

https://twitter.com/LarsMichelsen/status/1450552079836135429

So I'm still wondering why all other users of this checkmk port to the Raspi don't face these issues such as I do. Don't know. Maybe I should try a Raspberry Pi 4 with at least 2 GB or RAM.

Cheers Johannes

chrisss404 commented 2 years ago

Hey Johannes,

another thing you can check is your SD card, more precisely the cpu's I/O wait percentage. It can have a huge impact on your pi's performance. Using top it's the value labeled wa: iowait

I am running checkmk on a rpi3 monitoring 5 hosts without issues. My pi's idle resource consumption: memor-usage-on-a-pi3-raspbian

BR Christian

webernetz commented 2 years ago

Ok. Thanks for the hint. I wasn't aware of this "wa" label. Will have a look at it.

One last question: May this be related to my used Ubuntu version on the Pi rather than Raspberry Pi OS (raspbian)? Maybe some defaults from the apache are a little bit different?

chrisss404 commented 2 years ago

May this be related to my used Ubuntu version on the Pi rather than Raspberry Pi OS (raspbian)?

It could be related. Not because of Ubuntu vs Raspberry Pi OS, but because of 64bit (Ubuntu) vs 32bit (Raspberry Pi OS). See: what-is-the-memory-usage-overhead-for-a-64-bit-application

Maybe some defaults from the apache are a little bit different?

I don't think so, I am not aware of any.

webernetz commented 2 years ago

Oh, that's an interesting point. Thanks for the hint!

(I have migrated my checkmk distributed monitoring site to an Intel NUC. Das geht jetzt ab wie Schmitz' Katze! ;))

webernetz commented 2 years ago

Hi guys. I finally got it running on the Raspberry Pi 3+ ---->>>> I simply used Raspberry Pi OS with its 32 bit rather than Ubuntu with 64 bit. Now a running (distributed) checkmk instance with a single host looks like this while activating the site:

grafik

Nice. ;)