Description:
The unix-status-collector gets its data from the unix-status-server.
For a detailed explanation of what the various directives mean,
see its documentation, as it's the implementor.
It sends a query consisting mostly of the sections of the server
that it wants to run. It can also request that processes with
specific names be counted and that information returned too.
A query for all the sections might look like:
UNAME
UPTIME
TIME 986485967
VMSTAT
DF
NETSTAT
QMAILQ
PS
webservers ps count httpd
FILEAGE
test fileage /var/spool/locks/lockfile
PROC
swaptot proc /proc/meminfo ^SwapTotal:\s+(\d+)
GO
The webservers ps count httpd
line requests that the ps section
count the number of processes called httpd
and return
that as a variable called webservers
.
The test fileage /var/spool/locks/lockfile
line requests the last
modification time of the file /var/spool/locks/lockfile
, which is
returned in seconds.
The swaptot ...
line looks for the total swap size in /proc/meminfo
.
The best way to see what it will produce is to run it manually.
[