){Printf ("Get a MEM from block \ n ");Char * pfree = pmyblock-> aData + (pmyblock-> nfirst * nunitsize );// AData records the actual memory unit IDPmyblock-> nfirst = * (ushort *) pfree );Pmyblock-> nfree --;Return (void *) pfree;}Else {Printf ("Add a new block \ n ");If (! Ngrowsize)Return NULL;Pmyblock = new (ngrowsize, nunitsize) memoryblock (ngrowsize, nuni
Trends
Trends.itemid Monitoring Item ID
Zabbix backend system involves a large number of tables, take historical data words concerned about the few can
* Monitoring Rules interpretationA configuration item similar to the following is present in the Zabbix.items table (such as network NIC monitoring, disk monitoring, etc.):Name Key_Free disk space on $ vfs.fs.size[/,free]free disk space on/(percentage) Vfs.fs.size[/,pfree]Free disk space on $ vf
solve the problem. cp/etc/skel/. Bash */home/shome/create a user in Centos, but I do not know why it is not generated in the user's default directory folder ". bash_profile ". when switching to a new user, the following problems will occur, and no shell name solution will appear: all the files in the/etc/skel directory (hidden files) copy to the user's default directory to solve the problem. because the Volume of Openstack requires an independent Volume Shard, I directly created a Volume as the
the permission mkdir/home/shomechown shome: shome/home/shome 2. copy all the files (hidden files) in the/etc/skel directory to your default directory to solve the problem. cp/etc/skel /. bash */home/shome/create a user in Centos, but I do not know why it is not generated in the user's default directory folder ". bash_profile ". when switching to a new user, the following problems will occur, and no shell name solution will appear: all the files in the/etc/skel Directory (hidden files) copy to t
]
System CPU Total load/number of online CPUs average 5min utilization percent
SYSTEM.CPU.LOAD[PERCPU,AVG15]
System CPU Total load/number of online CPUs average 15min utilization percent
perf_counter["\processor (_total) \% User Time"]
Percentage of system CPU usage time
perf_counter["\processor (_total) \% Processor Time"]
Percentage of system CPU usage load
Disk space (amount available)
Create a template First
Create a discovery rule in a template
Mounted filesystem discovery
Vfs.fs.discovery
Filters for and/or {#FSTYPE} matches @File systems for discovery
Project prototype 1
Free disk space on {#FSNAME}
vfs.fs.size[{#FSNAME},free]
Number of the non-positive
Decimal digits
Unit is b
Both the stored value and the display value are unchanged
Apply set to FileSystem
Project prototype 2
Free disk space on {#FSNAME} (percentage)
vfs.fs.size[{#FSNAME},
Figure:
PV:/dev/sdb/dev/SDC
-- PV --
VG: -- PV --
LV: -- LV --LVM command parameters:
PVS, vgs, and LVS: the information is displayed briefly.
Pvdisplay, vgdisplay, and lvdisplay: displays detailed information.LVM creation process:
PV> VG> LV> formatting> mountingLVM usage --- create and view PV
[Root @ localhost ~] # Pvcreate/dev/SD [B, c] // you can use a partition or hard disk .. pvcreate/dev/SD [B, c] 1 is the first partition of the two hard disks to create PV physical volume "/dev/SDB"
: 0x44e9daf0
Device Boot Start End Blocks Id System
/Dev/sdb1 1 13054 104856223 + 83 Linux
3. LVM management settings
The general steps should be as follows: First, let LVM recognize/dev/sdb1 as an available PV (Physical Volume), and then add it to VG to supplement VG resources. Expand the lv_root disk space.
The current LVM situation is as follows:
Lvm> vgs
VG # PV # LV # SN Attr VSize VFree
Vg_li6 1 3 0 wz -- n-79.51g 0
Lvm> lvs
Lv vg Attr LSize Pool Origin Data % Move Log Cpy % Sync Convert
L
. Here, the memory of the previous mem_reserve is changed to mem_commit to make the memory available. If the heap is not the first subheapConverts it to subheap and attaches it to subheap_list. If it is the first subheap, It is initialized to a heap, including the initialization field, building the idle queue, and initializing the critical section..
Call heap_createfreeblock () to create the first idle block of the sub-heap.2.2.2 heap_createfreeblockHeapallocate-> Rtlallocateheap-> heap_findfree
999,999 heading "lrgmb"Column tablespace_name format a20 heading "Tablespace"Column status format a3 truncatedColumn max_extents format 99999999999 heading "MaxExt"Col extent_management for a1 trunc head "M"Col allocation_type for a1 trunc head ""Col Ext_Size for a4 trunc head "Init"Column pfree format a3 trunc heading "% Fr"
Break on reportCompute sum of MB on reportCompute sum of free on reportCompute sum of used on report
SelectD. tablespace_name,
Zabbix Monitoring Disk capacityTwo kinds of monitoring methods:One: Monitor disk usage.Zabbix adding monitoring of disk partitionsFirst, the data on the server is mostly on/www./dev/sda8 ext4 299G 139G 146G 49%/wwwgui--Configuration--Host--Select a host--project--Create ProjectType Zabbix proxy (passive)Key value Vfs.fs.size[/www,pfree]Data type: numeric (floating point)UnitArchiveHere's what you need to explainWhat I want to monitor is the percentage
sdc, or a partition such as sda1 and sdb1VG (volume group) in a hard disk ): volume Group-a volume group consists of multiple LV, which is an abstract directory rather than a device, such as/dev/testVgLV (logic volume ): the logical volume --- LV exists in the PE, as shown in the following figure: pv:/dev/sdb/dev/sdc -- pv -- vg: -- pv -- lv: -- lv -- l V -- lv -- LVM command parameter description: pvs, vgs, lvs: are simple display of relevant information. pvdisplay, vgdisplay, and lvdisplay: D
inst_num, I. instance_name inst_nameFrom v \ $ database d,V \ $ instance I; Set term on feedback off lines 130 pagesize 999 tab off trims onColumn MB format 999,999,999 heading "Total MB"Column free format 9,999,999 heading "Free MB"Column used format 99,999,999 heading "Used MB"Column Largest format 999,999 heading "lrgmb"Column tablespace_name format a20 heading "Tablespace"Column status format a3 truncatedColumn max_extents format 99999999999 heading "MaxExt"Col extent_management for a1 trun
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.