[Xymon] Creating a custom nongreeen.html
SebA
spah at syntec.co.uk
Mon Jun 27 14:04:10 CEST 2016
Please refer to my two e-mails to the list from earlier in the month (that
no-one responded to!)
* <http://lists.xymon.com/archive/2016-June/043562.html> [Xymon]
Xymon all red page minor bug question and patch SebA
http://lists.xymon.com/archive/2016-June/043562.html
* <http://lists.xymon.com/archive/2016-June/043563.html> [Xymon]
Xymon custom colour (wallboard) page SebA
http://lists.xymon.com/archive/2016-June/043563.html
Kind regards,
SebA
_____
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of McKenner, Gary
Sent: 15 June 2016 03:36
To: xymon at xymon.com
Subject: [Xymon] Creating a custom nongreeen.html
Hi,
A few months ago I managed to get xymongen to create a custom non-green.html
that only has red status , this file red.html is created every minute along
with non-green.html , critical.html & xymon.html
I cannot remember where I added the extra config to run this extra
non-green.sh filtering out only the red status and has no eventlog or
acklog.
I seem to recall adding an extra stanza to a file to create this custom file
but I cannot remember where the file is.
I ran a strace of the scheduled xymongen command exactly as it is run by
Xymon and you can see the red.html file being created after the normal
non-green.html
# strace -f ./xymongen --recentgifs --subpagecolumns=2 --report >
/tmp/xymongen.txt3 2>&1
...
open("nongreen.html.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
open("/usr/share/xymon/web/stdnongreen_header", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=1221, ...}) = 0
read(4, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 1221) = 1221
close(4) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff815a4a000
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=453, ...}) = 0
write(3, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 4096) = 4096
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=453, ...}) = 0
open("/usr/share/xymon/web/bulletin_header", O_RDONLY) = -1 ENOENT (No such
file or directory)
write(3, "</a><span class=\"invis\"> | </spa"..., 4096) = 4096
open("/usr/share/xymon/data/hist/allevents", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/var/log/xymon/acknowledge.log", O_RDONLY) = 4
stat("/var/log/xymon/acknowledge.log", {st_mode=S_IFREG|0644, st_size=244,
...}) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=244, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff815a49000
read(4, "1465774929\t1877328492\t2880\t18773"..., 4096) = 244
read(4, "", 4096) = 0
close(4) = 0
munmap(0x7ff815a49000, 4096) = 0
open("/usr/share/xymon/web/stdnongreen_footer", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=332, ...}) = 0
read(4, "<BR><BR>\n\n<TABLE SUMMARY=\"Bottom"..., 332) = 332
close(4) = 0
open("/usr/share/xymon/web/bulletin_footer", O_RDONLY) = -1 ENOENT (No such
file or directory)
write(3, "ends\"><IMG SRC=\"/xymon/gifs/gree"..., 2422) = 2422
close(3) = 0
munmap(0x7ff815a4a000, 4096) = 0
rename("nongreen.html.tmp", "nongreen.html") = 0
open("red.html.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
open("/usr/share/xymon/web/stdnongreen_header", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=1221, ...}) = 0
read(4, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 1221) = 1221
close(4) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff815a4a000
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=453, ...}) = 0
write(3, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 4096) = 4096
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=453, ...}) = 0
open("/usr/share/xymon/web/bulletin_header", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/share/xymon/web/stdnongreen_footer", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=332, ...}) = 0
read(4, "<BR><BR>\n\n<TABLE SUMMARY=\"Bottom"..., 332) = 332
close(4) = 0
open("/usr/share/xymon/web/bulletin_footer", O_RDONLY) = -1 ENOENT (No such
file or directory)
write(3, "</a><span class=\"invis\"> | </spa"..., 3570) = 3570
close(3) = 0
munmap(0x7ff815a4a000, 4096) = 0
rename("red.html.tmp", "red.html") = 0
Any ideas of where and what I edited to get this custom html file created
Cheers,
Gary McKenner
Unix Systems Administrator
Group IT Operations
I'm for a better WA.
Royal Automobile Club of WA (Inc.)
832 Wellington Street, West Perth, WA 6005
T 08 9436 4310 M 0417972910
E gary.mckenner at rac.com.au
_____
DISCLAIMER:
Disclaimer. This e-mail is private and confidential. If you are not the
intended recipient, please advise us by return e-mail immediately, and
delete the e-mail and any attachments without using or disclosing the
contents in any way. The views expressed in this e-mail are those of the
author, and do not represent those of this company unless this is clearly
indicated. You should scan this e-mail and any attachments for viruses. This
company accepts no liability for any direct or indirect damage or loss
resulting from the use of any attachments to this e-mail.
_____
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160627/2cc03431/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 32772 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160627/2cc03431/attachment.png>
More information about the Xymon
mailing list