The goal of this module is to provide a simple way to use distributed monitoring as described on this page : http://nagios.sourceforge.net/docs/3_0/distributed.html
This module is under development and still requires many improvements to suit maximum of use-case and to be cross-distribution. Please don't treat it as stable !
node 'distributed_monitoring_server' { import "nagios"
$nagiosadmin_password = "XXXX"
...
include apache::base
include nagios::base class { 'nagios::nsca::client': nsca_server => 'central_monitoring_server', } include nagios::webinterface
nagios::service::distributed {"check_local_du on $fqdn": check_command => check_local_du; }
nagios::service::distributed {"check_http on $fqdn": check_command => check_http; }
nagios::service::remote {"check_url!distributed_monitoring_server!/test/page.php": description => "check my super test page", }
nagios::service::local {"check_url!reductivelabs.com!/trac/puppet": description => "check puppet website", }
}
node 'central_monitoring_server' { import "nagios"
$nagiosadmin_password = "XXXX"
...
include apache::base
include nagios::base include nagios::nsca::daemon include nagios::webinterface }