Re: [Check_mk (english)] UNKNOWN Error getting data from agent
I think you should first read about some things yourself:
Here you'll find information about the agent, local checks, plugins, mrpe, writing checks and more...
Am 18.04.2016 17:25 schrieb "Alejandro Olivan Alvarez" <alejandro.olivan.alvarez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> I think its time to stop, break, halt ....and recall info... it is
> gettin hot now.... /usr/lib/check_mk_agent/plugins ?!?!?!
> that sounds very familiar to my munin world!!!
> Until now, I assumed check_mk_agent was a long script, that was called
> by check_mk and that was able to provid info back.
> Plugins, on the other hand was Nagios stuff...
> To me, this meant thinking absolutely on the contrary to munin, where
> munin-node agent is totally useless unless you populate its plugins
> folder with all and every plugins you want it to run every time
> munin server connects in, and fetches info (munin plugins were scripts,
> that could be written in any scripting language, and could be run
> directly on the prompt, or tested with the munin-run command).
> Now, you tell me there is a certain path, were (I guess plugins) have to
> be put (or linked I suppose) for check_mk_agent... this, unleashes a ton
> of questions!
> Does this means that the check_mk_agent works in two ways at the
> same time: running its "main" script and runnin external plugins? Where
> are those plugins located?, are they common or OS dependant?, Are they
> related or independant of Nagios plugins? when are they run? Is there a
> relation between the GUI "manual check" plugins long list and the
> available plugins? why could I add a "manual check" for lnx_if plugin
> (and it worked) and why apache_status plugin does not?
> Sorry for so many questions... but I think this is getting really close
> to the core matter of the thing...
> Thank you so much guys!!!
> On Mon, 18 Apr 2016 14:59:36 +0000
> Marcel Schulte <schulte.marcel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > And here's the other thread ;)
> > Why did you do it with manual check? Usually you have to put the
> > apache_status in the plugins folder of the agent (most likely
> > /usr/lib/check_mk_agent/plugins/ and simply discover the host.
> > If this does not work check what the plugin puts out if executed as
> > root user.
> > Regards,
> > Marcel
> > Alejandro Olivan Alvarez <alejandro.olivan.alvarez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> schrieb
> > am Mo., 18. Apr. 2016 16:52:
> > > Hi list...
> > >
> > > I'm tryng to monitor the apache server that runs on the
> > > nagios/check_mk server itself.
> > >
> > > Being a complete noob, and after googling around, I managed to
> > > define a "manual check" for the specific host.
> > > After applying changes, the host shows a new service on the lists.
> > >
> > > Problem is, it doesn't show apache related stuff, but instead, at
> > > the inventory list there appear the following entry in the "Manual
> > > services (defined in main.mk)" table:
> > >
> > > UNKN apache_status 127.0.0.1:80 Apache
> > > 127.0.0.1:80 Status Error getting data from agent
> > >
> > > What am I missing? What does that means? If the host has the
> > > check_mk agent deb package installed... why the agent does not
> > > presents data?
> > >
> > > Does the agent needs aditional setup in order to perform "extra"
> > > tasks such as apache monitoring? (in munin world, the munin-node
> > > agent had to be configured with plugins, as it did anything by
> > > itself, but the check_mk agent instead seems to be a long script,
> > > OS specific, capable of perform everything on its own).
> > > I have read about "local" plugins, and it seems to be a folder with
> > > that name, but it is unclear wether the user has to manually put
> > > scripts on it, manually link them (as we do in munin), or let
> > > check_mk take care of it automagically... I thing I'm missing
> > > exactly how this works
> > >
> > > Thank you guys and best regards!!!
> > > _______________________________________________
> > > checkmk-en mailing list
> > > checkmk-en-qhrM8SXbD5JpaB0eVFyvwnWFp+d4uDoM@public.gmane.org
> > > http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
> > >
checkmk-en mailing list