Class: ServerMonitor::MailqConfiguration
- Inherits:
-
Object
- Object
- ServerMonitor::MailqConfiguration
- Defined in:
- lib/servermonitor/mailq.rb
Instance Attribute Summary collapse
-
#critical ⇒ Object
Returns the value of attribute critical.
-
#exit_codes ⇒ Object
Returns the value of attribute exit_codes.
-
#grep ⇒ Object
Returns the value of attribute grep.
-
#path ⇒ Object
Returns the value of attribute path.
-
#warning ⇒ Object
Returns the value of attribute warning.
Instance Method Summary collapse
-
#initialize ⇒ MailqConfiguration
constructor
A new instance of MailqConfiguration.
Constructor Details
#initialize ⇒ MailqConfiguration
Returns a new instance of MailqConfiguration.
6 7 8 9 10 11 12 |
# File 'lib/servermonitor/mailq.rb', line 6 def initialize @path = "/opt/zimbra/common/sbin/postqueue -p" @grep = "/bin/grep" @critical = 50 @warning = 40 @exit_codes = true end |
Instance Attribute Details
#critical ⇒ Object
Returns the value of attribute critical.
4 5 6 |
# File 'lib/servermonitor/mailq.rb', line 4 def critical @critical end |
#exit_codes ⇒ Object
Returns the value of attribute exit_codes.
4 5 6 |
# File 'lib/servermonitor/mailq.rb', line 4 def exit_codes @exit_codes end |
#grep ⇒ Object
Returns the value of attribute grep.
4 5 6 |
# File 'lib/servermonitor/mailq.rb', line 4 def grep @grep end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/servermonitor/mailq.rb', line 4 def path @path end |
#warning ⇒ Object
Returns the value of attribute warning.
4 5 6 |
# File 'lib/servermonitor/mailq.rb', line 4 def warning @warning end |