Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template icinga/icinga.cfg.erb: Could not find value for 'icinga' at 19:/etc/puppet/modules/icinga/templates/icinga.cfg.erb at /etc/puppet/modules/icinga/manifests/server.pp:26 on node monitoring02.intra.local.ch
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
Time:
         Last run: 1327077571
[root@monitoring02 ~]# 


[17:42] brief:templates% sed -e '1,18 d' -e '20,$ d' < icinga.cfg.erb 
log_file=<%= icinga::icinga_data %>/icinga.log
[17:43] brief:templates% 


[17:43] brief:templates% head -n 19 ../manifests/init.pp 
class icinga {

    $nrpe_version = "2.12"
    $nagios_plugins_version = "1.4.15"

    $icinga_root = "/opt/icinga"
    $icinga_data = "${icinga_root}/var"
    $icinga_config = "${icinga_root}/etc"
    $nagios_plugins_root = "${icinga_root}/nagiosplugins"
    $nagios_plugins_install = "${nagios_plugins_root}/${nagios_plugins_version}"
    $nrpe_root = "${icinga_root}/nrpe"
    $nrpe_install = "${nrpe_root}/${nrpe_version}"



[17:43] brief:templates% sed -e '1,25 d' -e '27,$ d' < ../manifests/server.pp 
        content => template("icinga/icinga.cfg.erb"),
[17:44] brief:templates%