Hi.
I want to do several content check for the same host. Here my configuration in bb-hosts file:
0.0.0.0 foo.com # cont;http://foo.com;regexp1 cont;http://foo.com;regexp2
I get 2 columns (content and content1) but I would like have only one. How can I merge the result of these 2 checks into only one column ?
Thanks in advance.
-- Germain Malherbe
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified. Thank you.
On 13 November 2012 03:55, <germain1.malherbe at orange.com> wrote:
Hi.****
I want to do several content check for the same host.****
Here my configuration in bb-hosts file:****
**0.0.0.0 **foo.com # cont;http://foo.com;regexp1 cont;http://foo.com ;regexp2****
I get 2 columns (content and content1) but I would like have only one.****
How can I merge the result of these 2 checks into only one column ?
What happens if you specify the column name, like this:
0.0.0.0 foo.com# cont=content;http://foo.com;regexp1 cont=content; http://foo.com;regexp2
I'm guessing the second will replace the first, but might be worth a try.
Apart from this, I suggest either an external test, or to add a combo test with the "content" and "content1" suppressed via group-except. The external test is probably less cumbersome.
Cheers Jeremy
Hi.
It's exact, the second test replace the first. The group-except tag is not suitable because it doesn't merge several checks, I would have only the result of the first check because another will be suppressed. No ? In fact, if it doesn't exist a solution, I will have to do en external script.
Thanks Germain
De : Jeremy Laidman [mailto:jlaidman at rebel-it.com.au] Envoyé : mardi 13 novembre 2012 00:41 À : germain1.malherbe at orange.com Cc : xymon at xymon.com Objet : Re: [Xymon] Content check
On 13 November 2012 03:55, <germain1.malherbe at orange.com<mailto:germain1.malherbe at orange.com>> wrote: Hi.
I want to do several content check for the same host. Here my configuration in bb-hosts file:
0.0.0.0 foo.com<http://foo.com> # cont;http://foo.com;regexp1 cont;http://foo.com;regexp2
I get 2 columns (content and content1) but I would like have only one. How can I merge the result of these 2 checks into only one column ?
What happens if you specify the column name, like this:
0.0.0.0 foo.com#<http://foo.com> cont=content;http://foo.com;regexp1 cont=content;http://foo.com;regexp2
I'm guessing the second will replace the first, but might be worth a try.
Apart from this, I suggest either an external test, or to add a combo test with the "content" and "content1" suppressed via group-except. The external test is probably less cumbersome.
Cheers Jeremy
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified. Thank you.
On 13 November 2012 20:12, <germain1.malherbe at orange.com> wrote:
It’s exact, the second test replace the first.
:-(
The group-except tag is not suitable because it doesn’t merge several checks, I would have only the result of the first check because another will be suppressed. No ?
That's what the combo test will do. The "group-except" is just to hide the two "content" columns, so that you don't end up with a total of three columns.
J
Ok I understand. I didn't know the combo feature (combo.cfg). I will test that.
Thanks
De : Jeremy Laidman [mailto:jlaidman at rebel-it.com.au] Envoyé : mercredi 14 novembre 2012 00:04 À : germain1.malherbe at orange.com Cc : xymon at xymon.com Objet : Re: [Xymon] Content check
On 13 November 2012 20:12, <germain1.malherbe at orange.com<mailto:germain1.malherbe at orange.com>> wrote: It's exact, the second test replace the first.
:-(
The group-except tag is not suitable because it doesn't merge several checks, I would have only the result of the first check because another will be suppressed. No ?
That's what the combo test will do. The "group-except" is just to hide the two "content" columns, so that you don't end up with a total of three columns.
J
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified. Thank you.
participants (2)
-
germain1.malherbe@orange.com
-
jlaidman@rebel-it.com.au