[Xymon] hosts.cfg and alerts.cfg
David Baldwin
david.baldwin at ausport.gov.au
Fri Mar 18 00:42:49 CET 2011
>
> *From:*xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On
> Behalf Of *Raymond, David
> *Sent:* 16 mars 2011 13:48
> *To:* xymon at xymon.com
> *Subject:* [Xymon] hosts.cfg and alerts.cfg
>
>
>
> Hi all,
>
>
>
> I use different way to manage my hosts.cfg file. I do include custom
> hosts file like this :
>
> #Site
>
> include ./site/hosts.cfg
>
>
>
> In my “site” folder, I get more hosts again, and I set those like this :
>
>
>
> include ./site/hosts-srv.cfg
>
> include ./site /hosts-sap.cfg
>
> include ./site /hosts-usine.cfg
>
> include ./site /hosts-net.cfg
>
> include ./site /hosts-ups.cfg
>
> include ./site /hosts-lab.cfg
>
>
>
> The issue is when I want to check in my alerts.cfg for page or
> subpage, all features are set in all hostname.
>
>
>
> How can I fix this ?
>
>
Are you using the 'page' or 'subpage' tags in any of the files listed?
'include' is just a process of replacing the line which has the 'include
[filename]' tag with the contents of the file specified. If none of the
files contain a 'page' or 'subpage' tag, then all the hosts will appear
at the top level in the host listing and will not have an associated
page or subpage for use in alerts.cfg.
See 'man hosts.cfg'
You can list info about your hosts from the xymon server:
xymon <xymonhost> "xymondboard test=info
fields=hostname,XMH_PAGEPATH,XMH_PAGEINDEX,XMH_CLASS"
See 'man xymon-xmh'
David.
--
David Baldwin - IT Unit
Australian Sports Commission www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
david.baldwin at ausport.gov.au Leverrier Street Bruce ACT 2617
-------------------------------------------------------------------------------------
Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au
This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
-------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110318/f3da2545/attachment.html>
More information about the Xymon
mailing list