[Xymon] Combo Combo Status
Thomas Eckert
thomas.eckert at it-eckert.de
Wed Nov 29 13:11:26 CET 2017
I can confirm this behaviour with 4.3.27 and 4.3.28.
The following is from 4.3.28 running on Raspbian.
combo.cfg:
google.dns = (google\-public\-dns\-a.google.com.dns || google\-public\-dns\-b.google.com.dns )
pepcom.dns = (dns1.pepcom.dns || dns2.pepcom.dns )
combo.combo.dns = ( google.dns + pepcom.dns ) >= 1
1. combo:
# xymonq -H google\$ -T dns -q xymondlog
google|dns|green||1511864349|1511957038|1511958838|0|0|127.0.0.1||||N|
green Wed Nov 29 13:03:58 2017
(google\-public\-dns\-a.google.com.dns||google\-public\-dns\-b.google.com.dns) = (1||1) = 1
&green <a href="/xymon-cgi/svcstatus.sh?HOST=google-public-dns-a.google.com&SERVICE=dns">google-public-dns-a.google.com.dns</a>
&green <a href="/xymon-cgi/svcstatus.sh?HOST=google-public-dns-b.google.com&SERVICE=dns">google-public-dns-b.google.com.dns</a>
2. combo:
# xymonq -H ^pepcom\$ -T dns -q xymondlog
pepcom|dns|green||1511864048|1511957038|1511958838|0|0|127.0.0.1||||N|
green Wed Nov 29 13:03:58 2017
(dns1.pepcom.dns||dns2.pepcom.dns) = (1||1) = 1
&green <a href="/xymon-cgi/svcstatus.sh?HOST=dns1.pepcom&SERVICE=dns">dns1.pepcom.dns</a>
&green <a href="/xymon-cgi/svcstatus.sh?HOST=dns2.pepcom&SERVICE=dns">dns2.pepcom.dns</a>
3. combining both:
# xymonq -H combo.combo -T dns -q xymondlog
combo.combo|dns|green||1511880342|1511957038|1511958838|0|0|127.0.0.1||||N|
green Wed Nov 29 13:03:58 2017
(google.dns+pepcom.dns)>=1 = (1+1)>=1 = 1
&unknown <a href="/xymon-cgi/svcstatus.sh?HOST=google&SERVICE=dns">google.dns</a>
&unknown <a href="/xymon-cgi/svcstatus.sh?HOST=pepcom&SERVICE=dns">pepcom.dns</a>
The links are working fine, so it’s possible to get _relatively_ quick to the needed information. Nevertheless this is a bug that makes combined combos inconvenient in case of a non-green status.
Thomas
> On 27 Nov 2017, at 16:07, Lukas Kohl <lukas.kohl at ergodirekt.de> wrote:
>
> Hey Guys,
> I have a Combo Status, which combines other combo states.
> The states are working technically fine, so that a red state in a subcombo is treated as 0 and is affecting the top state.
> So it works good for most cases.
> The problem I have is, that the States, which are consisting of combos are shown as &unknown (instead of &red or &green) in the xymon page (where a single combo test is working fine).
> I will attach a Screenshot for clarification.
>
> You can reproduce the error by simply building a combo out of a combo state.
>
> Combo from Combo (no gifs):
> <Mail Attachment.gif>
>
> Subcombo (working fine with gif):
> <Mail Attachment.gif>
>
> Best regards,
> Lukas
> _______________________
>
> ERGO Direkt Lebensversicherung AG · Amtsgericht Fürth HRB 2787 · UST-ID-Nr. DE159593454
> ERGO Direkt Versicherung AG · Amtsgericht Fürth HRB 2934 · UST-ID-Nr. DE159593438
> ERGO Direkt Krankenversicherung AG · Amtsgericht Fürth HRB 4694 · UST-ID-Nr. DE159593446
> Vorsitzender des Aufsichtsrats der ERGO Direkt Lebensversicherung AG: Dr. Dr. Michael Fauser
> Vorsitzende des Aufsichtsrats der ERGO Direkt Versicherung AG: Dr. Monika Sebold-Bender
> Vorsitzender des Aufsichtsrats der ERGO Direkt Krankenversicherung AG: Dr. Clemens Muth
> Vorstände: Peter Stockhorst (Vorsitzender), Dr. Jörg Stoffels, Ursula Clara Deschka · Sitz: Fürth
> Karl-Martell-Straße 60 · 90344 Nürnberg · Internet: ergodirekt.de
> UniCredit Bank AG - HypoVereinsbank Kto.-Nr.: 66 071 430 · BLZ 700 202 70
> IBAN: DE63 7002 0270 0066 0714 30 · BIC: HYVEDEMM_______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20171129/e7769936/attachment.html>
More information about the Xymon
mailing list