README.rdoc in zabbixapi-0.1.6.1 vs README.rdoc in zabbixapi-0.1.6.2
- old
+ new
@@ -18,10 +18,10 @@
host_options = {
"ip" => '127.0.0.1',
"dns" => 'my.example.com',
"host" => 'my.example.com',
"useip" => 1,
- "groups" => ['some_group']
+ "groups" => [get_group_id('some_group')]
}
if zbx.create_host(host_options)
puts zbx.get_host_id('my.example.com')
end