Xymon Mailing List Archive search

DISPLAYGROUP on alert.cfg

4 messages in this thread

list John Chen · Wed, 14 Dec 2011 11:02:15 -0500 ·
Hi All,

I am using xmon-4.3.7 and xymon-4.3.5.
It seems the DISPLAYGROUP on alter.cfg is now functioning.

I have hosts.cfg as:
page page1 page1-desc
group group 1
xxx.xxx.xxx.xxx host1  # tests
xxx.xxx.xxx.xxx host2  # tests
group group 2
....

And in "alert.cfg" I have:
DISPLAYGROUP="group 1" COLOR=red RECOVERED
        MAIL user-e7f6e934a015@xymon.invalid DURATION>5m REPEAT=24h

Restart/Relod the xymon daemon, and then check the "info" on host1 and
host2, I got:
          Alerting: No alerts defined

Can somebody share some examples for using "DISPLAYGROUP" on alert.cfg?
Thanks,

John Chen
=========
list Henrik Størner · Wed, 14 Dec 2011 18:04:09 +0100 ·
quoted from John Chen
On 14-12-2011 17:02, John Chen wrote:
I am using xmon-4.3.7 and xymon-4.3.5.
It seems the DISPLAYGROUP on alter.cfg is now functioning.
Assume you meant "NOT functioning" ...
Can somebody share some examples for using "DISPLAYGROUP" on alert.cfg?
See www.xymon.com, the "External sites" page and "www.sslug.dk":

http://www.xymon.com/xymon-cgi/svcstatus.sh?HOST=www.sslug.dk&SERVICE=info

You can see the alert.cfg file on 
http://www.xymon.com/xymon-cgi/viewconf.sh?alert


Regards,
Henrik
list John Chen · Wed, 14 Dec 2011 13:05:43 -0500 ·
Thanks Henrik.
Yes I meant "Not functioning".

In my hosts.cfg, I have spaces on the group description, i.e.:
group group 1

In alert.cfg, it works if I use:
    DISPLAYGROUP=%group.1
However, it fails if I use:
    DISPLAYGROUP="group 1"

What is the best way to put a string (with space in it) in DISPLAYGROUP?

John Chen
quoted from John Chen
=========

On 14-12-2011 17:02, John Chen wrote:
* I am using xmon-4.3.7 and xymon-4.3.5.*>* It seems the DISPLAYGROUP on alter.cfg is now functioning.*
Assume you meant "NOT functioning" ...
* Can somebody share some examples for using "DISPLAYGROUP" on alert.cfg?*
See www.xymon.com, the "External sites" page and "www.sslug.dk":
http://www.xymon.com/xymon-cgi/svcstatus.sh?HOST=www.sslug.dk&SERVICE=info

You can see the alert.cfg file on
http://www.xymon.com/xymon-cgi/viewconf.sh?alert


Regards,
Henrik
list Henrik Størner · Wed, 14 Dec 2011 22:03:18 +0100 ·
quoted from John Chen
On 14-12-2011 19:05, John Chen wrote:
In my hosts.cfg, I have spaces on the group description, i.e.:
group group 1

In alert.cfg,it works if I use:
quoted from John Chen
     DISPLAYGROUP=%group.1
However, it fails if I use:
     DISPLAYGROUP="group 1"

What is the best way to put a string (with space in it) in DISPLAYGROUP?
I use the "%group.1" myself :-)

Handling strings with spaces in them has always been bothersome with the 
way Xymon parses configuration files. So I tend to avoid that by using 
the regex-with-wildcard expressions instead.


Regards,
Henrik