aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/doc/src/os_mon_app.xml
blob: 99492a20218d75da7bd7a0ca7a91df6e5cb424fa (plain) (blame)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE appref SYSTEM "appref.dtd">

<appref>
  <header>
    <copyright>
      <year>1996</year><year>2016</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
 
          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    
    </legalnotice>

    <title>os_mon</title>
    <prepared></prepared>
    <docno></docno>
    <date></date>
    <rev></rev>
  </header>
  <app>os_mon</app>
  <appsummary>OS Monitoring Application</appsummary>
  <description>
    <p>The operating system monitor, OS_Mon, provides the following
      services:</p>
    <list type="bulleted">
      <item><seealso marker="cpu_sup">cpu_sup</seealso>
       CPU load and utilization supervision (Unix)</item>
      <item><seealso marker="disksup">disksup</seealso>
       Disk supervision(Unix, Windows)</item>
      <item><seealso marker="memsup">memsup</seealso>
       Memory supervision (Unix, Windows, VxWorks)</item>
      <item><seealso marker="os_sup">os_sup</seealso>
       Interface to OS system messages (Solaris, Windows)</item>
    </list>
    <p>To simplify usage of OS_Mon on distributed Erlang systems, it is
      not considered an error trying to use a service at a node where it
      is not available (either because OS_Mon is not running, or because
      the service is not available for that OS, or because the service
      is not started). Instead, a warning message is issued via
      <c>error_logger</c> and a dummy value is returned, which one is
      specified in the man pages for the respective services.</p>
  </description>

  <section>
    <title>Configuration</title>
    <p>When OS_Mon is started, by default all services available for
      the OS, except <c>os_sup</c>, are automatically started. This
      configuration can be changed using the following application
      configuration parameters:</p>
    <taglist>
      <tag><c>start_cpu_sup = bool()</c></tag>
      <item>
        <p>Specifies if <c>cpu_sup</c> should be started. Defaults to
          <c>true</c>.</p>
      </item>
      <tag><c>start_disksup = bool()</c></tag>
      <item>
        <p>Specifies if <c>disksup</c> should be started. Defaults to
          <c>true</c>.</p>
      </item>
      <tag><c>start_memsup = bool()</c></tag>
      <item>
        <p>Specifies if <c>memsup</c> should be started. Defaults to
          <c>true</c>.</p>
      </item>
      <tag><c>start_os_sup = bool()</c></tag>
      <item>
        <p>Specifies if <c>os_sup</c> should be started. Defaults to
          <c>false</c>.</p>
      </item>
    </taglist>
    <p>Configuration parameters effecting the different OS_Mon services
      are described in the respective man pages.</p>
    <p>See <seealso marker="kernel:config">config(4)</seealso> for
      information about how to change the value of configuration
      parameters.</p>
  </section>

  <section>
    <title>SNMP MIBs</title>
    <p>The following MIBs are defined in OS_Mon:</p>
    <taglist>
      <tag>OTP-OS-MON-MIB</tag>
      <item>
        <p>This MIB contains objects for instrumentation of disk,
          memory and CPU usage of the nodes in the system.</p>
      </item>
    </taglist>
    <p>The MIB is stored in the <c>mibs</c> directory.  It is defined
      in SNMPv2 SMI syntax. An SNMPv1 version of the MIB is delivered
      in the <c>mibs/v1</c> directory.</p>
    <p>The compiled MIB is located under <c>priv/mibs</c>, and
      the generated <c>.hrl</c> file under the <c>include</c> directory.
      To compile a MIB that IMPORTS the <c>OTP-OS-MON-MIB</c>, give
      the option <c>{il, ["os_mon/priv/mibs"]}</c> to the MIB compiler.</p>
    <p>If the MIB should be used in a system, it should be loaded into
      an agent with a call to <c>os_mon_mib:load(Agent)</c>, where
      <c>Agent</c> is the pid or registered name of an SNMP agent. Use
      <c>os_mon_mib:unload(Agent)</c> to unload the MIB.
      The implementation of this MIB uses Mnesia to store a cache with
      data needed, which implicates that Mnesia must be up and running.
      The MIB also use functions defined for the <c>OTP-MIB</c>, thus
      that MIB must be loaded as well.</p>
  </section>

  <section>
    <title>See Also</title>
    <p><seealso marker="cpu_sup">cpu_sup(3)</seealso>,
      <seealso marker="disksup">disksup(3)</seealso>,
      <seealso marker="memsup">memsup(3)</seealso>,
      <seealso marker="os_sup">os_sup(3)</seealso>,
      <seealso marker="nteventlog">nteventlog(3)</seealso>,
      <seealso marker="snmp:snmp">snmp(3)</seealso>.</p>
  </section>
</appref>