This file is indexed.

/usr/share/xymon/help/xymon-tips.html is in xymon 4.3.25-1.

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
 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>Xymon Tips and Tricks</title>
</head>
<body>
<h1>Xymon Tips and Tricks</h1>

<p>Here you will find out how to do some common questions
raised with Xymon.</p>
<ul>
	<li><a href="#icons">What do the different red/yellow/green icons mean ?</a></li>
	<li><a href="#noclient">Client side tests are missing</a></li>
	<li><a href="#clientnames">Clients using odd hostnames</a></li>
	<li><a href="#droprename">Where are the bbmv/bbrm commands?</a></li>
	<li><a href="#droptest">How do I delete a test status ?</a></li>
	<li><a href="#drophost">How do I delete a host ?</a></li>
	<li><a href="#renamehost">How do I rename a host ?</a></li>
	<li><a href="#apachetest">I cannot get the Apache graphs to work</a></li>
	<li><a href="#mrtg">How can I add MRTG graphs to the Xymon webpages?</a></li>
	<li><a href="#updatefreq">Updating more frequently</a></li>
	<li><a href="#fahrenheit">I want my temperature graphs to show Fahrenheit</a></li>
	<li><a href="#nohtmllink">How do I remove the HTML links from the alert messages?</a></li>
	<li><a href="#mancgi">I cannot see the the man-pages on the web</a></li>
	<li><a href="#mailnosubj">My alert emails come without a subject</a></li>
	<li><a href="#snmptraps">Does Xymon support receiving SNMP traps?</a></li>
	<li><a href="#scripts">How can I create a custom test script?</a></li>
	<li><a href="#ipad">How can I make the menus work on my iPad?</a></li>
	<li><a href="#noinstall">How can I send data to Xymon without installing the client?</a></li>
</ul>
<hr>

<h3><a name="icons">What do the little red/yellow/green icons mean ?</a></h3>
<table align="center" border=1 summary="Xymon status icons">
	<tr><th align=left valign=top>Color</th><td>Recently changed</td><td>Last change &gt; 24 hours</td></tr>
	<tr><th align=left valign=top>Green: Status is OK</th><td align=center><img src="/xymon/gifs/green-recent.gif" alt="Green - recently changed"></td><td align=center><img src="/xymon/gifs/green.gif" alt="Green"></td></tr>
	<tr><th align=left valign=top>Yellow: Warning</th><td align=center><img src="/xymon/gifs/yellow-recent.gif" alt="Yellow - recently changed"></td><td align=center><img src="/xymon/gifs/yellow.gif" alt="Yellow"></td></tr>
	<tr><th align=left valign=top>Red: Critical</th><td align=center><img src="/xymon/gifs/red-recent.gif" alt="Red - recently changed"></td><td align=center><img src="/xymon/gifs/red.gif" alt="Red"></td></tr>
	<tr><th align=left valign=top>Clear: No data</th><td align=center><img src="/xymon/gifs/clear-recent.gif" alt="Clear - recently changed"></td><td align=center><img src="/xymon/gifs/clear.gif" alt="Clear"></td></tr>
	<tr><th align=left valign=top>Purple: No report</th><td align=center><img src="/xymon/gifs/purple-recent.gif" alt="Purple - recently changed"></td><td align=center><img src="/xymon/gifs/purple.gif" alt="Purple"></td></tr>
	<tr><th align=left valign=top>Blue: Disabled</th><td align=center><img src="/xymon/gifs/blue-recent.gif" alt="Blue - recently changed"></td><td align=center><img src="/xymon/gifs/blue.gif" alt="Blue"></td></tr>
</table>
<hr>

<h3><a name="noclient">My client-side tests don't show up on the webpages</a></h3>
<p>Did you install a client ? The Xymon client package is installed
automatically only on the Xymon server - on other systems, you must
build the client package by running Xymon's configure-script with
the <tt>&quot;--client&quot;</tt> option and build the client package on the hosts you
want to monitor.</p>

<p>If you did install a client, then the two most probable causes for 
this are:</p>
<ul>
	<li>The client is using another hostname than what is in the hosts.cfg file.<br>
	Xymon only cares about the hosts that are in the hosts.cfg file, and
	discards status-reports from unknown hosts. If you check the "xymond"
	column on the webserver display for the Xymon server, you will see 
	a report about these unknown hosts.<br>
	Either reconfigure the client to use the same hostname as is in the
	hosts.cfg file, or add a <tt>CLIENT:clienthostname</tt> tag in the
	hosts.cfg file so Xymon knows what host matches the client hostname.
	The Xymon client can be started with a <tt>&quot;--hostname=MYHOSTNAME&quot;</tt>
	option to explicitly define the hostname that the client uses when
	reporting data to Xymon.</li>

	<li>A firewall is blocking the client access to the Xymon server.<br>
	Clients must be able to connect to the Xymon server on TCP port 1984
	to send their status reports. If this port is blocked by a firewall,
	client status reports will not show up.<br>
	If possible, open up the firewall to allow this access. Alternatively,
	you may setup a proxy using the <em>xymonproxy</em> tool (part of Xymon)
	to forward status messages from a protected network to the Xymon
	server.<br>
	Other methods are also possible, e.g. <em>bbfetch</em> (available from
	the <a href="http://www.deadcat.net/">www.deadcat.net</a> archive.
</ul>

<hr>
<h3><a name="clientnames">My silly clients are using a hostname different from the one in hosts.cfg</a></h3>
<p>Add a <tt>CLIENT:clienthostname</tt> tag to the host entry in the hosts.cfg file,
or re-configure the client to use the proper hostname.</p>


<hr>
<h3><a name="droprename">Where are the bbrm and bbmv commands from Big Brother ?</a></h3>
<p>They have been integrated into the Xymon network daemon. See
the next three questions.</p>


<hr>
<h3><a name="droptest">I accidentally added an 'ftp' check. Now I cannot get it off the webpage!</a></h3>
<p>Use the command</p>
<pre>
    ~/server/bin/xymon 127.0.0.1 "drop HOSTNAME ftp"
</pre>
<p>to permanenly remove all traces of a test. Note that you need the quotes
around the &quot;drop HOSTNAME ftp&quot;.</p>


<hr>
<h3><a name="drophost">So how do I get rid of an entire host in Xymon?</a></h3>
<p>First, remove the host from the ~/server/etc/hosts.cfg file. Then use the command</p>
<pre>
    ~/server/bin/xymon 127.0.0.1 "drop HOSTNAME"
</pre>
<p>to permanenly remove all traces of a host. Note that you need the quotes
around the &quot;drop HOSTNAME&quot;.</p>

<hr>
<h3><a name="renamehost">How do I rename a host in the Xymon display?</a></h3>
<p>First, change the ~/server/etc/hosts.cfg file so it has the new name.
Then to move your historical data over to the new name, run</p>
<pre>
    ~/server/bin/xymon 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"
</pre>


<hr>
<h3><a name="apachetest">Getting the Apache performance graphs</a></h3>
<p>Charles Jones provided this recipe on the Xymon mailing list:</p>
<pre><tt>
From: Charles Jones
Date: Sun, 06 Feb 2005 21:28:19 -0700
Subject: Re: [hobbit] Apache tag

Okay, first you must make the indicated addition to your apache
httpd.conf (or you can make a xymon.conf in apaches conf.d directory).
[ed: See the hosts.cfg man-page for the "apache" description]

Then, you must restart apache for the change to take effect
(/etc/init.d/httpd restart).

Then, manually test the server-stats url to make sure it's working, by
using your browser and going to
http://your.server.com/server-status?auto  (you can also go to
http://your.server.com/server-status/ to get some nice extended apache
performance info).  You should get back something like this:

Total Accesses: 131577
Total kBytes: 796036
CPULoad: 1.0401
Uptime: 21595
ReqPerSec: 6.09294
BytesPerSec: 37746.7
BytesPerReq: 6195.16
BusyWorkers: 43
IdleWorkers: 13

Scoreboard: RR__RWR___RR_R_RR_RRRRRRRRR_RRRRRRR__RRR_RRRRCRRRRR_RRRR........................................................................................................................................................................................................

Now, assuming you are getting back the server-status info, time to make
sure your hosts.cfg is correctly configured to collect and graph the
data.  Heres what I have in mine:

1.2.3.4    my.server.com  # conn ssh http://1.2.3.4 apache=http://1.2.3.4/server-status?auto TRENDS:*,apache:apache|apache1|apache2|apache3

 From what you said of your setup, I'm guessing your only problem is
 using the wrong url for the apache tag (you used
 "apache=http://192.168.1.25/xymon/" which just won't work - that's the
 kind of URL you would use for the http tag).

 Hope this helped.

 -Charles
</tt></pre>


<hr>
<h3><a name="mrtg">How can I add MRTG graphs to the Xymon webpages?</a></h3>
<p>There is <a href="xymon-mrtg.html">a special document</a> for this, describing how you can configure
MRTG to save data in a format that Xymon can handle natively.</p>

<hr>
<h3><a name="updatefreq">I need the web-pages to update more frequently</a></h3>
<p>The ~/server/etc/tasks.cfg defines the update
interval for all of the Xymon programs. The default is for
network tests to run every 5 minutes, and webpage updates to
happen once a minute.</p>
<p>Note that if you run the <em>xymonnet-again.sh</em> tool
on your network test server (this is the default for a new
Xymon server), then network tests that fail 
will run every minute for up to 30 minutes after the initial
failure, so usually there is little need to change the update
interval for your network tests.</p>

<hr>
<h3><a name="fahrenheit">I want my temperature graphs in Fahrenheit</a></h3>
<p>Edit the file server/etc/graphs.cfg, and change the <b>[temperature]</b>
definition from the default one to the one below that shows Fahrenheit graphs.</p>

<hr>
<h3><a name="nohtmllink">How do I remove the HTML links from the alert messages?</a></h3>
<p>Configure your alerts in server/etc/alerts.cfg to use <tt>FORMAT=PLAIN</tt>
instead of TEXT.</p>

<hr>
<h3><a name="mancgi">I cannot see the man-pages on the web</a></h3>
<p>A common Apache configuration mistakenly believes any filename containing
".cgi" is a CGI-script, so it refuses to present the man-pages for the CGI
scripts. Stephen Beaudry found the solution:</p>
<pre>
   This occurs because by default, apache associates the cgi-script
   handler with any filename containing ".cgi".  I fixed this on my server
   by changing the following line in my httpd.conf

   AddHandler cgi-script .cgi     -&gt;to-&gt;    AddHandler cgi-script .cgi$
</pre>

<hr>
<h3><a name="mailnosubj">My alert emails come without a subject</a></h3>
<p>Xymon by default uses the system <b>mail</b> command to send out messages.
The mail-command in Solaris and HP-UX does not understand the "-s SUBJECT" syntax that Xymon uses.
So you get mails with no subject. The solution is to change the MAIL setting in
etc/xymonserver.cfg to use the <b>mailx</b> command instead. Xymon needs to be
restarted after this change.</p>

<hr>
<h3><a name="snmptraps">Does Xymon support receiving SNMP traps?</a></h3>
<p>Not directly, but there is other Open Source software available that can
handle SNMP traps. A very elegant method of feeding traps into Xymon has been
described in <a href="http://cerebro.victoriacollege.edu/hobbit-trap.html">this
article</a> by Andy Farrior.</p>

<hr>
<h3><a name="scripts">How can I create a custom test script?</a></h3>
<p>Anything that can be automated via a script or a custom program can
be added into Xymon. A lot of extension scripts are available for
Big Brother at the <a href="http://www.deadcat.net/">www.deadcat.net archive</a>,
and these will typically work without modifications if you run them in
Xymon. Sometimes a few minor tweaks are needed - the Xymon mailing list
can help you if you don't know how to go about that.</p>
<p>But if you have something unique you need to test, writing an extension
script is pretty simple. You need to figure out some things:</p>
<ul>
  <li>What name will you use for the column?
  <li>How will you test it?
  <li>What criteria should decide if the test goes red, yellow or green?
  <li>What extra data from the test will you include in the status message ?
</ul>

<p>A simple <b>client-side</b> extension script looks like this:</p>
<pre><tt>
   #!/bin/sh

   COLUMN=mytest	# Name of the column
   COLOR=green		# By default, everything is OK
   MSG="Bad stuff status"

   # Do whatever you need to test for something
   # As an example, go red if /tmp/badstuff exists.
   if test -f /tmp/badstuff
   then
      COLOR=red
      MSG="${MSG}
 
      `cat /tmp/badstuff`
      "
   else
      MSG="${MSG}

      All is OK
      "
   fi

   # Tell Xymon about it
   $XYMON $XYMSRV "status $MACHINE.$COLUMN $COLOR `date`

   ${MSG}
   "

   exit 0
</tt></pre>

<p>You will notice that some environment variables are pre-defined:
XYMON, XYMSRV, MACHINE are all provided by Xymon when you run your script via
xymonlaunch. Also note how the MSG variable is used to build the status
message - it starts out with just the "Bad stuff status", then you add
data to the message when we decided what the status is.</p>

<p>To run this, save your script in the ~xymon/client/ext/ directory 
(i.e. in the ext/ directory off where you installed the Xymon client),
then add a new section to the ~xymon/client/etc/clientlaunch.cfg file
like this:</p>

<pre><tt>
   [myscript]
	ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
	CMD $XYMONCLIENTHOME/ext/myscript.sh
	LOGFILE $XYMONCLIENTHOME/logs/myscript.log
	INTERVAL 5m
</tt></pre>

<br><br>

<p><b>Server-side scripts</b> look almost the same, but they will
typically use the <a href="manpages/man1/xymongrep.1.html">xymongrep</a>
utility to pick out hosts in the hosts.cfg file that have a special tag 
defined, and then send one status message for each of those hosts. 
Like this:</p>
<pre><tt>
   #!/bin/sh

   HOSTTAG=foo          # What we put in hosts.cfg to trigger this test
   COLUMN=$HOSTTAG	# Name of the column, often same as tag in hosts.cfg

   $XYMONHOME/bin/xymongrep $HOSTTAG | while read L
   do
      set $L	# To get one line of output from xymongrep

      HOSTIP="$1"
      MACHINEDOTS="$2"
      MACHINE=`echo $2 | $SED -e's/\./,/g'`

      COLOR=green
      MSG="$HOSTTAG status for host $MACHINEDOTS"

      #... do the test, perhaps modify COLOR and MSG

      $XYMON $XYMSRV "status $MACHINE.$COLUMN $COLOR `date`

      ${MSG}
      "
    done

    exit 0
</tt></pre>

<p>Note that for server side tests, you need to loop over the list
of hosts found in the hosts.cfg file, and send one status message for
each host. Other than that, it is just like the client-side tests.</p>

<hr>

<h3><a name="ipad">How can I make the menus work on my iPad ?</a></h3>
<p>The menu system uses the CSS &quot;hover&quot; tag, but this is not
supported on tablets and other touch-screen interfaces like the iPad.
Mark Hinkle provides <a href="http://lists.xymon.com/archive/2011-July/032069.html">this solution</a>
to the problem:
</p>
<p><tt>
In the ~xymon/server/etc/xymonmenu.cfg file, I added the 
'&lt;a href=&quot;javascript:;&quot;&gt;' anchor around the top-level menu 
items. Like:<br>
&nbsp;&nbsp;&lt;span class=&quot;menutag&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;Views&lt;/a&gt;&lt;span class=&quot;invis&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
</tt></p>

<hr>
<h3><a name="noinstall">How can I send data to Xymon without installing the client?</a></h3>
<p>If you cannot install any &quot;foreign&quot; tools on your system, then sending data to Xymon may be a challenge. But if you have access to either Perl, BASH or telnet on the system then it is possible.</p>
<p>Perl version:<pre><code>#!/usr/bin/perl
#
sub sendToXymon {
	use IO::Socket;
	my($server,$port,$msg) = @_ ;
	my $response;
	my $sock = new IO::Socket::INET (
			PeerAddr =&gt; $server,
			PeerPort =&gt; $port,
			Proto =&gt; 'tcp',
		);
	die &quot;Could not create socket: $!\n&quot; unless $sock;
	print $sock $msg;
	shutdown($sock, 1);
	while ($response=&lt;$sock&gt;)
	{
		print "$response";
	}
	close($sock);
}

$host = $ARGV[0];
if ($#ARGV != 2) {
  $port = 1984;
  $msg = $ARGV[1];
}
else {
  $port = $ARGV[1];
  $msg = $ARGV[2];
}

sendToXymon($host, $port, $msg);
</pre></code></p>
<p>BASH version:<pre><code>#!/bin/bash
#
HOST=&quot;$1&quot; ; shift
if test $# -gt 1; then
  PORT=&quot;$1&quot;
  shift
else
  PORT="1984"
fi
MSG=&quot;$1&quot;

exec 3&lt;&gt;/dev/tcp/$HOST/$PORT || exit 1
echo &quot;$MSG&quot; &gt;&amp;3

exit 0
</pre></code>
NOTE: The BASH support for using TCP sockets may be disabled at compile-time - some believe it is a security risk to have such an easy way of doing network I/O without requiring any special tools.</p>

<p>Bourne / Korn shell (requires telnet):<pre><code>#!/bin/sh
#
HOST=&quot;$1&quot; ; shift
if test $# -gt 1; then
  PORT=&quot;$1&quot;
  shift
else
  PORT="1984"
fi
MSG=&quot;$1&quot;

( echo "$MSG"; sleep 1 ) | telnet $HOST $PORT 2&gt;&amp;1 &gt;/dev/null | grep -v "closed by foreign host"
</pre></code></p>

<p>Both of these take 2 or 3 parameters: The Xymon host (hostname or IP-address), optionally the portnumber (1984 by default if not specified), and the message that will be sent to Xymon. The Perl version will both send data to Xymon and print out any response that is sent back - the shell-versions can only be used to send data to Xymon.</p>

<p>Oyvind Bjorge provided the core of the Perl script, and Jeremy Laidman provided the core of the shell-scripts in <a href="http://lists.xymon.com/archive/2012-August/035299.html">this thread</a> on the Xymon mailing list.</p>

<hr>

</body>
</html>