Hi,
I’m a total novice, and I have been asked to install Incinga2 to monitor a
few machines and their services, so i installed Icinga2 and Icingaweb by
following a few tutorials. So the configuration I have is one master(with
icinga2) and then several host(agentless) that I would like to monitor
without having to install anything on them, is that possible?
-
The standard way to monitor a machine is to install Icinga on it, together
with the appropriate service check plugins, and run it as an Agent. -
If you do not want to (or cannot) install Icinga itself, but can still
install the service check plugins, then you can run the service checks via
SSH:
https://icinga.com/docs/icinga-2/latest/doc/07-agent-based-monitoring/#ssh -
If you are not even able to install the service check plugins, then you
might be able to get the entire service check to run over SSH, but I don’t
believe there is any documentation for this. Basically you would need to
connect via SSH and run the service check script on the remote machine,
getting the result back to the Icinga Master.
but the problem is that the value when i check on icingaweb is the value of
the server .
If you had Icinga installed as an Agent then the reason for this would be the
setting of command_endpoint, however if you have not installed Icinga then you
need to implement one of the above methods of connecting to the machine you
want to monitor so that you can get a result from it.
Incidentally, you say that you “have been asked to install Incinga2 to monitor
a few machines and their services”. Were you also asked not to install Icinga
as an Agent on the machines to be monitored? Otherwise, is there some reason
why this really isn’t possible?
Things work so much better if you can install an Icinga Master communicating
with Icinga Agents - it’s worth checking with whomever wants you to do this
whether there’s a good reason why this can’t be done.
Antony.