~radix/landscape-client/reactor-refactor-2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
NAME
  landscape-sysinfo - Display a summary of the current system status

SYNOPSIS

  landscape-sysinfo [options]

DESCRIPTION

landscape-sysinfo is a utility that displays information about the computer it is run
on. This information is displayed upon login for console users
(ssh and terminal login supported) and can also be seen at anytime
by just calling landscape-sysinfo from the command line.

The output of landscape-sysinfo can be controlled by enabling or
disabling its plugins. See below how to do that.

If the system load is higher than the number of cores, as determined by the
count of processor lines in /proc/cpuinfo, then
landscape-sysinfo will not run at login time. This is to prevent it from
potentially making a bad situation worse by interfering with what could be an
administrator logging in to try to fix the problem causing the high load.

OPTIONS
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -c FILE, --config=FILE    
                        Use config from this file (any command line options
                        override settings from the file) (default: '/etc/landscape/client.conf').
  -d PATH, --data-path=PATH     
                        The directory to store data files in (default: '/var/lib/landscape/client/').
  --sysinfo-plugins=PLUGIN_LIST     
                        Comma-delimited list of sysinfo plugins to use.
                        Default is to use all plugins.
  --exclude-sysinfo-plugins=PLUGIN_LIST     
                        Comma-delimited list of sysinfo plugins to NOT use.
                        This always take precedence over plugins to include.

Default plugins: Load, Disk, Memory, Temperature, Processes, LoggedInUsers,
LandscapeLink, Network

CONFIGURATION FILE

Any of the long command-line options can be used as a configuration directive
in that configuration file, under the section [sysinfo], by replacing the hyphen
(-) with an underscore (_).

For example, to disable the LandscapeLink and Temperature plugins
without having to use the command line option, the following can be added to
/etc/landscape/client.conf:

    [sysinfo]
    exclude_sysinfo_plugins = Temperature, LandscapeLink


EXAMPLES

This is the default configuration with all plugins enabled:

    $ landscape-sysinfo
      System load:    0.66               Processes:             242
      Usage of /home: 72.0% of 27.50GB   Users logged in:       1
      Memory usage:   31%                IP address for wlan0:  10.0.1.6
      Swap usage:     0%                 IP address for virbr0: 192.168.122.1
      Temperature:    47 C

      => There is 1 zombie process.

      Graph this data and manage this system at https://landscape.canonical.com/

If you want to disable the temperature and Landscape plugins, you could run it like this:

    $ landscape-sysinfo --exclude-sysinfo-plugins=Temperature,LandscapeLink
      System load:    1.08               Processes:             242
      Usage of /home: 72.0% of 27.50GB   Users logged in:       1
      Memory usage:   31%                IP address for wlan0:  10.0.1.6
      Swap usage:     0%                 IP address for virbr0: 192.168.122.1

      => There is 1 zombie process.

FILES
/etc/landscape/client.conf  
Configuration file

/var/log/landscape/sysinfo.log  
Log file for when the tool is run as root. This file will usually be empty,
unless something wrong happened. In that case, it will have more information
about the problem.
When a regular non-root user runs the tool, the log file is ~/.landscape/sysinfo.log.

SEE ALSO
landscape-client(1)
update-motd(5)