1# NB : Even though it might look like a shell-script, it is NOT.
2#
3XYMONSERVERROOT="@XYMONTOPDIR@"			# Where Xymon is installed
4XYMONSERVERLOGS="@XYMONLOGDIR@"			# Directory for server logs. The xymon user must have write-access here.
5XYMONCLIENTHOME="@XYMONTOPDIR@/client"		# XYMONHOME directory for the client
6
7
8XYMONSERVERHOSTNAME="@XYMONHOSTNAME@"		# The hostname of your server
9XYMONSERVERIP="@XYMONHOSTIP@"			# The IP-address of your server. Use the real one, not 127.0.0.1 .
10XYMONSERVEROS="@XYMONHOSTOS@"			# The operating system of your server. linux,freebsd,solaris,hpux,aix,osf
11
12XYMONSERVERWWWNAME="@XYMONHOSTNAME@"		# The name used for this hosts' webserver
13XYMONSERVERWWWURL="@XYMONHOSTURL@"		# The top URL for the Xymon webpages
14XYMONSERVERCGIURL="@XYMONCGIURL@"		# The URL for the Xymon CGI scripts.
15XYMONSERVERSECURECGIURL="@SECUREXYMONCGIURL@"	# The URL for the secured Xymon CGI scripts.
16
17# XYMONNETWORK="foo"				# The network location, makes xymonnet test only hosts with NET:foo
18						# You only need to set this if you have multiple network test servers with
19						# a shared hosts.cfg file.
20
21# Make sure the path includes the directories where you have fping, mail and (optionally) ntpdate installed,
22# as well as the XYMONHOME/bin directory where all of the Xymon programs reside.
23PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:@XYMONHOME@/bin"
24SHELL="/bin/sh"					# Shell to use when forking programs
25
26# Some systems need extra settings e.g. to locate run-time libraries.
27# You can add these extra settings here:
28@RUNTIMEDEFS@
29
30# Default settings for "delayred" and "delayyellow" parameters in hosts.cfg
31DELAYRED=""			# Format: status:delay[,status:delay - e.g. "cpu:15,disk:30"
32DELAYYELLOW=""			# Format: status:delay[,status:delay - e.g. "cpu:15,disk:30"
33
34
35##### Normally you do not need to modify anything below this point #####
36
37# General settings
38XYMONDPORT="1984"		# Portnumber where xymond listens
39XYMSRV="$XYMONSERVERIP"		# IP of a single Xymon server
40XYMSERVERS=""			# IP of multiple Xymon servers. If used, XYMSRV must be 0.0.0.0
41FQDN="TRUE"			# Use fully-qualified hostnames internally. Keep it TRUE unless you know better.
42XYMONLOGSTATUS="DYNAMIC"	# Are HTML status logs statically or dynamically generated?
43				# Use DYNAMIC with Xymon, unless you run xymond_filestore --status --html
44STATUSLIFETIME="30"		# Default number of minutes a status is valid after an update. After this
45				# time has elapsed, the status will go purple.
46
47PINGCOLUMN="conn"		# Column where the ping-test reports results.
48INFOCOLUMN="info"		# Column where the info-pages are reported.
49INFOCOLUMNGIF="green.gif"	# Icon file used for the info-column.
50TRENDSCOLUMN="trends"		# Column where the RRD graphs are reported.
51TRENDSCOLUMNGIF="green.gif"	# Icon file used for the trends-column.
52CLIENTCOLUMN="clientlog"	# Column where raw client logs are reported.
53CLIENTCOLUMNGIF="green.gif"	# Icon file used for the client-column.
54
55MAXMSGSPERCOMBO="100"           # How many individual messages to combine in a combo-message. 0=unlimited.
56SLEEPBETWEENMSGS="0"            # Delay between sending each combo message, in milliseconds.
57
58# Maximum message size buffers (in KB)
59# These are commented out by default, you should only change them if you
60# have systems sending large status-messages or otherwise need to handle
61# large messages. Please read the description in xymonserver.cfg(5) first.
62#
63#MAXMSG_CLIENT=512		# clientdata messages (default=512k)
64#MAXMSG_CLICHG=$MAXMSG_CLIENT	# client change messages (default=MAXMSG_CLIENT)
65#MAXMSG_STATUS=256		# general "status" messages (default=256k)
66#MAXMSG_STACHG=$MAXMSG_STATUS	# status change messages (default=MAXMSG_STATUS)
67#MAXMSG_PAGE=$MAXMSG_STATUS	# page messages (default=MAXMSG_STATUS)
68#MAXMSG_ENADIS=32		# enable and disable control messages (default=32k)
69#MAXMSG_USER=128		# "user" messages (default=128k)
70#MAXMSG_DATA=256		# "data" messages, if enabled (default=256k)
71#MAXMSG_NOTES=256		# "notes" messages, if enabled (default=256k)
72
73# HOLIDAYS="us"			# Default set of holidays (pointer to section in holidays.cfg)
74# HOLIDAYFORMAT="%m/%d/%y"	# Format for printing holiday dates. Default is %d/%m/%y (day/month/year).
75
76# Specific to this host
77SERVEROSTYPE="$XYMONSERVEROS"		# Hosttype (operating system). Not used by server-side, but clients use this.
78MACHINEDOTS="$XYMONSERVERHOSTNAME"	# This systems hostname
79MACHINEADDR="$XYMONSERVERIP"		# This systems IP-address
80
81# URL's generated/used by xymongen
82XYMONWEBHOST="http://$XYMONSERVERWWWNAME"	# Just the host part of the URL - http://www.foo.com
83XYMONWEBHOSTURL="$XYMONWEBHOST$XYMONSERVERWWWURL"	# Prefix for all static Xymon pages - http://www.foo.com/xymon
84XYMONWEBHTMLLOGS="$XYMONWEBHOSTURL/html"	# Prefix for the Xymon HTML logs (only if XYMONLOGSTATUS=STATIC)
85XYMONWEB="$XYMONSERVERWWWURL"			# Xymon URL prefix without the host part
86XYMONSKIN="$XYMONSERVERWWWURL/gifs"		# Xymon URL prefix for the GIF files
87XYMONHELPSKIN="$XYMONSERVERWWWURL/help"         # Xymon URL prefix for the online help files.
88XYMONNOTESSKIN="$XYMONSERVERWWWURL/notes"       # Xymon URL prefix for the online notes-files.
89XYMONMENUSKIN="$XYMONSERVERWWWURL/menu"         # Xymon URL prefix for the webpage menu files.
90XYMONREPURL="$XYMONSERVERWWWURL/rep"		# Xymon URL prefix for the Xymon availability reports
91XYMONSNAPURL="$XYMONSERVERWWWURL/snap"		# Xymon URL prefix for the Xymon snapshots
92XYMONWAP="$XYMONSERVERWWWURL/wml"		# Xymon URL prefix for the WAP/WML files.
93CGIBINURL="$XYMONSERVERCGIURL"			# URL prefix for the Xymon CGI-scripts - /cgi-bin
94SECURECGIBINURL="$XYMONSERVERSECURECGIURL"	# URL prefix for the secured Xymon CGI-scripts - /cgi-secure
95
96# Locations of system-wide files and directories
97XYMONHOME="@XYMONHOME@"				# The Xymon server directory, where programs and configurations go.
98XYMONTMP="$XYMONHOME/tmp"			# Directory used for temporary files.
99HOSTSCFG="$XYMONHOME/etc/hosts.cfg"		# The hosts.cfg file
100XYMON="$XYMONHOME/bin/xymon"			# The 'xymon' client program
101XYMONGEN="$XYMONHOME/bin/xymongen"		# The xymongen program
102
103# Server specific directories
104XYMONVAR="@XYMONVAR@"				# The xymonvar directory holds all monitoring data
105XYMONACKDIR="$XYMONVAR/acks"			# Acknowledge event info stored here (xymond_alert)
106XYMONDATADIR="$XYMONVAR/data"			# Data files go here (xymond_filestore --data)
107XYMONDISABLEDDIR="$XYMONVAR/disabled"		# Enabled/disabled flags are stored here (xymond_filestore --enadis)
108XYMONHISTDIR="$XYMONVAR/hist"			# History logs are stored here (xymond_history)
109XYMONHISTLOGS="$XYMONVAR/histlogs"		# Historical detail status-loge are stored here (xymond_history)
110XYMONRAWSTATUSDIR="$XYMONVAR/logs"		# Status logs go here (xymond_filestore --status). Not needed by Xymon.
111XYMONWWWDIR="$XYMONHOME/www"			# The directory for Xymon webpage files.
112XYMONHTMLSTATUSDIR="$XYMONWWWDIR/html"		# HTML status logs go here (xymond_filestore --status --html)
113XYMONNOTESDIR="$XYMONWWWDIR/notes"		# For notes-files (xymond_filestore --notes)
114XYMONREPDIR="$XYMONWWWDIR/rep"			# Top-level directory for Xymon reports.
115XYMONSNAPDIR="$XYMONWWWDIR/snap"		# Top-level directory for Xymon snapshots.
116
117# For the xymond_history module
118XYMONALLHISTLOG="TRUE"				# Save a common log of all events (used for the all nongreen webpage)
119XYMONHOSTHISTLOG="TRUE"				# Save a log of all events for a host (not used by any tool currently)
120SAVESTATUSLOG="TRUE"				# Save the detailed status log each time the status changes.
121
122# For the xymond_alert module
123MAILC="@MAILPROGRAM@"				# Command used to send an e-mail with no subject
124MAIL="$MAILC -s"				# Command used to send an e-mail with a subject
125SVCCODES="disk:100,cpu:200,procs:300,svcs:350,msgs:400,conn:500,http:600,dns:800,smtp:725,telnet:723,ftp:721,pop:810,pop3:810,pop-3:810,ssh:722,imap:843,ssh1:722,ssh2:722,imap2:843,imap3:843,imap4:843,pop2:809,pop-2:809,nntp:819,test:901"
126ALERTCOLORS="red,yellow,purple"			# Colors that may trigger an alert message
127OKCOLORS="green,blue,clear"			# Colors that may trigger a recovery message
128ALERTREPEAT="30"				# The default interval between repeated alert-messages (in minutes)
129
130# For xymonnet
131CONNTEST="TRUE"					# Should we 'ping' hosts ?
132IPTEST_2_CLEAR_ON_FAILED_CONN="TRUE"		# If TRUE, then failing network tests go CLEAR if conn-test fails.
133NONETPAGE=""					# Network tests that go YELLOW upon failure
134FPING="@FPING@"					# Path and options for the ping program.
135FPINGOPTS="-Ae"					# Standard options to fping/xymonping
136NTPDATE="ntpdate"				# Path to the 'ntpdate' program
137NTPDATEOPTS="-u -q -p 1"			# Standard options to ntpdate
138TRACEROUTE="mtr"                         # How to do traceroute on failing ping tests. Requires "trace" in hosts.cfg .
139TRACEROUTEOPTS="-n -c 2 -w 2 -m 15 --report"		# Standard options to traceroute
140XYMONROUTERTEXT="router"			# What to call a failing intermediate network device.
141NETFAILTEXT="not OK"				# Text indicating a network test failed
142
143
144# Settings for the RRD graphs
145
146# Top level directory for the RRD files
147XYMONRRDS="$XYMONVAR/rrd"
148
149# Size of the generated graph images
150RRDHEIGHT="120"
151RRDWIDTH="576"		# The RRD's contain 576 data points, so this is a good value
152
153# TEST2RRD defines the status- and data-messages you want to collect RRD data
154# about. You will normally not need to modify this, unless you have added a
155# script to pick up RRD data from custom tests (the xymond_rrd --extra-script
156# and --extra-tests options).
157# Note that network tests defined in the protocols.cfg file are automatically
158# included.
159# The format here is "COLUMN=RRDSERVICE". If you leave out the "=RRDSERVICE"
160# part, it is assumed to be the same as the COLUMN value.
161
162# GRAPHS_<columnname> entries define what graphs to display on COLUMNs, if not the
163# default ones indicated above. This can allow you to display additional graphs on
164# a status page, even if xymond_rrd is not using the TEST2RRD data above.
165# If present, overrides the column RRD value above for display purposes, so be sure
166# to include the that, if desired
167# eg, GRAPHS_cpu="la,vmstat1"
168
169#
170# TEST2RRD and GRAPHS_* are used by the svcstatus.cgi script to determine if the detailed
171# status view of a test should include a graph.
172TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,deltalines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,if_load=devmon,temp=devmon,paging,mdc,mdchitpct,cics,dsa,getvis,maxuser,nparts,xymongen,xymonnet,xymonproxy,xymond"
173
174# This defines which RRD files to include on the "trends" column webpage,
175# and the order in which they appear.
176GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,tcp.http,tcp,ncv,netstat,ifstat,mrtg::1,ports,temperature,ntpstat,apache,bind,sendmail,mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,clock,lines,deltalines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,devmon::1,if_load::1,temp,paging,mdc,mdchitpct,cics,dsa,getvis,maxuser,nparts,xymongen,xymonnet,xymonproxy,xymond"
177
178# These two settings can be used to restrict what filesystems are being
179# tracked (i.e. have their utilisation graphed) by Xymon.
180# NORRDDISKS=""		# Filesystems that will NOT be tracked
181# RRDDISKS=""		# Only track these filesystems
182
183
184###############################################################
185# These determine some parts of how xymongen generates webpages
186###############################################################
187XYMONGENOPTS="--recentgifs --subpagecolumns=2"	# Standard options for xymongen.
188SUMMARY_SET_BKG="FALSE"				# Do summaries affect the background color of the Standard webpage ?
189XYMONNONGREENEXT="eventlog.sh acklog.sh"	# What extensions to have on the All non-green page.
190DOTHEIGHT="16"					# Height (in pixels) of the color GIF's
191DOTWIDTH="16"					# Width (in pixels) of the color GIF's
192IMAGEFILETYPE="gif"				# Filetype of the icon image files. You can change this to "png" or "jpg"
193COLUMNDOCURL="$CGIBINURL/columndoc.sh?%s"	# URL formatting string for column-links
194# HOSTDOCURL is a formatting string for generating links to host documentation.
195# If NOT set, Xymon will scan the "notes" directory for files matching the hostname
196# and possibly a filename extension (php, html, doc, asp ...)
197#
198# HOSTDOCURL="$XYMONNOTESSKIN/%s.html"
199
200
201# HTML content
202HTMLCONTENTTYPE="text/html"                     # You can add charset options here.
203
204# Fonts and texts
205XYMONLOGO="Xymon"                               # HTML inserted on all header pages at top-left corner.
206XYMONPAGELOCAL="<B><I>Pages Hosted Locally</I></B>"
207XYMONPAGEREMOTE="<B><I>Remote Status Display</I></B>"
208XYMONPAGESUBLOCAL="<B><I>Subpages Hosted Locally</I></B>"
209XYMONPAGEACKFONT="COLOR=\"#33ebf4\" SIZE=\"-1\""	# Size and color of the 'Current acknowledgement...' text in the html log.
210XYMONPAGECOLFONT="COLOR=\"#87a9e5\" SIZE=\"-1\""	# Size and color of the column headings text
211XYMONPAGEROWFONT="SIZE=\"+1\" COLOR=\"#FFFFCC\" FACE=\"Tahoma, Arial, Helvetica\""   # Size,color,font of text in each row (hostname)
212XYMONPAGETITLE="COLOR=\"#FFFFF0\" SIZE=\"+1\""	# Size and color of the Xymon titles
213XYMONDATEFORMAT="%a %b %d %H:%M:%S %Y"		# Date format
214XYMONRSSTITLE="Xymon Alerts"			# Title for the RSS and WML outputs.
215ACKUNTILMSG="Next update at: %H:%M %Y-%m-%d"    # strftime format for the acknowledgement status display.
216XYMONALLOKTEXT="<FONT SIZE=+2 FACE=\"Arial, Helvetica\"><BR><BR><I>All Monitored Systems OK</I></FONT><BR><BR>"
217
218# Stylesheet and menu control stuff
219XYMONBODYCSS="$XYMONSKIN/xymonbody.css"			# Stylesheet used for the Xymon webpage body
220XYMONBODYMENUCSS="$XYMONMENUSKIN/xymonmenu-blue.css"	# Stylesheet used for the Xymon webpage menu
221XYMONBODYHEADER="file:$XYMONHOME/etc/xymonmenu.cfg"	# File containing the HTML code snippet that defines the menu
222XYMONBODYFOOTER=""					# HTML inserted at the bottom of all webpages.
223
224# For WML output
225WMLMAXCHARS="1500"				# Max number of bytes in a WAP message
226
227# For Xymon reports
228XYMONREPWARN="97"				# Default availability causing yellow status on availability report.
229XYMONREPGREEN="99.995"				# Default availability causing green status on availability report.
230XYMONGENREPOPTS="$XYMONGENOPTS"			# xymongen(1) options used when generating availability reports.
231XYMONREPEXT=""					# What extensions to run on report pages.
232
233# For Xymon snapshots
234XYMONGENSNAPOPTS="$XYMONGENOPTS"		# xymongen(1) options used when generating snapshots.
235
236# For the history CGI
237XYMONHISTEXT=""					# What extensions to run on history pages.
238
239
240##### Compatibility settings #####
241BBSERVERROOT="$XYMONSERVERROOT"
242BBSERVERHOSTNAME="$XYMONSERVERHOSTNAME"
243BBSERVERIP="$XYMONSERVERIP"
244BBSERVEROS="$XYMONSERVEROS"
245BBSERVERWWWNAME="$XYMONSERVERWWWNAME"
246BBSERVERWWWURL="$XYMONSERVERWWWURL"
247BBSERVERCGIURL="$XYMONSERVERCGIURL"
248BBSERVERSECURECGIURL="$XYMONSERVERSECURECGIURL"
249
250BB="$XYMON"
251BBDISP="$XYMSRV"
252BBDISPLAYS="$XYMSERVERS"
253BBPAGE="$BBDISP"
254BBPAGERS="$BBDISPLAYS"
255BBREL="Xymon"
256BBRELDATE=""
257BBOSTYPE="$SERVEROSTYPE"
258BBMAXMSGSPERCOMBO="$MAXMSGSPERCOMBO"
259BBSLEEPBETWEENMSGS="$SLEEPBETWEENMSGS"
260
261BBLOGSTATUS="$XYMONLOGSTATUS"
262BBLOGS="$XYMONRAWSTATUSDIR"
263BBDISABLED="$XYMONDISABLEDDIR"
264BBDATA="$XYMONDATADIR"
265BBACKS="$XYMONACKDIR"
266BBVAR="$XYMONVAR"
267
268BBHOSTS="$HOSTSCFG"
269BBHOME="$XYMONHOME"
270BBSKIN="$XYMONSKIN"
271BBWEBHOST="$XYMONWEBHOST"
272BBWEBHOSTURL="$XYMONWEBHOSTURL"
273BBWEBHTMLLOGS="$XYMONWEBHTMLLOGS"
274BBHELPSKIN="$XYMONHELPSKIN"
275BBWEB="$XYMONWEB"
276BBTMP="$XYMONTMP"
277BBNOTES="$XYMONNOTESDIR"
278BBNOTESSKIN="$XYMONNOTESSKIN"
279BBMENUSKIN="$XYMONMENUSKIN"
280BBWAP="$XYMONWAP"
281
282MKBBLOCAL="$XYMONPAGELOCAL"
283MKBBREMOTE="$XYMONPAGEREMOTE"
284MKBBSUBLOCAL="$XYMONPAGESUBLOCAL"
285MKBBACKFONT="$XYMONPAGEACKFONT"
286MKBBCOLFONT="$XYMONPAGECOLFONT"
287MKBBROWFONT="$XYMONPAGEROWFONT"
288MKBBTITLE="$XYMONPAGETITLE"
289BBDATEFORMAT="$XYMONDATEFORMAT"
290BBRSSTITLE="$XYMONRSSTITLE"
291BBROUTERTEXT="$XYMONROUTERTEXT"
292
293BBSERVERLOGS="$XYMONSERVERLOGS"
294BBRRDS="$XYMONRRDS"
295BBWWW="$XYMONWWWDIR"
296BBHTML="$XYMONHTMLSTATUSDIR"
297
298BBREP="$XYMONREPDIR"
299BBREPURL="$XYMONREPURL"
300BBREPWARN="$XYMONREPWARN"
301BBREPPANIC="$XYMONREPGREEN"
302BBREPEXT="$XYMONREPEXT"
303
304BBSNAP="$XYMONSNAPDIR"
305BBSNAPURL="$XYMONSNAPURL"
306
307BBGEN="$XYMONGEN"
308BBGENOPTS="$XYMONGENOPTS"
309BBGENREPOPTS="$XYMONGENREPOPTS"
310BBGENSNAPOPTS="$XYMONGENSNAPOPTS"
311
312BBHIST="$XYMONHISTDIR"
313BBHISTLOGS="$XYMONHISTLOGS"
314BBALLHISTLOG="$XYMONALLHISTLOG"
315BBHOSTHISTLOG="$XYMONHOSTHISTLOG"
316BBHISTEXT="$XYMONHISTEXT"
317
318HOBBITDREL="$XYMONDREL"
319HOBBITLOGO="$XYMONLOGO"
320
321HOBBITCLIENTHOME="$XYMONCLIENTHOME"
322BBCLIENTLOGS="$XYMONSERVERLOGS"
323
324