/
opt
/
puppetlabs
/
mcollective
/
plugins
/
mcollective
/
data
/
Upload Filee
HOME
metadata :name => "puppet", :description => "Information about Puppet agent state", :author => "R.I.Pienaar <rip@devco.net>", :license => "Apache-2.0", :version => "2.4.1", :url => "https://github.com/choria-plugins/puppet-agent", :timeout => 1 usage <<-EOU This data plugin lets you extract information about the Puppet Agent Daemon for use in discovery and elsewhere. To force a Puppet catalog run on machine that has not recently run: mco rpc puppet runonce -S "puppet().since_lastrun > 1800" EOU dataquery :description => "Puppet Agent state" do output :applying, :description => "Is a catalog being applied", :display_as => "Applying", :default => false output :enabled, :description => "Is the agent currently locked", :display_as => "Enabled", :default => false output :daemon_present, :description => "Is the Puppet agent daemon running on this system", :display_as => "Daemon Running", :default => false output :lastrun, :description => "When the Agent last applied a catalog in local time", :display_as => "Last Run", :default => 0 output :since_lastrun, :description => "How long ago did the Agent last apply a catalog in local time", :display_as => "Since Last Run", :default => -1 output :status, :description => "Current status of the Puppet agent", :display_as => "Status", :default => "unknown" output :disable_message, :description => "Message supplied when agent was disabled", :display_as => "Lock Message", :default => "" output :idling, :description => "Is the Puppet agent daemon running but not doing any work", :display_as => "Idling", :default => false end