MSGCACHE

Section: Maintenance Commands (8)
Updated: Version 4.3.31: 6 Nov 2026
Index Return to Main Contents

 

msgcache - Cache client messages for later pickup by xymonfetch

 

msgcache [options]

 

msgcache implements a Xymon message cache. It is intended for use with clients which cannot deliver their data to the Xymon server in the normal way. Instead of having the client tools connect to the Xymon server, msgcache runs locally and the client tools then deliver their data to the msgcache daemon. The msgcache daemon is then polled regularly by the xymonfetch(8) utility, which collects the client messages stored by msgcache and forwards them to the Xymon server.

NOTE: When using msgcache, the XYMSRV setting for the clients should be XYMSRV=127.0.0.1 instead of pointing at the real Xymon server.

 

Clients delivering their data to msgcache instead of the real Xymon server will in general not notice this. Specifically, the client configuration data provided by the Xymon server when a client delivers its data is forwarded through the xymonfetch / msgcache chain, so the normal centralized client configuration works.

However, other commands which rely on clients communicating directly with the Xymon server will not work. This includes the config and query commands which clients may use to fetch configuration files and query the Xymon server for a current status.

The download command also does not work with msgcache. This means that the automatic client update facility will not work for clients communicating via msgcache.

 

Defines the IP-address and portnumber where msgcache listens for incoming connections, IPv4 or IPv6; an IPv6 address goes in brackets, as [::1]:1984. By default, msgcache listens for connections on all IPv4 network interfaces, port 1984.

Restricts which servers are allowed to pick up the cached messages. The addresses may be IPv4 or IPv6, each a plain address or a prefix such as 10.0.0.0/8, without an IPv6 scope: an IPv4 server that reaches msgcache over IPv6 is matched by its IPv4 address. By default anyone can contact the msgcache utility and request all of the cached messages. This option allows only the listed servers to request the cached messages.

Defines how long cached messages are kept. If the message has not been picked up with N seconds after being delivered to msgcache, it is silently discarded. Default: N=600 seconds (10 minutes).

Run as a daemon, i.e. msgcache will detach from the terminal and run as a background task

Run as a foreground task. This option must be used when msgcache is started by xymonlaunch(8) which is the normal way of running msgcache.

Store the process ID of the msgcache task in FILENAME.

Log msgcache output to FILENAME.

Enable debugging output.

 

A ping message is answered by msgcache itself and is not forwarded to the Xymon server. The reply is two lines:


msgcache VERSION
lastpull SECONDS

where SECONDS is the age of the last completed pull by any Xymon server - one that found nothing waiting, or whose messages msgcache finished writing to xymonfetch - or -1 if there has been none. With several servers pulling, one that still pulls keeps the age fresh, so it does not show that another has stopped. A message whose first word only begins with those letters, such as "pingpong", is client data and is forwarded as before.

 

xymonfetch(8), xymon(7)

 

NAME
SYNOPSIS
DESCRIPTION
RESTRICTIONS
OPTIONS
PING
SEE ALSO

This document was created by mandoc, using the manual pages.