Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add status property to zabbix_host resource #606

Closed
coxifred opened this issue May 3, 2019 · 0 comments
Closed

Add status property to zabbix_host resource #606

coxifred opened this issue May 3, 2019 · 0 comments

Comments

@coxifred
Copy link

coxifred commented May 3, 2019

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.3
  • Ruby: 2.3
  • Distribution: Solaris11.3 with gem zabbixapi 2.2
  • Module version:

zabbixapi gem provides status property (monitor or umonitor)
The best thing will be to add in zabbix_host as a property. In this way for creation we can set it to 1 (meaning unmonitor), then later with an update (still in zabbix_host) set it to 0 (meaning monitor).

Allows to unmonitor the server.

I tried to add param/property in :status in provider/type, but puppet still saying that status property in not known from zabbix_host.. Don't know why, weird.

By the way, your module works on Solaris11.3 for agent side ! great !

From Classe hosts of zabbixapi, you can see status (inititialized to 0, default, meaning monitor)

def default_options
  {
    host: nil,
    interfaces: [],
    **status: 0,**
    available: 1,
    groups: [],
    proxy_hostid: nil
  }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant