Icinga2 check_tcp Syntax

Could someone kindly share the syntax of an Icinga2 tcp check?
The docs I find slightly confusing and my frustration is now overtaking my patience.

I have a host defined, which works.
I added the following:

object Service "tcp" {
  host = "dbs01"
  port = "5672"
  check_command = "check_tcp"
}

I have given up on trying to get check_by_ssh working as well – so if those two could be explained to me or if someone would be as gracious to share an example it would be hugely appreciated.


Source: syntax

Leave a Reply