Fix the constant failure of puppet on cacti
First of all, the apache config file goes in a different direcetory. Secondly, the graph creation is trying to make graphs for disks that are hardcoded and don't exist for a given host. Change-Id: Ie277f3959b7a01e71ed437582b0155e5fc5bef02
This commit is contained in:
parent
e8fee5ca6d
commit
ac8412d34d
@ -72,12 +72,9 @@ add_ds_graph "Interface - Non-Unicast Packets" "In/Out Non-Unicast Packets" \
|
||||
SNMP_QUERY_ID=`php -q add_graphs.php --host-id=$HOST_ID --list-snmp-queries | \
|
||||
grep "ucd/net - Get IO Devices"|cut -f 1`
|
||||
|
||||
for disk in $(php -q add_graphs.php --host-id=$HOST_ID --snmp-field=diskIODevice --list-snmp-values | grep xvd[a-z]$) ; do
|
||||
add_ds_graph "ucd/net - Device IO - Operations" "IO Operations" \
|
||||
"diskIODevice" "xvda"
|
||||
"diskIODevice" "$disk"
|
||||
add_ds_graph "ucd/net - Device IO - Throughput" "IO Throughput" \
|
||||
"diskIODevice" "xvda"
|
||||
|
||||
add_ds_graph "ucd/net - Device IO - Operations" "IO Operations" \
|
||||
"diskIODevice" "xvdc"
|
||||
add_ds_graph "ucd/net - Device IO - Throughput" "IO Throughput" \
|
||||
"diskIODevice" "xvdc"
|
||||
"diskIODevice" "$disk"
|
||||
done
|
||||
|
@ -19,7 +19,7 @@ class openstack_project::cacti (
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
file { '/etc/apache2/conf-available/cacti.conf':
|
||||
file { '/etc/apache2/conf.d/cacti.conf':
|
||||
ensure => present,
|
||||
source => 'puppet:///modules/openstack_project/cacti/apache.conf',
|
||||
mode => '0644',
|
||||
|
Loading…
Reference in New Issue
Block a user