This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package { 'icinga2-classicui-config': ensure => installed, } -> # attention l'ordre est tres important... | |
package { 'icinga-gui': ensure => installed, } | |
exec { 'selinux management for icinga gui cgi': | |
command => '/usr/bin/chcon --reference=/var/www/cgi-bin -R /usr/lib64/icinga/cgi/', | |
subscribe => Package['icinga2-classicui-config', 'icinga-gui'], | |
refreshonly => true, | |
} | |
exec { 'selinux httpd_can_network_connect': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module my_httpd_icinga_command 1.0; | |
require { | |
type var_run_t; | |
type var_log_t; | |
type var_t; | |
type httpd_t; | |
type ping_t; | |
type postgresql_port_t; | |
type reserved_port_t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
icinga2::object::hostgroup { 'foo': | |
groups => ['foo2'], | |
assign_where => 'match(\"*bar*\", host.name)', | |
} | |
icinga2::object::servicegroup { 'foo': | |
groups => ['foo2'], | |
assign_where => 'match(\"*bar*\", service.name)', | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
icinga2::nrpe::command { 'check_ntp_peer': | |
command_name => 'check_ntp_peer', | |
nrpe_plugin_liddir => '/usr/lib64/nagios/plugins/', | |
nrpe_plugin_name => 'check_ntp_peer', | |
nrpe_plugin_args => '-H localhost -w 1 -c 2', | |
} | |
@@icinga2::object::service { "${::fqdn}_ntp": | |
object_servicename => 'ntp', | |
display_name => 'ntp', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator navbar { | |
hidereport @none | |
} | |
macro TaskTip [ | |
tooltip istask() -8<- | |
'''Start: ''' <-query attribute='start'-> | |
'''End: ''' <-query attribute='end'-> | |
---- | |
'''Resources:''' |