Zabbixjs css htmlzabbix

Zabbix-1·概述

2022-11-29  本文已影响0人  技术老男孩

一、Zabbix简介:

二、Zabbix监控拓扑:

监控拓扑.png

1. 监控服务器:

2. 被监控主机

三、监控的目的:

1. 报告系统运行状况

2. 提前发现问题,早发现、早治疗

四、监控的资源类别

1. 公开数据

2. 私有数据

五、自动化监控系统

Cacti

Nagios

Zabbix

六、常用的系统监控命令

查看内存信息

[root@zabbix ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:           972M        478M         70M        6.7M        423M        338M
Swap:          2.0G        1.8M        2.0G

查看交换分区信息

[root@zabbix ~]# swapon -s
文件名             类型      大小  已用  权限
/dev/dm-1                               partition   2097148 1800-2

查看磁盘信息

[root@zabbix ~]# df -h
文件系统                 容量  已用  可用 已用% 挂载点
devtmpfs                 475M     0  475M    0% /dev
tmpfs                    487M     0  487M    0% /dev/shm
tmpfs                    487M  7.7M  479M    2% /run
tmpfs                    487M     0  487M    0% /sys/fs/cgroup
/dev/mapper/centos-root   17G  2.1G   15G   13% /
/dev/sda1               1014M  138M  877M   14% /boot
tmpfs                     98M     0   98M    0% /run/user/0

查看CPU信息

[root@zabbix ~]# uptime
 02:50:05 up  8:10,  2 users,  load average: 0.04, 0.05, 0.05

查看网卡信息

[root@zabbix ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.88.5  netmask 255.255.255.0  broadcast 192.168.88.255
        inet6 fe80::f76a:691c:e1b2:20ed  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:7c:87:74  txqueuelen 1000  (Ethernet)
        RX packets 137635  bytes 148924395 (142.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 56472  bytes 45379404 (43.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 108444  bytes 17817334 (16.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 108444  bytes 17817334 (16.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

查看端口信息

[root@zabbix ~]# netstat -ntulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1020/sshd           
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1148/master         
tcp        0      0 0.0.0.0:10050           0.0.0.0:*               LISTEN      27427/zabbix_agentd 
tcp        0      0 0.0.0.0:10051           0.0.0.0:*               LISTEN      27031/zabbix_server 
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      27750/php-fpm: mast 
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      4404/mysqld         
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      4484/nginx: master  
tcp6       0      0 :::22                   :::*                    LISTEN      1020/sshd           
tcp6       0      0 ::1:25                  :::*                    LISTEN      1148/master         
udp        0      0 127.0.0.1:323           0.0.0.0:*                           756/chronyd         
udp6       0      0 ::1:323                 :::*                                756/chronyd         

查看网络连接信息

[root@zabbix ~]# ping -c2 192.168.88.100
PING 192.168.88.100 (192.168.88.100) 56(84) bytes of data.
64 bytes from 192.168.88.100: icmp_seq=1 ttl=64 time=0.521 ms
64 bytes from 192.168.88.100: icmp_seq=2 ttl=64 time=0.246 ms

--- 192.168.88.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 0.246/0.383/0.521/0.138 ms
上一篇下一篇

猜你喜欢

热点阅读