阿里云监控自动安装失败的处理方法及常用命令
[root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status Removed stale pid file: /usr/local/cloudmonitor/wrapper/bin/./cloudmonitor.pid cloudmonitor is not running. [root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh start Starting cloudmonitor... Waiting for cloudmonitor....... running: PID:24556 [root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status cloudmonitor is running: PID:24556, Wrapper:STARTED, Java:STARTED [root@iZbp19kz2oogerbtslbw5xZ appuser]# # 重启 [root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh restart # 卸载 [root@iZbp19kz2oogerbtslbw5xZ appuser]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && rm -rf /usr/local/cloudmonitor
[root@AY1309031759587435f2Z local]# REGION_ID=cn-hangzhou VERSION=1.3.7
> bash -c "$(curl https://cms-agent-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/release/cms_install_for_linux.sh)"
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). The default
bundle is named curl-ca-bundle.crt; you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
[root@AY1309031759587435f2Z local]# wget https://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/cms_install_for_linux.sh
--2019-10-21 17:30:34-- https://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/cms_install_for_linux.sh
正在解析主机 cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com... 100.118.195.21
Connecting to cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com|100.118.195.21|:443... 已连接。
ERROR: cannot verify cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com's certificate, issued by `/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - SHA256 - G2':
Issued certificate has expired.
ERROR: certificate common name `*.oss.aliyuncs.com' doesn't match requested host name `cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com'.
To connect to cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com insecurely, use `--no-check-certificate'.
[root@AY1309031759587435f2Z local]# wget --no-check-certificate https://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/cms_install_for_linux.sh
--2019-10-21 17:32:06-- https://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/cms_install_for_linux.sh
正在解析主机 cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com... 100.118.195.21
Connecting to cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com|100.118.195.21|:443... 已连接。
WARNING: cannot verify cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com's certificate, issued by `/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - SHA256 - G2':
Issued certificate has expired.
WARNING: certificate common name `*.oss.aliyuncs.com' doesn't match requested host name `cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com'.
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1493 (1.5K) [application/x-sh]
Saving to: `cms_install_for_linux.sh'
100%[======================================================================================================================================================================================>] 1,493 --.-K/s in 0.008s
2019-10-21 17:32:06 (185 KB/s) - `cms_install_for_linux.sh' saved [1493/1493]
[root@AY1309031759587435f2Z local]# chmod 777 ./cms_install_for_linux.sh
[root@AY1309031759587435f2Z local]# REGION_ID=cn-huhehaote VERSION=1.3.7 bash -c "./cms_install_for_linux.sh"
installing
downloading REGION_ID: cn-huhehaote
--2019-10-21 17:33:09-- http://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/1.3.7/linux64/agent-linux64-1.3.7-package.tar.gz
Resolving cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com... 100.118.195.21
Connecting to cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com|100.118.195.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 86492520 (82M) [application/octet-stream]
Saving to: `/usr/local/cloudmonitor/cloudmonitor.tar.gz'
100%[======================================================================================================================================================================================>] 86,492,520 8.57M/s in 68s
2019-10-21 17:34:18 (1.21 MB/s) - `/usr/local/cloudmonitor/cloudmonitor.tar.gz' saved [86492520/86492520]
Detected RHEL or Fedora:
Installing the cloudmonitor daemon..
Stopping cloudmonitor...
cloudmonitor was not running.
Starting cloudmonitor...
Waiting for cloudmonitor.....
running: PID:1031
[root@AY1309031759587435f2Z local]# /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status
cloudmonitor is running: PID:1031, Wrapper:STARTED, Java:STARTED
[root@AY1309031759587435f2Z local]#
评论