📄 readme
字号:
Mem and Swap Monitor--------------------Here you are reading a ratio of total used to total available.The amount of memory used indicated by the memory monitor isactually a calculated "used" memory. If you enter the"free" command, you will see that most of your memory is almostalways used because the kernel uses large amounts for buffersand cache. Since the kernel can free a lot of this memoryas user process demand for memory goes up, a more realistic readingof memory in use is obtained by subtracting the buffers and cachedmemory from the kernel reported used. This is shown in the freecommand output in the "-/+ buffers/cache" line where a calculatedused amount has buffers and cached memory subtracted from the kernelreported used memory, and a calculated free amount has the buffersand cached memory added in.While the memory meter always shows the calculated "used" memory,the raw memory values total, shared, buffered, and cached may beoptionally displayed in the memory panel by entering an appropriateformat display string in the config.Units: All memory values have units of binary megabytes (MiB).Memory sizes have historically been reported in these units becausememory arrays on silicon have always increased in size by multiplesof 2. Add an address line to a memory chip and you double or quadruple(a multiplexed address) the memory size. A binary megabyte is2^20 or 1048576. Contrast this with units for other stats suchas disk capacities or net transfer rates where the proper unitsare decimal megabytes or kilobytes. Disk drive capacities do notincrease by powers of 2 and manufacturers do not use binaryunits when reporting their sizes. However, some of you may preferto see a binary disk drive capacity reported, so it is availableas an option.Internet Monitor----------------Displays TCP port connections and records historical port hits on aminute or hourly chart. Middle button click on an inet chart totoggle between the minute and hourly displays. There is a stripbelow the minute or hour charts where marks are drawn for porthits in second intervals. Each inet krell also shows port hitswith a full scale range of 5 hits. The left button toggle of extrainfo displays current port connections.For each internet monitor you can specify two labeled datasets withone or two ports for each dataset. There are two ports because someinternet ports are related and you might want to group them - forexample, the standard http port is 80, but there is also a www webcaching service on port 8080. So it makes sense to have a httpmonitor which combines data from both ports. A possible commonconfiguration would be to create one inet monitor that monitorshttp hits plotted in the one color and ftp hits in another.To do this, setup in the Internet configuration tab: http 80 8080 ftp 21Or you could create separate monitors for http and ftp. Othermonitors might be smtp on port 25 or nntp on port 119.If you check the "Port0 - Port1 is a range" button, then all of theports between the two entries will be monitored. Clicking thesmall button on the Inet panels will pop up a window listing thecurrently connected port numbers and the host that is connectedto it.GKrellM samples TCP port activity once per second, so it is possiblefor port hits lasting less than a second to be missed.File System Monitor-------------------File system mount points can be selected to be monitored with a meterthat shows the ratio of blocks used to total blocks available. Mountingcommands can be enabled for mount points in one of two ways:1) If a mount point is in your /etc/fstab and you have mount permissionthen mount and umount commands can be enabled and executed for thatmount point simply by checking the "Enable /etc/fstab mounting" option.Mount table entries in /etc/fstab must have the "user" or "owner" option setto grant this permission unless GKrellM is run as root.For example, if you run GKrellM as a normal user and you want to beable to mount your floppy, your /etc/fstab could have either of: /dev/fd0 /mnt/floppy ext2 user,noauto,rw,exec 0 0or /dev/fd0 /mnt/floppy ext2 user,defaults 0 02) If GKrellM is run as root or if you have sudo permission to run themount commands, then a custom mount command can be entered into the"mount command" entry box. A umount command must also be entered if youchoose this method. Example mount and umount entries using sudo: sudo /bin/mount -t msdos /dev/fd0 /mnt/A sudo /bin/umount /mnt/ANotes: the mount point specified in a custom mount command (/mnt/A inthis example) must be the same as entered in the "Mount Point" entry.Also, you should have the NOPASSWD option set in /etc/sudoers for this.File system monitors can be created as primary (always visible)or secondary which can be hidden and then shown when they are ofinterest. For example, you might make primary file system monitorsfor root, home, or user so they will be always visible, but makesecondary monitors for less frequently used mount points such asfloppy, zip, backup partitions, foreign file system types, etc.Secondary FS monitors can also be configured to always be visible if theyare mounted by checking the "Show if mounted" option. Using thisfeature you can show the secondary group, mount a file system, and havethat FS monitor remain visible even when the secondary group is hidden.A standard cdrom mount will show as 100% full but a monitor for itcould be created with mounting enabled just to have themount/umount convenience.When the "Ejectable" option is selected for a file system, an ejectbutton will appear when the mouse enters the file system panel. If youare not using /etc/fstab mounting, a device file to eject will also needto be entered. Systems may have varying levels of support for this featureranging from none or basic using an ioctl() to full support using an ejectcommand to eject all its supported devices. Linux and NetBSD use the"eject" command while FreeBSD uses the "cdcontrol" command, so be surethese commands are installed.Most eject commands will also support closing a CDROM tray. If they do,you will be able to access this function by right clicking the eject button.Mail Monitor------------Checks your mailboxes for unread mail. A mail reading program (MUA) can beexecuted with a left mouse click on the mail monitor panel button, anda mail notify (play a sound) program such as esdplay or artsplay can beexecuted whenever the new mail count increases. The mail panel envelopedecal may also be clicked to force an immediate mail check at any time.GKrellM is capable of checking mail from local mailbox types mbox, MH, andmaildir, and from remote mailbox types POP3 and IMAP.POP3 and IMAP checking can use non-standard port numbers and passwordauthentication protocols APOP (for POP3 only) or CRAM-MD5. If supportedby the mail server, emote checking may be done over an SSL connection ifthe "Use SSL" option is selected.Before internal POP3 and IMAP checking was added, an external mailfetch/check program could be set up to be executed periodically todownload or check remote POP3 or IMAP mail. This method is stillavailable and must be used if you want GKrellM to be able todownload remote mail to local mailboxes because the builtin checkingfunctions cannot download.Battery Monitor--------------------------This meter will be available if a battery exists and will show batterypercentage life remaining. A decal indicates if AC line is connectedor if the battery is in use. If the data is available, time remainingmay be displayed as well as the percentage battery level. If the timeremaining is not available or is inaccurate, the Estimate Time optionmay be selected to display a battery time to run or time to charge whichis calculated based on the current battery percent level, user suppliedtypical battery times, and a default linear extrapolation model.For charging, an exponential charge model may be selected.A battery low level warning and alarm alert may be set. If battery timeis not available from the OS and the estimate time mode is not set, thealert units will be battery percent level. Otherwise the alert units willbe battery time left in minutes. If OS battery time is not available and theestimate time mode is set when the alert is created, the alert will haveunits of time left in minutes and the alert will automatically be destroyedif the estimate time option is subsequently turned off.If the OS reports multiple batteries, the alert will be a master alertwhich is duplicated for each battery.CPU/Motherboard Sensors - Temperature, Voltages, and Fan RPM------------------------------------------------------------Linux:-----Sensor monitoring requires that either lm_sensors modules areinstalled in your running kernel, that you run a kernel >= 2.6 with sysfssensors configured, or, for i386 architectures, that you have the mbmondaemon running when gkrellm is started. If the mbmon daemon is used, itmust be started before gkrellm like so: mbmon -r -P port-numberwhere the given "port-number" must be configured to match in the gkrellmSensors->Options config. Sensor temperatures can also be read from/proc/acpi/thermal_zone, /proc/acpi/thermal and /proc/acpi/ibm.When using lm_sensors, sensor data is read from /proc/sys/dev/sensors andthere is no linking to the lm_sensors libraries.Disk temperatures may also be monitored if you have the hddtemp daemonrunning when gkrellm is started. Gkrellm uses the default hddtemp portof 7634. Both hddtemp and mbmon are best started in a boot rc script toguarantee they will be running when gkrellm is started.Nvidia graphics card GPU temperatures may also be monitored if you havethe nvidia-settings command installed and your Nvidia card supportsthe temperature reporting.Windows-------Requires a MBM install: http://mbm.livewiredev.com/.FreeBSD------------------Builtin sensor reporting is available for some sensor chips.FreeBSD systems can also read sensor data from the mbmon daemon as describedin the Linux section above.NetBSD------------------Builtin sensor reporting is available for some sensor chips.NetBSD uses the envsys(4) interface and sensors reading is automaticallyenabled if you have either a lm(4) or viaenv(4) chip configured in your kernel.General Setup:--------------Temperature and fan sensor displays may be optionally located on the CPU orProc panels to save some vertical space while voltages are always displayedon their own panel. If you set up to monitor both a temperature and a fanon a single CPU or Proc panel, they can be displayed optionally as analternating single display or as separate displays. If separate, the fandisplay will replace the panel label. The configuration for this is underthe CPU and Proc config pages.In the Setup page for the Sensors config you also enter any correctionfactors and offsets for each of the sensors you are monitoring. For Linux,default values are automatically provided for many sensor chips, but ifthey are not correct you should review the lm_sensors documentation. Seebelow for an explanation of converting lm_sensor compute lines (see/etc/sensors.conf) to GKrellM correction factors and offsets.Note for NetBSD users: The current implementation of the sensor reading under NetBSD opens/dev/sysmon and never closes it. Since that device does not supportconcurrent accesses, you won't be able to run other apps such asenvstat(8) while GKrellM is running. This might change if this happensto be an issue.The reasons for this choice are a) efficiency (though it might be possibleto open/close /dev/sysmon each time a reading is needed without majorperformance issue) and b) as of october 2001, there's a bug in theenvsys(4) driver which sometimes causes deadlocks when processes try toaccess simultaneoulsy /dev/sysmon (see NetBSD PR#14368). A (quick anddirty) workaround for this is to monopolize the driver :)CPU/Motherboard Temperatures----------------------------Most modern motherboards will not require setting temperature correctionfactors and offsets other than the defaults. However, for lm_sensors itis necessary to have a correct "set sensor" line in /etc/sensors.confif the temperature sensor type is other than the default thermistor.If using Linux sysfs sensors, this sensor type is set by writing toa sysfs file. For example, you might at boot set a sysfs temperature sensortype with: echo "2" > /sys/bus/i2c/devices/0-0290/sensor2On the other hand, some older motherboards may need temperature calibrationby setting a correction factor and offset for each temperature sensorbecause of factors such as variations in physical thermistor contactwith the CPU. Unfortunately, this calibration may not be practical or
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -