I've tried to Google this and I just can't find a good tutorial / example to use so I'm resigned to asking it here. Hopefully I won't draw too much criticism for asking for an example / fundamental tutorial. I've configured Icinga2 and Icinga2 web with Icinga Director all successfully and have the alerting working out of the box (ping, load, swap etc..). I have several Linux boxes (Centos) and I simply want to setup monitoring for services on those boxes. Each box has Icinga2 installed and reporting back to the master in, what I think, Icinga2 refers to as a "satellite" configuration.
If I run the following command on the host I want to monitor I get an appropriate response as expected:
./check_procs -c 1:1 -a '/usr/lib/hgser/hgser'
I'm simply trying to make this into a check that reports in to the master as the others do. I've followed some examples and come up with this CheckCommand:
object CheckCommand "check_my_service"
command = [ PluginContribDir + "/check_procs" ]
"-c" = "1:1"
"-a" = "/usr/lib/hgser/hgser"
I'm not honestly sure if this is close or way off..
I've pretty much tried to put that struct into about every file located at /etc/icinga2/conf.d on the box I want to monitor. Every time I put it in a conf file in /etc/icinga2/conf.d Icinga2 won't start, so I remove it. Finally, I put it in commands.conf and Icinga2 started, but I'm not really seeing any sort of check activity occur.
I fully admit that I'm not expert, but I have read the documentation here:
But still can't figure it out. I'd really just like a hint / clue or maybe a link to a tutorial or something. My ultimate goal is to just be able to monitor multiple different services on my Linux boxes.
Thanks in advance