Skip to content

Instantly share code, notes, and snippets.

@rmeleromira
Created March 30, 2017 17:30
Show Gist options
  • Save rmeleromira/3755fe34792c8e8e166a92ed0bbb2e36 to your computer and use it in GitHub Desktop.
Save rmeleromira/3755fe34792c8e8e166a92ed0bbb2e36 to your computer and use it in GitHub Desktop.
init_config: null
instances:
- built_by: CommandCheck
collect_command_time: true
command: echo This message goes to stderr >&2;echo This message goes to stdout
name: echo to stderr
return_code_pattern: '0'
stderr_match_pattern: message
stdout_match_pattern: stdout
root@osa-newton-2:/opt/openstack-ansible/playbooks# /opt/monasca-agent/bin/monasca-collector check command
2017-03-30 17:28:27,460 | DEBUG | collector | monasca_agent.common.util(util.py:75) | Using temporary pid file: /tmp/monasca-agent.pid
2017-03-30 17:28:27,488 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,495 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,496 | DEBUG | collector | monasca_agent.common.util(util.py:588) | Loaded check.d/cpu.py
2017-03-30 17:28:27,503 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,509 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,510 | DEBUG | collector | monasca_agent.common.util(util.py:588) | Loaded check.d/command.py
2017-03-30 17:28:27,511 | DEBUG | collector | monasca_agent.common.util(util.py:517) | Unable to import check module kafka_consumer.py from checks_d
2017-03-30 17:28:27,513 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/kyototycoon.yaml found for checks_d/kyototycoon.py
2017-03-30 17:28:27,514 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/nginx.yaml found for checks_d/nginx.py
2017-03-30 17:28:27,602 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/solidfire.yaml found for checks_d/solidfire.py
2017-03-30 17:28:27,892 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,898 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,899 | DEBUG | collector | monasca_agent.common.util(util.py:588) | Loaded check.d/http_check.py
2017-03-30 17:28:27,900 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/haproxy.yaml found for checks_d/haproxy.py
2017-03-30 17:28:27,901 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/__init__.yaml found for checks_d/__init__.py
2017-03-30 17:28:27,902 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/ntp.yaml found for checks_d/ntp.py
2017-03-30 17:28:27,919 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/supervisord.yaml found for checks_d/supervisord.py
2017-03-30 17:28:27,920 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/check_mk_local.yaml found for checks_d/check_mk_local.py
2017-03-30 17:28:27,928 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/kibana.yaml found for checks_d/kibana.py
2017-03-30 17:28:27,929 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/redisdb.yaml found for checks_d/redisdb.py
2017-03-30 17:28:27,930 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/cert_check.yaml found for checks_d/cert_check.py
2017-03-30 17:28:27,930 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/couch.yaml found for checks_d/couch.py
2017-03-30 17:28:27,933 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,939 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,939 | DEBUG | collector | monasca_agent.common.util(util.py:588) | Loaded check.d/memory.py
2017-03-30 17:28:27,940 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/crash.yaml found for checks_d/crash.py
2017-03-30 17:28:27,941 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/postgres.yaml found for checks_d/postgres.py
2017-03-30 17:28:27,942 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/rabbitmq.yaml found for checks_d/rabbitmq.py
2017-03-30 17:28:27,942 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/vertica.yaml found for checks_d/vertica.py
2017-03-30 17:28:27,943 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/mcache.yaml found for checks_d/mcache.py
2017-03-30 17:28:27,946 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,953 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:27,954 | DEBUG | collector | monasca_agent.common.util(util.py:588) | Loaded check.d/disk.py
2017-03-30 17:28:27,955 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/couchbase.yaml found for checks_d/couchbase.py
2017-03-30 17:28:27,955 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/swift_diags.yaml found for checks_d/swift_diags.py
2017-03-30 17:28:27,956 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/jenkins.yaml found for checks_d/jenkins.py
2017-03-30 17:28:27,957 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/postfix.yaml found for checks_d/postfix.py
2017-03-30 17:28:28,009 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,018 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,023 | DEBUG | collector | monasca_agent.common.util(util.py:588) | Loaded check.d/libvirt.py
2017-03-30 17:28:28,024 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/zk.yaml found for checks_d/zk.py
2017-03-30 17:28:28,025 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/hdfs.yaml found for checks_d/hdfs.py
2017-03-30 17:28:28,026 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/iis.yaml found for checks_d/iis.py
2017-03-30 17:28:28,026 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/wmi_check.yaml found for checks_d/wmi_check.py
2017-03-30 17:28:28,169 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/vcenter.yaml found for checks_d/vcenter.py
2017-03-30 17:28:28,170 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/tcp_check.yaml found for checks_d/tcp_check.py
2017-03-30 17:28:28,170 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/host_alive.yaml found for checks_d/host_alive.py
2017-03-30 17:28:28,171 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/elastic.yaml found for checks_d/elastic.py
2017-03-30 17:28:28,172 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/directory.yaml found for checks_d/directory.py
2017-03-30 17:28:28,173 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/nagios_wrapper.yaml found for checks_d/nagios_wrapper.py
2017-03-30 17:28:28,173 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/apache.yaml found for checks_d/apache.py
2017-03-30 17:28:28,174 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/lighttpd.yaml found for checks_d/lighttpd.py
2017-03-30 17:28:28,175 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/file_size.yaml found for checks_d/file_size.py
2017-03-30 17:28:28,176 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/gunicorn.yaml found for checks_d/gunicorn.py
2017-03-30 17:28:28,176 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/cacti.yaml found for checks_d/cacti.py
2017-03-30 17:28:28,177 | DEBUG | collector | monasca_agent.common.util(util.py:517) | Unable to import check module docker.py from checks_d
2017-03-30 17:28:28,195 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/ovs.yaml found for checks_d/ovs.py
2017-03-30 17:28:28,195 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/riak.yaml found for checks_d/riak.py
2017-03-30 17:28:28,196 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/http_metrics.yaml found for checks_d/http_metrics.py
2017-03-30 17:28:28,198 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/mongo.yaml found for checks_d/mongo.py
2017-03-30 17:28:28,198 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/varnish.yaml found for checks_d/varnish.py
2017-03-30 17:28:28,199 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/sqlserver.yaml found for checks_d/sqlserver.py
2017-03-30 17:28:28,215 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,223 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,224 | DEBUG | collector | monasca_agent.common.util(util.py:588) | Loaded check.d/process.py
2017-03-30 17:28:28,225 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/mysql.yaml found for checks_d/mysql.py
2017-03-30 17:28:28,226 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/mk_livestatus.yaml found for checks_d/mk_livestatus.py
2017-03-30 17:28:28,228 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,236 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,236 | DEBUG | collector | monasca_agent.common.util(util.py:588) | Loaded check.d/load.py
2017-03-30 17:28:28,239 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,247 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,247 | DEBUG | collector | monasca_agent.common.util(util.py:588) | Loaded check.d/network.py
2017-03-30 17:28:28,248 | DEBUG | collector | monasca_agent.common.util(util.py:548) | No conf.d/json_plugin.yaml found for checks_d/json_plugin.py
2017-03-30 17:28:28,249 | INFO | collector | monasca_agent.common.util(util.py:590) | Successfully initialized checks: ['load', 'network', 'process', 'libvirt', 'http_check', 'command', 'memory', 'disk', 'cpu']
################################################################################
Check name: 'command'
2017-03-30 17:28:28,249 | INFO | collector | monasca_agent.collector.checks.check.command(services_checks.py:65) | Starting Thread Pool
2017-03-30 17:28:28,251 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,259 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,259 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,266 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:28,267 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:48) | Running command 'echo This message goes to stderr >&2;echo This message goes to stdout'
2017-03-30 17:28:28,275 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:62) | Command completed in '0.007861' seconds
2017-03-30 17:28:28,275 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:75) | Return code: 0
2017-03-30 17:28:28,276 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:76) | stdout: This message goes to stdout
2017-03-30 17:28:28,276 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:77) | stderr: This message goes to stderr
2017-03-30 17:28:28,276 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:85) | Return code pattern match successful
2017-03-30 17:28:28,277 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:97) | stdout pattern match successful
2017-03-30 17:28:28,277 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:109) | stderr pattern match successful
2017-03-30 17:28:28,277 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:119) | Command 'echo This message goes to stderr >&2;echo This message goes to stdout' was successful
2017-03-30 17:28:29,252 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:29,262 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:29,263 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:29,271 | WARNING | collector | monasca_agent.common.util(util.py:377) | Hostname: localhost is local
2017-03-30 17:28:29,271 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:48) | Running command 'echo This message goes to stderr >&2;echo This message goes to stdout'
2017-03-30 17:28:29,279 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:62) | Command completed in '0.007951' seconds
2017-03-30 17:28:29,280 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:75) | Return code: 0
2017-03-30 17:28:29,280 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:76) | stdout: This message goes to stdout
2017-03-30 17:28:29,281 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:77) | stderr: This message goes to stderr
2017-03-30 17:28:29,281 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:85) | Return code pattern match successful
2017-03-30 17:28:29,281 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:97) | stdout pattern match successful
2017-03-30 17:28:29,282 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:109) | stderr pattern match successful
2017-03-30 17:28:29,282 | DEBUG | collector | monasca_agent.collector.checks.check.command(command.py:119) | Command 'echo This message goes to stderr >&2;echo This message goes to stdout' was successful
2017-03-30 17:28:30,253 | INFO | collector | monasca_agent.collector.checks.check.command(services_checks.py:73) | Stopping Thread Pool
Metrics:
2017-03-30 17:28:30,271 | DEBUG | collector | monasca_agent.common.aggregator(aggregator.py:81) | received 0 payloads since last flush
Timestamp: 1.49089490928e+12
Name: command_status
Value: 0
Dimensions: hostname=osa-newton-2
name=echo to stderr
service=service
Value Meta: None
------------------------
Timestamp: 1.49089490928e+12
Name: command_response_time
Value: 0.00795102119446
Dimensions: hostname=osa-newton-2
name=echo to stderr
service=service
Value Meta: None
------------------------
################################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment