Skip to content

A chef report/exception handler plugin that submits passive checks to nagios via nsca

Notifications You must be signed in to change notification settings

jespada/nsca_handler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

DESCRIPTION

Chef handler to use with the chef_handler opscode cookbook. The handler submits passive checks to nagios via nsca, originally forked from ranjibd

Attributes

default["chef_handler"]["handler_path"] - location to drop off handlers directory, default is /var/chef/handlers. default["chef_handler"]["nsca_server"] - ip or hostname of the nsca server. default["chef_handler"]["nsca_port"] - custom port of the nsca server.

Example

###recipe

    #Place the handlers script

   Chef::Log.info("Chef Handlers will be at: #{node['chef_handler']['handler_path']}")

   remote_directory node['chef_handler']['handler_path'] do
     source 'handlers'
     owner 'root'
     group 'root'
     mode "0755"
     recursive true
     action :nothing
   end.run_action(:create)


   chef_handler "MyOrganization::NSCAHandler" do
     source "#{node['chef_handler']['handler_path']}/nsca_handler"
     supports :report => true, :exception => true
     action :enable
   end

About

A chef report/exception handler plugin that submits passive checks to nagios via nsca

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%