Hello. First of all, sorry, if I created this topic in wrong category, but for me it seems to be the best. Anyway, I have two Ubuntu 16.04 machines, one is master setup and one satellite, where I installed Icinga2 and also IcingaWeb2 on master machine. To do so, I followed these tutorials:
Now I would like to add plugin called “check_logfiles” (couldn’t post more than 2 links, but it seems to be pretty popular plugin, so you should know which one I mean) and display its output in the IcingaWeb2. How to do it? I tried to search for different tutorials and guides, but there seems to be very little Icinga2 tutorials in the Web…
What I tried to do, is copying check_logfiles plugin to /usr/lib/nagios/plugins, then created check_logfiles.cfg in /etc/nagios-plugins/config and defined command for it, then added it to my services.conf for satellite server, but when I run “icinga2 daemon - C” to see if everything works properly, I am facing “Error: Validation failed for object ‘satellite!check_logfiles’ of type ‘Service’; Attribute ‘check_command’: Object ‘check_logfiles’ of type ‘CheckCommand’ does not exist.”.
Any guide on how to add plugin to both master and satellite servers and making it visible in IcingaWeb2 is welcomed.