View previous topic :: View next topic |
Author |
Message |
boospy Guru
Joined: 07 Feb 2010 Posts: 308 Location: Austria
|
Posted: Wed Nov 16, 2016 12:43 am Post subject: Works with someone the plugins in check_mk agent? |
|
|
Hello,
for some weeks i've written to the check_mk mailingslist. But have no solution for my problem, so I'am here.
I have some gentooservers, we are changeing from nagios to check_mk. Installed the agent over the ebuild and also tested manualy. Always the same problem. All plugins in the plugindirectory:
Code: | /usr/lib/check_mk_agent/plugins/ |
did not send informations to the check_mk server. But when i execute the plugins manualy on they display the right data.
So has anyone work with this already?
Gentoo up to date.
thanks |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Wed Nov 16, 2016 11:37 am Post subject: |
|
|
Hi,
are you trying to use native nagios plugins with check_mk?
greetings bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
boospy Guru
Joined: 07 Feb 2010 Posts: 308 Location: Austria
|
Posted: Wed Nov 16, 2016 12:51 pm Post subject: |
|
|
bbgermany wrote: | Hi,
are you trying to use native nagios plugins with check_mk?
greetings bb |
No, only the checkmk plugins, to copy under the directory /usr/lib/check_mk_agent/plugins/. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Thu Nov 17, 2016 7:21 am Post subject: |
|
|
Hi,
let me guess, you copy for example mk_mysql into the directory, and if you run check_mk_agent on the client everything shows up for mysql. But if you try to connect via telnet <client> 6556, the mysql section is missing from the agent output. Is this correct?
If yes, you suffer the same issue I do. I have not found a solution up to now, but you can work around this, if you run the check via ssh. All output will arrive at the check_mk server afterwards.
greets, bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
boospy Guru
Joined: 07 Feb 2010 Posts: 308 Location: Austria
|
Posted: Thu Nov 17, 2016 7:38 pm Post subject: |
|
|
bbgermany wrote: | Hi,
let me guess, you copy for example mk_mysql into the directory, and if you run check_mk_agent on the client everything shows up for mysql. But if you try to connect via telnet <client> 6556, the mysql section is missing from the agent output. Is this correct?
|
Yes exactly!
And yes ssh works for me too, very thanks! But btw, have you solved the OSname too in the inventory? Because Gentoo does not show his OS name. For example:
Code: | Code Name Jessie
Kernel Architecture x86_64
Kernel Version 4.4.21-1-pve
Name Debian 8.6
Type linux
Vendor Debian
Version 8.6 |
Code: | Kernel Architecture x86_64
Kernel Version 4.3.3-gentoo
Type linux
Vendor Gentoo |
So the Name is not shown. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Fri Nov 18, 2016 9:26 am Post subject: |
|
|
Hi,
i havent fixed it fully, but you need mk_inventory in /usr/lib/check_mk_agent/plugins and you need to have sys-apps/lsb-release installed, since mk_inventory checkf for /etc/lsb-release.
My installation doesnt show up Gentoo as well. But I think, that can be fixed. Maybe, I will check it on the weekend.
Greets, bb
EDIT: I had already time to check. Gentoo is not really full of details in this case. I had to install the check_mk_agent 1.2.6p12 of my Check_MK instance to get more than the kernelversion and the architecture. But it just tells me the same like your installation does. Another issue is, that this agent doesnt support cups queues. So i cannot get information about my printers anymore _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
boospy Guru
Joined: 07 Feb 2010 Posts: 308 Location: Austria
|
Posted: Fri Nov 18, 2016 8:59 pm Post subject: |
|
|
Since change to SSH one system have sometimes a load from 100 and more But this value is not right. The Server has no nload. Had you this phenomenon too? |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Sat Nov 19, 2016 2:08 pm Post subject: |
|
|
Hi,
not up to now. Sorry
Greets, bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
boospy Guru
Joined: 07 Feb 2010 Posts: 308 Location: Austria
|
Posted: Sat Nov 19, 2016 2:32 pm Post subject: |
|
|
bbgermany wrote: | Hi,
not up to now. Sorry
Greets, bb |
No problem, nice WE! |
|
Back to top |
|
|
boospy Guru
Joined: 07 Feb 2010 Posts: 308 Location: Austria
|
Posted: Sat Nov 19, 2016 9:51 pm Post subject: |
|
|
Supplement: On one Gentoosystem (an kodiclient) this with the inventory and the OS name works out of the box, so I think there is something missing. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Mon Nov 21, 2016 6:15 am Post subject: |
|
|
Hi,
you should check the installed packages and the configured use-flags then.
Greets, bb
EDIT: Oh and thank you _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
boospy Guru
Joined: 07 Feb 2010 Posts: 308 Location: Austria
|
Posted: Mon Nov 21, 2016 4:31 pm Post subject: |
|
|
For the inventory you can change this:
copy ~/share/check_mk/inventory/lnx_distro to ~/local/share/check_mk/inventory/ change the line 116 from "for line in lines:" to
Code: | for line in [l for l in lines if "=" in l]: |
I have this from the check_mk Mailinglist. And it works. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Tue Nov 22, 2016 7:55 am Post subject: |
|
|
Hi,
can you post the whole section please. The modified and unmodified would be great.
Thank you and greet bb. _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
boospy Guru
Joined: 07 Feb 2010 Posts: 308 Location: Austria
|
Posted: Tue Nov 22, 2016 7:56 am Post subject: |
|
|
Quote: | der Fehler liegt daran, dass in der Sektion lnx_distro hinter dem letzten Pipezeichen nichts mehr kommt. Die Inventurpruefung (~/share/check_mk/inventory/lnx_distro) erwartet, dass da so nicht.
Kannst du mal die Datei "/etc/lsb-release" vom Server als Anhang schicken?
Als Workaround kannst du ~/share/check_mk/inventory/lnx_distro ins Verzeichnis ~/local/share/check_mk/inventory/ kopieren und dort in Zeile 116 statt "for line in lines:" dies eintragen:
for line in [l for l in lines if "=" in l]: |
|
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Tue Nov 22, 2016 8:30 am Post subject: |
|
|
Thank you/Danke,
but in line 116 there is no such entry./aber in Zeile 116 gibt es solch einen Eintrag nicht bei mir.
Greets/MfG. bb _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|