class ContinuentNagiosMonitorPolicy
Private Instance Methods
configure()
click to toggle source
Calls superclass method
# File bin/tungsten_nagios_policy, line 50 def configure super() description("Check that the local cluster is running in the AUTOMATIC policy") add_option(:service, { :on => "--service String", :help => "The replication service or cluster to check" }) end
main()
click to toggle source
# File bin/tungsten_nagios_policy, line 33 def main unless TI.is_manager?() critical("The server is not a Continuent Tungsten Manager") end unless TI.is_running?("manager") critical("The Continuent Tungsten Manager is not running") end status = TI.status(opt(:service)) if status.policy() == "AUTOMATIC" ok("Cluster is in #{status.policy()} mode") else critical("Cluster is in #{status.policy()} mode") end end
script_name()
click to toggle source
# File bin/tungsten_nagios_policy, line 61 def script_name "tungsten_nagios_policy" end