/etc/ganglia/conf.d/spfexample.pyconf.disabled is in ganglia-monitor-python 3.6.0-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | #/* This configuration file configures the spoof example
# module. This example module can be used to test the
# modular spoofing functionality or it can be used
# as an example to write your own spoof module. */
modules {
module {
name = "spfexample"
language = "python"
enabled = "no"
}
}
#/* Collection groups for the
# spoof example python module */
#/* This metric gathers a simulated
# cpu utilization value */
collection_group {
collect_every = 10
time_threshold = 50
metric {
name = "spf_random_cpu_util"
value_threshold = 1.0
title = "Spoofed Random CPU Utilization"
}
}
#/* This metric spoofs a heartbeat for an
# imaginary box */
collection_group {
collect_once = yes
time_threshold = 20
metric {
name = "spf_heartbeat"
title = "Spoofed Heartbeat"
}
}
#/* These metrics spoof the location, boottime and OS name
# for an imaginary box */
collection_group {
collect_once = yes
time_threshold = 1200
metric {
name = "spf_location"
title = "Spoofed Location"
}
metric {
name = "spf_boottime"
title = "Spoofed Boot Time"
}
metric {
name = "spf_osname"
title = "Spoofed OS Name"
}
}
|