Class: Zabbix::Config
- Inherits:
-
Object
- Object
- Zabbix::Config
- Defined in:
- lib/zabbix/config.rb
Overview
The Zabbix::Config
object used for initializing zabbix-monitor
Instance Attribute Summary collapse
-
#config_file_path ⇒ String
The zabbix agentd config file location.
- #log_adapter ⇒ Object
-
#log_file_path ⇒ String
The zabbix-monitor log file location (optional).
- #mode ⇒ Object
-
#rate ⇒ String
The zabbix hostname.
-
#rules ⇒ Array<Symbol>
The set of rules to monitor.
Instance Attribute Details
#config_file_path ⇒ String
Returns the zabbix agentd config file location.
22 23 24 |
# File 'lib/zabbix/config.rb', line 22 def config_file_path @config_file_path end |
#log_adapter ⇒ Symbol #log_adapter=(value) ⇒ Symbol
42 43 44 |
# File 'lib/zabbix/config.rb', line 42 def log_adapter @log_adapter end |
#log_file_path ⇒ String
Note:
(optional) Defaults to ./log/#{RACK_ENV}.log
Returns The zabbix-monitor log file location (optional).
27 28 29 |
# File 'lib/zabbix/config.rb', line 27 def log_file_path @log_file_path end |
#mode ⇒ Symbol #mode=(value) ⇒ Symbol
63 64 65 |
# File 'lib/zabbix/config.rb', line 63 def mode @mode end |
#rate ⇒ String
Returns the zabbix hostname.
45 46 47 |
# File 'lib/zabbix/config.rb', line 45 def rate @rate end |
#rules ⇒ Array<Symbol>
Returns the set of rules to monitor.
48 49 50 |
# File 'lib/zabbix/config.rb', line 48 def rules @rules end |