File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 5
5
$nagios_command_line = ' /usr/libexec/pnp4nagios/process_perfdata.pl --bulk' ,
6
6
$nagios_service_name = ' pnp4nagios-service' ,
7
7
$nagios_service_action_url = ' /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' ,
8
+ $nagios_html_base_path = ' /usr/share/nagios/html' ,
8
9
$perflog = ' /var/log/pnp4nagios/service-perfdata' ,
9
10
# The apache config snippet
10
11
$apache_httpd = true ,
11
12
$apache_httpd_conf_content = undef ,
12
13
$apache_httpd_conf_source = undef ,
13
14
$apache_httpd_conf_file = ' /etc/httpd/conf.d/pnp4nagios.conf' ,
15
+ $apache_httpd_alias_path = ' /pnp4nagios' ,
14
16
# Other
17
+ $html_base_path = ' /usr/share/nagios/html/pnp4nagios' ,
15
18
$ssi = false
16
19
) {
17
20
61
64
# https://docs.pnp4nagios.org/pnp-0.6/webfe
62
65
# Content from /usr/share/doc/pnp4nagios-0.6.25/contrib/ssi/status-header.ssi
63
66
if $ssi {
64
- file { '/usr/share/nagios/html/ ssi/common-header.ssi' :
67
+ file { "${nagios_html_base_path}/ ssi/common-header.ssi" :
65
68
ensure => ' present' ,
66
- source => " puppet:///modules/ ${module_name} /pnp4nagios/common-header.ssi" ,
69
+ content => template ( " ${module_name} /pnp4nagios/common-header.ssi.erb " ) ,
67
70
require => Package[' nagios' ],
68
71
}
69
72
}
Original file line number Diff line number Diff line change 1
1
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
2
2
3
- Alias /pnp4nagios "/usr/share/nagios/html/pnp4nagios "
3
+ Alias <%= @apache_httpd_alias_path %> " <%= @html_base_path %> "
4
4
5
- < Directory "/usr/share/nagios/html/pnp4nagios ">
5
+ <Directory "<%= @html_base_path %> ">
6
6
AllowOverride None
7
7
<% if !@apache_allowed_from . empty? -%>
8
8
Order Deny,Allow
Original file line number Diff line number Diff line change
1
+ <%# vim: set ts=8 sw=2 tw=0 et ft=eruby.html :%>
2
+ < script src ="<%= @apache_httpd_alias_path %> /media/js/jquery-min.js " type ="text/javascript "> </ script >
3
+ < script src ="<%= @apache_httpd_alias_path %> /media/js/jquery.cluetip.js " type ="text/javascript "> </ script >
4
+ < script type ="text/javascript ">
5
+ jQuery . noConflict ( ) ;
6
+ jQuery ( document ) . ready ( function ( ) {
7
+ jQuery ( 'a.tips' ) . cluetip ( { ajaxCache : false , dropShadow : false , showTitle : false } ) ;
8
+ } ) ;
9
+ </ script >
You can’t perform that action at this time.
0 commit comments