diff options
author | varac <varacanero@zeromail.org> | 2010-10-23 02:55:17 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2012-09-17 16:01:37 +0200 |
commit | d34da8424e8b35022f6d5f2ee9a68bc6cedccad6 (patch) | |
tree | 91a6b2552430ac82bed6c359bac7375c6503f709 /manifests/defaults | |
parent | 11fd30b96d6aeb5a69dd6bc465e0029784465165 (diff) |
basic pnp4nagios grapher integration
Diffstat (limited to 'manifests/defaults')
-rw-r--r-- | manifests/defaults/pnp4nagios.pp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/manifests/defaults/pnp4nagios.pp b/manifests/defaults/pnp4nagios.pp new file mode 100644 index 0000000..f6556c9 --- /dev/null +++ b/manifests/defaults/pnp4nagios.pp @@ -0,0 +1,27 @@ +class nagios::defaults::pnp4nagios { + # performance data cmds + # http://docs.pnp4nagios.org/de/pnp-0.6/config#bulk_mode_mit_npcd + nagios_command { + 'process-service-perfdata-file-pnp4nagios-bulk-npcd': + command_line => '/bin/mv /var/lib/nagios3/service-perfdata /var/spool/pnp4nagios/npcd/service-perfdata.$TIMET$'; + 'process-host-perfdata-file-pnp4nagios-bulk-npcd': + command_line => '/bin/mv /var/lib/nagios3/host-perfdata /var/spool/pnp4nagios/npcd/host-perfdata.$TIMET$' + } + + # nagios host templates + # http://docs.pnp4nagios.org/de/pnp-0.6/webfe + + # this doesn't work, see manifests/pnp4nagios.pp + #nagios_host { 'host-pnp': + # action_url => '/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_', + # register => 0, + # #ensure => absent; + #} + + #nagios_service { 'service-pnp': + # #naginatorname => 'service-pnp', + # action_url => '/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$', + # register => 0, + # ensure => absent; + #} +} |