IGNORE ignored
list Nick Pettefar
In the server/etc/analysis.cfg file I have the following: HOST=ourserver1 LOG=/var/adm/messages IGNORE="%terminal-device not specifiedby login%" # LOG=/var/adm/messages IGNORE="terminal-device not specifiedby login" I want to ignore messages containing the string "terminal-device not specifiedby login" May 31 17:22:53 ourserver1 bpjava-msvc[7112]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module. Unfortunately it doesn't work. From: system user for Xymon Subject: Xymon [214797] ourserver1-ge1:msgs CRITICAL (RED) red Wed May 29 12:52:59 IST 2013 - System logs NOT ok &red Critical entries in <a href="/xymon-cgi/svcstatus.sh? CLIENT=ourserver1&SECTION=msgs:/var/adm/messages">/var/adm/messages</a> &red May 29 12:51:56 ourserver1 bpjava-msvc[12541]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module. &red May 29 12:51:56 ourserver1 bpjava-msvc[12541]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module. What am I doing wrong? Regards, Nick Pettefar
list Paul Root
Two things.
Why do you have a % at the end?
Have you tried putting the opening double-quote before the IGNORE?
LOG=/var/adm/messages “IGONORE=%terminal-device not specifiedby login”
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Nick Pettefar
Sent: Friday, May 31, 2013 11:34 AM
To: xymon
Subject: [Xymon] IGNORE ignored
In the server/etc/analysis.cfg file I have the following:
HOST=ourserver1
LOG=/var/adm/messages IGNORE="%terminal-device not specifiedby login%"
# LOG=/var/adm/messages IGNORE="terminal-device not specifiedby login"
I want to ignore messages containing the string "terminal-device not specifiedby login"
May 31 17:22:53 ourserver1 bpjava-msvc[7112]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
Unfortunately it doesn't work.
From: system user for Xymon
Subject: Xymon [214797] ourserver1-ge1:msgs CRITICAL (RED)
red Wed May 29 12:52:59 IST 2013 - System logs NOT ok
&red Critical entries in <a href="/xymon-cgi/svcstatus.sh?
CLIENT=ourserver1&SECTION=msgs:/var/adm/messages">/var/adm/messages</a>
&red May 29 12:51:56 ourserver1 bpjava-msvc[12541]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
&red May 29 12:51:56 ourserver1 bpjava-msvc[12541]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.
What am I doing wrong?
Regards,
Nick Pettefar
list Nick Pettefar
OK, I'll try anything...! Regards, Nick Pettefar
▸
On 31 May 2013 18:03, Root, Paul T <user-76fdb6883669@xymon.invalid> wrote:
Two things.****
** **
Why do you have a % at the end?****
Have you tried putting the opening double-quote before the IGNORE?****
** **
LOG=/var/adm/messages “IGONORE=%terminal-device not
specifiedby login”****
** **
** **
*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Nick
Pettefar
*Sent:* Friday, May 31, 2013 11:34 AM
*To:* xymon
*Subject:* [Xymon] IGNORE ignored****
** **
In the server/etc/analysis.cfg file I have the following:****
HOST=ourserver1
LOG=/var/adm/messages IGNORE="%terminal-device not specifiedby login%"
# LOG=/var/adm/messages IGNORE="terminal-device not specifiedby login"
****
I want to ignore messages containing the string "terminal-device not
specifiedby login"****
May 31 17:22:53 ourserver1 bpjava-msvc[7112]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module.****
** **
Unfortunately it doesn't work.
****
From: system user for Xymon
Subject: Xymon [214797] ourserver1-ge1:msgs CRITICAL (RED)
red Wed May 29 12:52:59 IST 2013 - System logs NOT ok
&red Critical entries in <a href="/xymon-cgi/svcstatus.sh?****
CLIENT=ourserver1&SECTION=msgs:/var/adm/messages">/var/adm/messages</a>
&red May 29 12:51:56 ourserver1 bpjava-msvc[12541]: [ID 427199 user.error]
pam_dial_auth: terminal-device not specifiedby login, returning Error in
underlying service module.
&red May 29 12:51:56 ourserver1 bpjava-msvc[12541]: [ID 427199 user.error]
pam_dial_auth: terminal-device not specifiedby login, returning Error in
underlying service module.
<pre>
</pre>
<pre>
</pre>
<pre>
</pre>****
** **
What am I doing wrong?****
Regards,
Nick Pettefar****
list Phil Crooker
I've found the quotes to be problematic. Try escaping each space, or truncating the string: LOG=/var/adm/messages IGNORE=terminal-device\ not\ specifiedby\ login or LOG=/var/adm/messages IGNORE=terminal-device.*login These are a pain....
▸
On 1/06/2013 at 2:04 AM, in message <CAA9hN5MoP-+=user-b7de47228be1@xymon.invalid>, Nick Pettefar <user-2027539dd102@xymon.invalid> wrote:
In the server/etc/analysis.cfg file I have the following: HOST=ourserver1 LOG=/var/adm/messages IGNORE="%terminal-device not specifiedby login%" # LOG=/var/adm/messages IGNORE="terminal-device not specifiedby login" I want to ignore messages containing the string "terminal-device not specifiedby login" May 31 17:22:53 ourserver1 bpjava-msvc[7112]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module. Unfortunately it doesn't work. From: system user for Xymon Subject: Xymon [214797] ourserver1-ge1:msgs CRITICAL (RED) red Wed May 29 12:52:59 IST 2013 - System logs NOT ok &red Critical entries in <a href="/xymon-cgi/svcstatus.sh? CLIENT=ourserver1&SECTION=msgs:/var/adm/messages">/var/adm/messages</a> &red May 29 12:51:56 ourserver1 bpjava-msvc[12541]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module. &red May 29 12:51:56 ourserver1 bpjava-msvc[12541]: [ID 427199 user.error] pam_dial_auth: terminal-device not specifiedby login, returning Error in underlying service module. What am I doing wrong? Regards, Nick Pettefar
list Jeremy Laidman
▸
On 4 June 2013 09:35, Phil Crooker <user-e8e31cd73303@xymon.invalid> wrote:
I've found the quotes to be problematic. Try escaping each space, or truncating the string:
I've not used escaping of spaces in this way. But I have used quotes that include the IGNORE= part like so: LOG=/var/adm/messages "IGNORE=terminal-device not specifiedby login"
LOG=/var/adm/messages IGNORE=terminal-device.*login
This won't work because you are using a regular expression match format ".*" but not specifying that it's a regular expression with a leading percent. This might be what you mean: LOG=/var/adm/messages IGNORE=%terminal-device.*login Or, you can replace spaces with the regex whitespace, like so: LOG=/var/adm/messages IGNORE=%terminal-device\snot\sspecifiedby\slogin IMHO, the neatest is to enclose the whole "IGNORE=matchstring" in quotes. J