virgo-agent-toolkit/rackspace-monitoring-agent

Make check scheduling log entries to be at debug level

Closed this issue · 0 comments

The beginning of the log entries are useful, including creation of the check. After that the entries like "Check (agent.check) -> ...." are generally not useful unless a user is trying to troubleshoot, in which case our recommendation is to put agent in debug mode.

In this way, we can reduce the log file size as well as removing the check details, some of which can contain sensitive information.

Thu Dec 08 16:42:01 2016 INF: Rackspace Monitoring Agent (2.6.6)
Thu Dec 08 16:42:01 2016 INF:   virgo 2.1.5
Thu Dec 08 16:42:01 2016 INF:   luvi v2.7.0-rackspace
Thu Dec 08 16:42:01 2016 INF:   libuv 1.9.0
Thu Dec 08 16:42:01 2016 INF:   OpenSSL 1.0.2g  1 Mar 2016
Thu Dec 08 16:42:01 2016 INF: Using locale: en_US.UTF-8
Thu Dec 08 16:42:01 2016 INF: Using config file: /etc/rackspace-monitoring-agent.cfg
Thu Dec 08 16:42:01 2016 INF: Using config agent ID (id=MQQ1MQG944)
Thu Dec 08 16:42:01 2016 INF: Starting agent MQQ1MQG944 (guid=757dbace-8543-406d-c0ea-c869cdb73dce, version=2.1.5, bundle_version=2.6.6)
Thu Dec 08 16:42:01 2016 INF: Confd -> reading files in /etc/rackspace-monitoring-agent.conf.d
Thu Dec 08 16:42:01 2016 INF: Upgrades are enabled
Thu Dec 08 16:42:03 2016 INF: 50.57.61.12:443 (hostname=agent-endpoint-ord.monitoring.api.rackspacecloud.com connID=1) -> Connected
Thu Dec 08 16:42:03 2016 INF: 50.57.61.12:443 (hostname=agent-endpoint-ord.monitoring.api.rackspacecloud.com connID=1) -> Connection has been authenticated to SRV:_monitoringagent._tcp.ord1.prod.monitoring.api.rackspacecloud.com
Thu Dec 08 16:42:03 2016 INF: 50.56.142.151:443 (hostname=agent-endpoint-dfw.monitoring.api.rackspacecloud.com connID=1) -> Connected
Thu Dec 08 16:42:03 2016 INF: 50.56.142.151:443 (hostname=agent-endpoint-dfw.monitoring.api.rackspacecloud.com connID=1) -> Connection has been authenticated to SRV:_monitoringagent._tcp.dfw1.prod.monitoring.api.rackspacecloud.com
Thu Dec 08 16:42:03 2016 INF: agent -> Created Check (id=ch3SaHjU3G, iid=idMADXsmMU)
Thu Dec 08 16:42:03 2016 INF: agent -> Created Check (id=ch3fAkITUh, iid=idsjP8REq9)
Thu Dec 08 16:42:03 2016 INF: agent -> Created Check (id=ch5JKXrTAA, iid=idcgD3LFDH)
Thu Dec 08 16:42:03 2016 INF: agent -> Created Check (id=chH7mdfFae, iid=idQWlomnEY)
Thu Dec 08 16:42:03 2016 INF: agent -> Created Check (id=chRRDAsGcM, iid=idEm18UooU)
Thu Dec 08 16:42:03 2016 INF: agent -> Created Check (id=chRi0AlRGc, iid=idE9U6b95h)
Thu Dec 08 16:42:03 2016 INF: agent -> Created Check (id=chZYPgBeeY, iid=idTbR53gHY)
Thu Dec 08 16:42:03 2016 INF: agent -> Created Check (id=chfbY6VX3s, iid=idlDTmWmxh)
Thu Dec 08 16:42:03 2016 INF: agent -> Created Check (id=chwXB7qgCg, iid=id65c27rVi)
Thu Dec 08 16:42:03 2016 INF: Check (agent.load_average) -> agent.load_average (details=,id="ch5JKXrTAA",period=60) scheduled for 60s
Thu Dec 08 16:42:03 2016 INF: Check (agent.disk) -> agent.disk (details=target="/dev/disk1",id="ch3SaHjU3G",period=60) scheduled for 60s
Thu Dec 08 16:42:03 2016 INF: Check (agent.network) -> agent.network (details=target="lo0",id="chfbY6VX3s",period=60) scheduled for 60s
Thu Dec 08 16:42:03 2016 INF: Check (agent.memory) -> agent.memory (details=,id="chH7mdfFae",period=60) scheduled for 60s
Thu Dec 08 16:42:03 2016 INF: Check (agent.network) -> agent.network (details=target="en1",id="ch3fAkITUh",period=60) scheduled for 60s
Thu Dec 08 16:42:03 2016 INF: Check (agent.network) -> agent.network (details=target="p2p0",id="chwXB7qgCg",period=60) scheduled for 60s
Thu Dec 08 16:42:03 2016 INF: Check (agent.cpu) -> agent.cpu (details=,id="chRi0AlRGc",period=60) scheduled for 60s
Thu Dec 08 16:42:03 2016 INF: Check (agent.network) -> agent.network (details=target="en0",id="chZYPgBeeY",period=60) scheduled for 60s
Thu Dec 08 16:42:03 2016 INF: Check (agent.filesystem) -> agent.filesystem (details=target="/",id="chRRDAsGcM",period=60) scheduled for 60s
Thu Dec 08 16:42:03 2016 INF: Confd -> config_file post overall success
Thu Dec 08 16:42:03 2016 INF: 78.136.44.15:443 (hostname=agent-endpoint-lon.monitoring.api.rackspacecloud.com connID=1) -> Connected
Thu Dec 08 16:42:03 2016 INF: 78.136.44.15:443 (hostname=agent-endpoint-lon.monitoring.api.rackspacecloud.com connID=1) -> Connection has been authenticated to SRV:_monitoringagent._tcp.lon3.prod.monitoring.api.rackspacecloud.com
Thu Dec 08 16:42:07 2016 INF: Check (agent.network) -> agent.network (details=target="p2p0",id="chwXB7qgCg",period=60) scheduled for 60s
Thu Dec 08 16:42:09 2016 INF: Check (agent.disk) -> agent.disk (details=target="/dev/disk1",id="ch3SaHjU3G",period=60) scheduled for 60s
Thu Dec 08 16:42:24 2016 INF: Check (agent.filesystem) -> agent.filesystem (details=target="/",id="chRRDAsGcM",period=60) scheduled for 60s
Thu Dec 08 16:42:29 2016 INF: Check (agent.network) -> agent.network (details=target="lo0",id="chfbY6VX3s",period=60) scheduled for 60s
Thu Dec 08 16:42:30 2016 INF: Check (agent.load_average) -> agent.load_average (details=,id="ch5JKXrTAA",period=60) scheduled for 60s