微信开发中 ACCESS TOKEN 过期失效的解决方案详解
676
2022-10-13
Centos 7.6下安装njmon
1.查看环境
[root@njmon home]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@njmon home]# cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.56.131 njmon
2.安装njmon
[root@njmon home]# wget home]# unzip njmon_linux_binaries_v53.zip[root@njmon home]# mv njmon_linux_RHEL7_AMD64_v53 /usr/local/bin/njmon[root@njmon home]# chmod +x /usr/local/bin/njmon[root@njmon home]# njmon -?njmon: help information. Version:53@10/02/2020- Performance stats collector outputing jsON format. Default is stdout- Core syntax: njmon -s seconds -c count- File output: -m directory -f- njmon collector output: -i host -p port -X secret- All options: -? -s seconds : seconds between snapshots of data (default 60 seconds) -c count : number of snapshots (default forever) -m directory : Program will cd to the directory before output -f : Output to file (not stdout) to two files below : Data: hostname_
安装njmon_tool
[root@njmon home]# wget home]# unzip njmon_tools_v50.zip[root@njmon njmon_tools_v50]# cat njmond.conf {"njmon_port": 8181,"njmon_secret": "ignore","data_inject": false,"data_json": true,"directory": "/home/data","influx_host": "localhost","influx_port": 8086,"influx_user": "admin","influx_password": ""njmon","workers": 2,"debug": true,# for njmon2influx.py"batch": 100}
采集数据
[root@njmon njmon_tools_v50]# njmon -s 5 | ./njmon2influx.py njmond.conf{'njmon_port': 8181, 'njmon_secret': 'ignore', 'data_inject': False, 'data_json': True, 'directory': '/home/data', 'influx_host': 'localhost', 'influx_port': 8086, 'influx_user': 'admin', 'influx_password': ''influx_dbname': 'njmon', 'workers': 2, 'debug': True, 'batch': 100}Traceback (most recent call last): File "./njmon2influx.py", line 225, in
InfluxDB查询数据
[root@njmon njmon_tools_v50]# influx -username admin -password to version 1.8.10InfluxDB shell version: 1.8.10> use njmonUsing database njmon> show measurementsname: measurementsname----cpu_totalcpuinfocpusdisksfilesystemsidentitylscpunetworksos_releaseproc_meminfoproc_versionproc_vmstatstat_counterstimestampuptime_output
LINUX
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~