Apache/status not register

Hi ...
I try active metricbeat module apache , but get some error .

sudo metricbeat modules list
Enabled:
apache
system

Disabled:
aerospike
ceph
couchbase
docker
dropwizard
elasticsearch
etcd
golang
graphite
haproxy
http
jolokia
kafka
kibana
kubernetes
kvm
logstash
memcached
mongodb
munin
mysql
nginx
php_fpm
postgresql
prometheus
rabbitmq
redis
uwsgi
vsphere
windows
zookeeper

sudo metricbeat -e
2018-07-31T06:24:20.397Z INFO instance/beat.go:492 Home path: [/usr/share/metricbeat] Config path: [/etc/metricbeat] Data path: [/var/lib/metricbeat] Logs path: [/var/log/metricbeat]
2018-07-31T06:24:20.397Z INFO instance/beat.go:499 Beat UUID: 98c49e0d-1431-4928-ab60-46bd66a0a38f
2018-07-31T06:24:20.398Z INFO [beat] instance/beat.go:716 Beat info {"system_info": {"beat": {"path": {"config": "/etc/metricbeat", "data": "/var/lib/metricbeat", "home": "/usr/share/metricbeat", "logs": "/var/log/metricbeat"}, "type": "metricbeat", "uuid": "98c49e0d-1431-4928-ab60-46bd66a0a38f"}}}
2018-07-31T06:24:20.398Z INFO [beat] instance/beat.go:725 Build info {"system_info": {"build": {"commit": "45a9a9e1561b6c540e94211ebe03d18abcacae55", "libbeat": "6.3.2", "time": "2018-07-20T04:24:14.000Z", "version": "6.3.2"}}}
2018-07-31T06:24:20.399Z INFO [beat] instance/beat.go:728 Go runtime info {"system_info": {"go": {"os":"linux","arch":"amd64","max_procs":1,"version":"go1.9.4"}}}
2018-07-31T06:24:20.400Z INFO [beat] instance/beat.go:732 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2018-07-19T04:57:53Z","containerized":false,"hostname":"ip-10-0-81-166","ips":["127.0.0.1/8","::1/128","10.0.81.166/24","fe80::ae:d9ff:fea5:1b4/64"],"kernel_version":"4.4.0-1062-aws","mac_addresses":["02:ae:d9:a5:01:b4"],"os":{"family":"debian","platform":"ubuntu","name":"Ubuntu","version":"16.04.3 LTS (Xenial Xerus)","major":16,"minor":4,"patch":3,"codename":"xenial"},"timezone":"UTC","timezone_offset_sec":0,"id":"c1faa4c80ae14da0bcc606c3433cc9c8"}}}
2018-07-31T06:24:20.402Z INFO [beat] instance/beat.go:761 Process info {"system_info": {"process": {"capabilities": {"inheritable":null,"permitted":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read"],"effective":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read"],"bounding":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read"],"ambient":null}, "cwd": "/home/ubuntu", "exe": "/usr/share/metricbeat/bin/metricbeat", "name": "metricbeat", "pid": 30989, "ppid": 30988, "seccomp": {"mode":"disabled"}, "start_time": "2018-07-31T06:24:20.220Z"}}}
2018-07-31T06:24:20.403Z INFO instance/beat.go:225 Setup Beat: metricbeat; Version: 6.3.2
2018-07-31T06:24:20.403Z INFO elasticsearch/client.go:145 Elasticsearch url: http://52.77.178.112:9200
2018-07-31T06:24:20.404Z INFO pipeline/module.go:81 Beat name: BLOG-A
2018-07-31T06:24:20.404Z INFO instance/beat.go:315 metricbeat start running.
2018-07-31T06:24:20.405Z INFO [monitoring] log/log.go:97 Starting metrics logging every 30s
2018-07-31T06:24:20.406Z INFO [monitoring] log/log.go:132 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":0,"time":{"ms":8}},"total":{"ticks":10,"time":{"ms":24},"value":10},"user":{"ticks":10,"time":{"ms":16}}},"info":{"ephemeral_id":"b90ee36b-d554-4032-9877-9fbb6eff0ebe","uptime":{"ms":23}},"memstats":{"gc_next":4194304,"memory_alloc":2140744,"memory_total":4120760,"rss":30076928}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"elasticsearch"},"pipeline":{"clients":0,"events":{"active":0}}},"system":{"cpu":{"cores":1},"load":{"1":0,"15":0,"5":0,"norm":{"1":0,"15":0,"5":0}}}}}}
2018-07-31T06:24:20.407Z INFO [monitoring] log/log.go:133 Uptime: 24.779149ms
2018-07-31T06:24:20.407Z INFO [monitoring] log/log.go:110 Stopping metrics logging.
2018-07-31T06:24:20.408Z INFO instance/beat.go:321 metricbeat stopped.
2018-07-31T06:24:20.408Z ERROR instance/beat.go:691 Exiting: 1 error: 1 error: metricset 'apache/server-status' is not registered, metricset not found
Exiting: 1 error: 1 error: metricset 'apache/server-status' is not registered, metricset not found

Here I change some .yml last time I use server-status

  • module: apache
    metricsets: ["status"]
    period: 10s
    enabled: true

    Apache hosts

    hosts: ["http://127.0.0.1"]

    Path to server status. Default server-status

    #server_status_path: "server-status"

Glad to hear you found a solution :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.