[Xymon] Synchronize disabled servers from one xymon installation to another?
Gore, David W (David)
david.gore at verizon.com
Wed Aug 10 12:18:19 CEST 2011
Carl,
I would guess it is similar to something what I mentioned in my posting asking about combos which has so far has garnered no response:
xymoncmd xymond_alert --test host service --duration=29 --color=red
00002332 2011-08-07 12:57:58 *** Match with 'EXHOST=$HOSTS_EXCLUDED HOST=* SERVICE=service COLOR=red' ***
00002332 2011-08-07 12:57:58 Matching host:service:page 'host:service:Site/Platform,Place' against rule line 432
00002332 2011-08-07 12:57:58 Failed 'SCRIPT=$SENDPAGE $PAGE_NMS DURATION>30m REPEAT=365d' (min. duration 1740<1800)
The duration above is in minutes when clearly the documentation specifies seconds?
--test HOST SERVICE [options]
Shows which alert rules matches the given HOST/SERVICE combination. Useful to debug configu-
ration problems, and see what rules are used for an alert.
The possible options are:
--color=COLORNAME The COLORNAME parameter is the color of the alert: red, yellow or purple.
--duration=SECONDS The SECONDS parameter is the duration of the alert in seconds.
--group=GROUPNAME The GROUPNAME paramater is a groupid string from the analysis.cfg file.
David Gore (v965-3670)
Network Management Systems (NMS)
IMPACT Transport Team Lead - SCSA, SCNA
Page: 1-800-PAG-eMCI pin 1406090
Vnet: 965-3676
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Carl Melgaard
Sent: Wednesday, August 10, 2011 09:22
To: 'xymon at xymon.com'
Subject: Re: [Xymon] Synchronize disabled servers from one xymon installation to another?
Hi,
Thanks alot for this!
But I found a curiosity when trying to disable things:
./xymon localhost "disable host.conn 86028s Disabled by: blah @ 10.10.10.10 Reason: blah blah"
Doesn't put the host in maintenance for 86028 seconds (almost 24 hrs) - instead it uses minutes (59 days instead) - is there a bug with the "s"-suffix that I don't know about - or am I using xymon disable wrong?
/melgaard
________________________________
Fra: Gore, David W (David) [mailto:david.gore at verizon.com]
Sendt: 10. august 2011 03:42
Til: Carl Melgaard; 'xymon at xymon.com'
Emne: RE: Synchronize disabled servers from one xymon installation to another?
>From TJ Yang, he probably has this posted on his site which I don't recall right now. We may or may not have made edits. We use it on Red Hat Linux Enterprise 5.6.
#! /bin/sh
# -----------------------------------------------------------------------------
# S H E L L S C R I P T S P E C I F I C A T I O N
# -----------------------------------------------------------------------------
#
# NAME
# bluesync.sh - A shell script to replicate Primary Xymon Serverblue record
# to Secondary standby Xymon server.
#
#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110810/91926be0/attachment.html>
More information about the Xymon
mailing list