lib/rubix/models/host.rb in rubix-0.5.1 vs lib/rubix/models/host.rb in rubix-0.5.2
- old
+ new
@@ -12,19 +12,18 @@
# The default port.
DEFAULT_PORT = 10050
# The numeric codes for the various status types.
- STATUS_CODES = {
+ zabbix_define :STATUS, {
:monitored => 0,
:not_monitored => 1,
:unreachable => 2,
:template => 3,
:deleted => 4,
:proxy_active => 5,
:proxy_passive => 6
- }.freeze
- STATUS_NAMES = STATUS_CODES.invert.freeze
+ }
zabbix_attr :name
zabbix_attr :ip
zabbix_attr :port
zabbix_attr :profile