Skip to content

Instantly share code, notes, and snippets.

@btm
Created January 22, 2009 23:37
Show Gist options
  • Save btm/50792 to your computer and use it in GitHub Desktop.
Save btm/50792 to your computer and use it in GitHub Desktop.
root@mon03:/etc/ganglia# nc web03 8649
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<!DOCTYPE GANGLIA_XML [
<!ELEMENT GANGLIA_XML (GRID|CLUSTER|HOST)*>
<!ATTLIST GANGLIA_XML VERSION CDATA #REQUIRED>
<!ATTLIST GANGLIA_XML SOURCE CDATA #REQUIRED>
<!ELEMENT GRID (CLUSTER | GRID | HOSTS | METRICS)*>
<!ATTLIST GRID NAME CDATA #REQUIRED>
<!ATTLIST GRID AUTHORITY CDATA #REQUIRED>
<!ATTLIST GRID LOCALTIME CDATA #IMPLIED>
<!ELEMENT CLUSTER (HOST | HOSTS | METRICS)*>
<!ATTLIST CLUSTER NAME CDATA #REQUIRED>
<!ATTLIST CLUSTER OWNER CDATA #IMPLIED>
<!ATTLIST CLUSTER LATLONG CDATA #IMPLIED>
<!ATTLIST CLUSTER URL CDATA #IMPLIED>
<!ATTLIST CLUSTER LOCALTIME CDATA #REQUIRED>
<!ELEMENT HOST (METRIC)*>
<!ATTLIST HOST NAME CDATA #REQUIRED>
<!ATTLIST HOST IP CDATA #REQUIRED>
<!ATTLIST HOST LOCATION CDATA #IMPLIED>
<!ATTLIST HOST REPORTED CDATA #REQUIRED>
<!ATTLIST HOST TN CDATA #IMPLIED>
<!ATTLIST HOST TMAX CDATA #IMPLIED>
<!ATTLIST HOST DMAX CDATA #IMPLIED>
<!ATTLIST HOST GMOND_STARTED CDATA #IMPLIED>
<!ELEMENT METRIC (EXTRA_DATA*)>
<!ATTLIST METRIC NAME CDATA #REQUIRED>
<!ATTLIST METRIC VAL CDATA #REQUIRED>
<!ATTLIST METRIC TYPE (string | int8 | uint8 | int16 | uint16 | int32 | uint32 | float | double | timestamp) #REQUIRED>
<!ATTLIST METRIC UNITS CDATA #IMPLIED>
<!ATTLIST METRIC TN CDATA #IMPLIED>
<!ATTLIST METRIC TMAX CDATA #IMPLIED>
<!ATTLIST METRIC DMAX CDATA #IMPLIED>
<!ATTLIST METRIC SLOPE (zero | positive | negative | both | unspecified) #IMPLIED>
<!ATTLIST METRIC SOURCE (gmond) 'gmond'>
<!ELEMENT EXTRA_DATA (EXTRA_ELEMENT*)>
<!ELEMENT EXTRA_ELEMENT EMPTY>
<!ATTLIST EXTRA_ELEMENT NAME CDATA #REQUIRED>
<!ATTLIST EXTRA_ELEMENT VAL CDATA #REQUIRED>
<!ELEMENT HOSTS EMPTY>
<!ATTLIST HOSTS UP CDATA #REQUIRED>
<!ATTLIST HOSTS DOWN CDATA #REQUIRED>
<!ATTLIST HOSTS SOURCE (gmond | gmetad) #REQUIRED>
<!ELEMENT METRICS (EXTRA_DATA*)>
<!ATTLIST METRICS NAME CDATA #REQUIRED>
<!ATTLIST METRICS SUM CDATA #REQUIRED>
<!ATTLIST METRICS NUM CDATA #REQUIRED>
<!ATTLIST METRICS TYPE (string | int8 | uint8 | int16 | uint16 | int32 | uint32 | float | double | timestamp) #REQUIRED>
<!ATTLIST METRICS UNITS CDATA #IMPLIED>
<!ATTLIST METRICS SLOPE (zero | positive | negative | both | unspecified) #IMPLIED>
<!ATTLIST METRICS SOURCE (gmond) 'gmond'>
]>
<GANGLIA_XML VERSION="3.1.1" SOURCE="gmond">
<CLUSTER NAME="chef" LOCALTIME="1232667415" OWNER="unspecified" LATLONG="unspecified" URL="unspecified">
</CLUSTER>
</GANGLIA_XML>
loaded module: cpu_module
loaded module: disk_module
loaded module: load_module
loaded module: mem_module
loaded module: net_module
loaded module: proc_module
loaded module: sys_module
udp_recv_channel mcast_join=NULL mcast_if=NULL port=8649 bind=NULL
tcp_accept_channel bind=NULL port=8649
udp_send_channel mcast_join=NULL mcast_if=NULL host=mon03.prod.widemile.com port=8649
metric 'cpu_user' being collected now
metric 'cpu_user' has value_threshold 1.000000
metric 'cpu_system' being collected now
metric 'cpu_system' has value_threshold 1.000000
metric 'cpu_idle' being collected now
metric 'cpu_idle' has value_threshold 5.000000
metric 'cpu_nice' being collected now
metric 'cpu_nice' has value_threshold 1.000000
metric 'cpu_aidle' being collected now
metric 'cpu_aidle' has value_threshold 5.000000
metric 'cpu_wio' being collected now
metric 'cpu_wio' has value_threshold 1.000000
metric 'load_one' being collected now
metric 'load_one' has value_threshold 1.000000
metric 'load_five' being collected now
metric 'load_five' has value_threshold 1.000000
metric 'load_fifteen' being collected now
metric 'load_fifteen' has value_threshold 1.000000
metric 'proc_run' being collected now
metric 'proc_run' has value_threshold 1.000000
metric 'proc_total' being collected now
metric 'proc_total' has value_threshold 1.000000
metric 'mem_free' being collected now
metric 'mem_free' has value_threshold 1024.000000
metric 'mem_shared' being collected now
metric 'mem_shared' has value_threshold 1024.000000
metric 'mem_buffers' being collected now
metric 'mem_buffers' has value_threshold 1024.000000
metric 'mem_cached' being collected now
metric 'mem_cached' has value_threshold 1024.000000
metric 'swap_free' being collected now
metric 'swap_free' has value_threshold 1024.000000
metric 'bytes_out' being collected now
********** bytes_out: 0.070247
metric 'bytes_out' has value_threshold 4096.000000
metric 'bytes_in' being collected now
********** bytes_in: 1.598075
metric 'bytes_in' has value_threshold 4096.000000
metric 'pkts_in' being collected now
********** pkts_in: 0.011181
metric 'pkts_in' has value_threshold 256.000000
metric 'pkts_out' being collected now
********** pkts_out: 0.000747
metric 'pkts_out' has value_threshold 256.000000
metric 'disk_total' being collected now
Counting device /dev/disk/by-uuid/744e529e-64ff-4b9d-bf2c-ab4bc5e5fa47 (43.04 %)
For all disks: 4.031 GB total, 2.296 GB free for users.
metric 'disk_total' has value_threshold 1.000000
metric 'disk_free' being collected now
Counting device /dev/disk/by-uuid/744e529e-64ff-4b9d-bf2c-ab4bc5e5fa47 (43.04 %)
For all disks: 4.031 GB total, 2.296 GB free for users.
metric 'disk_free' has value_threshold 1.000000
metric 'part_max_used' being collected now
Counting device /dev/disk/by-uuid/744e529e-64ff-4b9d-bf2c-ab4bc5e5fa47 (43.04 %)
For all disks: 4.031 GB total, 2.296 GB free for users.
metric 'part_max_used' has value_threshold 1.000000
sending metadata for metric: heartbeat
sent message 'heartbeat' of length 48 with 0 errors
sending metadata for metric: cpu_num
sent message 'cpu_num' of length 44 with 0 errors
sending metadata for metric: cpu_speed
sent message 'cpu_speed' of length 48 with 0 errors
sending metadata for metric: mem_total
sent message 'mem_total' of length 48 with 0 errors
sending metadata for metric: swap_total
sent message 'swap_total' of length 48 with 0 errors
sending metadata for metric: boottime
sent message 'boottime' of length 44 with 0 errors
sending metadata for metric: machine_type
sent message 'machine_type' of length 56 with 0 errors
sending metadata for metric: os_name
sent message 'os_name' of length 52 with 0 errors
sending metadata for metric: os_release
sent message 'os_release' of length 64 with 0 errors
sending metadata for metric: location
sent message 'location' of length 56 with 0 errors
sending metadata for metric: gexec
sent message 'gexec' of length 48 with 0 errors
sending metadata for metric: cpu_user
sent message 'cpu_user' of length 44 with 0 errors
sending metadata for metric: cpu_system
sent message 'cpu_system' of length 48 with 0 errors
sending metadata for metric: cpu_idle
sent message 'cpu_idle' of length 44 with 0 errors
sending metadata for metric: cpu_nice
sent message 'cpu_nice' of length 44 with 0 errors
sending metadata for metric: cpu_aidle
sent message 'cpu_aidle' of length 48 with 0 errors
sending metadata for metric: cpu_wio
sent message 'cpu_wio' of length 44 with 0 errors
sending metadata for metric: load_one
sent message 'load_one' of length 44 with 0 errors
sending metadata for metric: load_five
sent message 'load_five' of length 48 with 0 errors
sending metadata for metric: load_fifteen
sent message 'load_fifteen' of length 48 with 0 errors
sending metadata for metric: proc_run
sent message 'proc_run' of length 44 with 0 errors
sending metadata for metric: proc_total
sent message 'proc_total' of length 48 with 0 errors
sending metadata for metric: mem_free
sent message 'mem_free' of length 44 with 0 errors
sending metadata for metric: mem_shared
sent message 'mem_shared' of length 48 with 0 errors
sending metadata for metric: mem_buffers
sent message 'mem_buffers' of length 48 with 0 errors
sending metadata for metric: mem_cached
sent message 'mem_cached' of length 48 with 0 errors
sending metadata for metric: swap_free
sent message 'swap_free' of length 48 with 0 errors
sending metadata for metric: bytes_out
sent message 'bytes_out' of length 48 with 0 errors
sending metadata for metric: bytes_in
sent message 'bytes_in' of length 44 with 0 errors
sending metadata for metric: pkts_in
sent message 'pkts_in' of length 44 with 0 errors
sending metadata for metric: pkts_out
sent message 'pkts_out' of length 44 with 0 errors
sending metadata for metric: disk_total
sent message 'disk_total' of length 52 with 0 errors
sending metadata for metric: disk_free
sent message 'disk_free' of length 52 with 0 errors
sending metadata for metric: part_max_used
sent message 'part_max_used' of length 52 with 0 errors
metric 'cpu_user' being collected now
metric 'cpu_user' has value_threshold 1.000000
metric 'cpu_system' being collected now
metric 'cpu_system' has value_threshold 1.000000
metric 'cpu_idle' being collected now
metric 'cpu_idle' has value_threshold 5.000000
metric 'cpu_nice' being collected now
metric 'cpu_nice' has value_threshold 1.000000
metric 'cpu_aidle' being collected now
metric 'cpu_aidle' has value_threshold 5.000000
metric 'cpu_wio' being collected now
metric 'cpu_wio' has value_threshold 1.000000
metric 'load_one' being collected now
metric 'load_one' has value_threshold 1.000000
metric 'load_five' being collected now
metric 'load_five' has value_threshold 1.000000
metric 'load_fifteen' being collected now
metric 'load_fifteen' has value_threshold 1.000000
sent message 'heartbeat' of length 48 with 0 errors
/* This configuration is as close to 2.5.x default behavior as possible
The values closely match ./gmond/metric.h definitions in 2.5.x */
globals {
daemonize = yes
setuid = yes
user = nobody
debug_level = 0
max_udp_msg_len = 1472
mute = no
deaf = no
host_dmax = 0 /*secs */
cleanup_threshold = 300 /*secs */
gexec = no
send_metadata_interval = 0
}
/* If a cluster attribute is specified, then all gmond hosts are wrapped inside
* of a <CLUSTER> tag. If you do not specify a cluster tag, then all <HOSTS> will
* NOT be wrapped inside of a <CLUSTER> tag. */
cluster {
name = "chef"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
/* The host section describes attributes of the host, like the location */
host {
location = "unspecified"
}
udp_send_channel {
host = mon03.prod.widemile.com
port = 8649
}
udp_send_channel {
port = 8649
}
/* You can specify as many tcp_accept_channels as you like to share
an xml description of the state of the cluster */
tcp_accept_channel {
port = 8649
}
/* default config follows */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment