File: combo.cfg.5.html

package info (click to toggle)
xymon 4.3.17-6%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 13,240 kB
  • ctags: 10,551
  • sloc: ansic: 66,586; sh: 3,627; makefile: 1,016; perl: 48
file content (143 lines) | stat: -rw-r--r-- 5,732 bytes parent folder | download | duplicates (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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of COMBO.CFG</TITLE>
</HEAD><BODY>
<H1>COMBO.CFG</H1>
Section: File Formats (5)<BR>Updated: Version 4.3.17: 23 Feb 2014<BR><A HREF="#index">Index</A>
<A HREF="../index.html">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

combo.cfg - Configuration of combostatus tool
<P>
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>$XYMONHOME/etc/combo.cfg</B>

<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<I><A HREF="../man1/combostatus.1.html">combostatus</A>(1)</I>

uses it's own configuration file, $XYMONHOME/etc/combo.cfg
Each line in this file defines a combined test.
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>FILE FORMAT</H2>

Each line of the file defines a new combined test. Blank lines and lines
starting with a hash mark (#) are treated as comments and ignored.
<P>
The configuration file uses the hostnames and testnames
that are already used in your Xymon hosts.cfg file. These are
then combined using normal logical operators - &quot;||&quot; for &quot;or&quot;, &quot;&amp;&amp;&quot; for
&quot;and&quot; etc.
<P>
A simple test - e.g. &quot;Web1.http&quot; - results in the value &quot;1&quot; if 
the &quot;http&quot; test for server &quot;Web1&quot; is green, yellow or clear. It yields the 
value &quot;0&quot; if it is red, purple or blue.
<P>
Apart from the logical operations, you can also do integer arithmetic
and comparisons. E.g. the following is valid:
<P>
WebCluster.http = (Web1.http + Web2.http + Web3.http) &gt;= 2
<P>
This test is green if two or more of the http tests for Web1, Web2 and Web3
are green.
<P>
The full range of operators are:
<P>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subtract
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Multiply
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Divide
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modulo
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bit-wise&nbsp;&quot;or&quot;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bit-wise&nbsp;&quot;and&quot;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Logical&nbsp;&quot;or&quot;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Logical&nbsp;&quot;and&quot;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Greater&nbsp;than
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Less&nbsp;than
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Greater&nbsp;than&nbsp;or&nbsp;equal
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Less&nbsp;than&nbsp;or&nbsp;equal
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equal
<P>
There is currently no support for a &quot;not&quot; operator. If you need it,
use the transcription &quot;(host.test == 0)&quot; instead of &quot;!host.test&quot;.
<P>
NB: All operators have EQUAL PRECEDENCE. If you need something evaluated
in a specific order, use parentheses to group the expressions together.
<P>
If the expression comes out as &quot;0&quot;, the combined test goes red. If it comes 
out as non-zero, the combined test is green.
<P>
Note: If the expression involves hostnames with a character that is also
an operator - e.g. if you have a host &quot;t1-router-newyork.foo.com&quot; with a
dash in the hostname - then the operator-character must be escaped with
a backslash '\' in the expression, or it will be interpreted as an operator. 
E.g. like this:
<P>
<BR>&nbsp;nyc.conn&nbsp;=&nbsp;(t1\-router\-nyc.conn&nbsp;||&nbsp;backup\-router\-nyc.conn)
<P>
<P>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLE</H2>

WebCluster.http = (Web1.http || Web2.http)
<BR>

AppSrvCluster.procs = (AppSrv1.conn &amp;&amp; AppSrv1.procs) || (AppSrv2.conn &amp;&amp; AppSrv2.procs)
<BR>

Customer.cluster = WebCluster.http &amp;&amp; AppSrvCluster.procs
<BR>

<P>
The first line defines a new test, with hostname &quot;WebCluster&quot; and the 
columnname &quot;http&quot;. It will be green if the http test on either the
&quot;Web1&quot; or the &quot;Web2&quot; server is green.
<P>
The second line defines a &quot;procs&quot; test for the &quot;AppSrvCluster&quot; host.
Each of the AppSrv1 and AppSrv2 hosts is checked for &quot;conn&quot; (ping)
and their &quot;procs&quot; test. On each host, both of these must be green,
but the combined test is green if that condition is fulfilled on
just one of the hosts.
<P>
The third line uses the two first tests to build a &quot;double combined&quot;
test, defining a test that shows the overall health of the system.
<P>
<P>
<A NAME="lbAG">&nbsp;</A>
<H2>FILES</H2>

<B>$XYMONHOME/etc/combo.cfg</B>

<P>
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>

<A HREF="../man1/combostatus.1.html">combostatus</A>(1)
<P>
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">FILE FORMAT</A><DD>
<DT><A HREF="#lbAF">EXAMPLE</A><DD>
<DT><A HREF="#lbAG">FILES</A><DD>
<DT><A HREF="#lbAH">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 09:41:02 GMT, February 23, 2014
</BODY>
</HTML>