Issue with adding Icinga2 service 'memory-windows'

asked 2018-01-10 15:28:44 -0600

updated 2018-01-11 08:26:39 -0600

DarylW gravatar image
  1. Installed Icinga2 client on Windows.

  2. By default, it is monitoring the services ping4, ping6, disk, load,icinga, procs, swap, users and looks good.

  3. I want o add check_memory service. So added memory-windows service as shown below in puppet manifests file

  4. After puppet apply, services.conf became empty.

.

::icinga2::object::service { 'memory':
        target => 'C:/ProgramData/icinga2/etc/icinga2/conf.d/services.conf',
        apply => true,
        import => [ 'generic-service' ],
        check_command => 'memory-windows',
        assign => [ 'host.name == NodeName' ],            
        }
edit retag flag offensive close merge delete

Comments

Can someone please help on this.

anu.allam gravatar imageanu.allam ( 2018-01-11 09:06:16 -0600 )edit