監視ツールMackerelにてAWSLinuxのApacheの監視のため設定したのですが次のように接続を拒否されました。
curl http://localhost:1080/server-status?autoを叩くと次のエラー何が上手くいかないんですか?
curl: (7) Failed to connect to localhost port 1080: 接続を拒否されました
私が設定したファイルは以下です、また、mackerel-agent-pluginsはgithubからインストール済みです
https://github.com/mackerelio/mackerel-agent-plugins
1. /etc/httpd/conf/httpd.confにはmackerelの仕様通りつぎを設定し、apacheの再起動
ExtendedStatus On <VirtualHost 127.0.0.1:1080> <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from localhost </Location> </VirtualHost>
2./etc/mackerel-agent/mackerel-agent.confには次を設定し、/etc/init.d/mackerel-agent restartを実行。
[plugin.metrics.apache2] command = "/usr/local/bin/mackerel-plugin-apache2 -p 1080" type = "metric"
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。