This file is indexed.

/etc/ltsp/lbaconfig.xml is in ltsp-cluster-lbagent 2.0.2-0ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
<lbaconfig>
    <!-- This is a sample configuration file! see LoadBalancer_en.odt for more information -->
    <lbaservice listen="*:8000"/>
    <specs>
        <!-- Return the memory total (kb) -->
        <constant name="MEMTOTAL">
            <command>free | grep ^Mem | awk '{print $2}'</command>
        </constant>
        <!-- Return the cpu frequency (mhz) -->
        <constant name="CPUFREQ">
            <command>cat /proc/cpuinfo | grep "cpu MHz" | awk '{print $4}' | head -1</command>
        </constant>
        <!-- Return the number of cpu -->
        <constant name="CPUCOUNT">
            <command>cat /proc/cpuinfo | grep "model name" | wc -l</command>
        </constant>
        <!-- Return the os distribution -->
        <constant name="DISTRO">
            <command>lsb_release -d -s</command>
        </constant>
    </specs>
    <status>
        <!-- Return IP addresse as defined in the first line of hostname command -->
        <variable name="IP">
            <command>ip route get 1.2.3.4 | awk 'NR>1{exit};1{print $NF}'</command>
        </variable>
        <!-- Return hostname -->
        <variable name="HOSTNAME">
            <command>hostname</command>
        </variable>
        <!-- Return all addresse from the hostname command -->
        <variable name="ADDRESSES">
            <command>ip addr show | grep "inet " | grep -v 127.0.0.1 | sed "s/.*inet //" | sed "s/\/.*//"</command>
        </variable>
        <!-- Return the free memory (kb)-->
        <variable name="MEMFREE" refresh-delay="30">
            <command>free | grep "^-/+" | awk '{print $4}'</command>
        </variable>
        <!-- Return the used memory (kb)-->
        <variable name="MEMUSED" refresh-delay="30">
            <command>free | grep "^-/+" | awk '{print $3}'</command>
        </variable>
        <!-- % load of the processor -->
        <variable name="LOADAVG" refresh-delay="60">
            <command>cat /proc/loadavg | awk '{print $1}'</command>
        </variable>
        <!-- Return the list of active users -->
        <variable name="USERS" refresh-delay="10">
            <command>who -u | cut -d" " -f1 | sort | uniq</command>
        </variable>
        <!-- Return the number of active users -->
        <variable name="NBUSERS" refresh-delay="10">
            <command>who -u | cut -d" " -f1 | sort | uniq | wc -l</command>
        </variable>
        <!-- Return the number of active users -->
        <variable name="NBX11SESS" refresh-delay="10">
            <command>who -u | cut -d" " -f1 | sort | uniq | wc -l</command>
        </variable>
    </status>
</lbaconfig>