acknowledging an alert
list Phil Wild
hello hobbit admins,
My c programming skills are poor at best.
Can some one explain what this is doing?
else p = msg->buf;
if (sscanf(p, "%d %99s", &cookie, durstr) == 2) {
log = find_cookie(abs(cookie));
This is from hobbitd.c
I am trying to track down why I can't acknowledge an alert using the web
interface. Every time I try, I get the following in hobbitd.log. The above
test is failing and dropping me through to the error writing code.
2008-06-18 22:03:42 Bogus ack message from 10.1.50.4: 'hobbitdack 638622 10
test '
enable/disable works fine and the interface I am running from is defined as
--maint-interface (removing this option has no effect).
Cheers
Phil
--
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid
list Phil Wild
Sorry, ignore this, I found my typo... Phil 2008/6/18 Phil Wild <user-e365c1418192@xymon.invalid>:
▸
hello hobbit admins,
My c programming skills are poor at best.
Can some one explain what this is doing?
else p = msg->buf;
if (sscanf(p, "%d %99s", &cookie, durstr) == 2) {
log = find_cookie(abs(cookie));
This is from hobbitd.c
I am trying to track down why I can't acknowledge an alert using the web
interface. Every time I try, I get the following in hobbitd.log. The above
test is failing and dropping me through to the error writing code.
2008-06-18 22:03:42 Bogus ack message from 10.1.50.4: 'hobbitdack 638622
10 test '
enable/disable works fine and the interface I am running from is defined as
--maint-interface (removing this option has no effect).
Cheers
Phil
--
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid-- Tel: XXXX XXX XXX Fax: XXXX XXX XXX email: user-e365c1418192@xymon.invalid
list Paul Root
Hi,
I'm working on a script that works with a company internal callout (paging) system. The system requires a confirmation of a page when an engineer receives it.
In the event of a recovery of the alert, the script sees that the message is a recovery, and sends an automatic confirmation. However, in the event of an acknowledgement in xymon, we just get another pageout. So there are two things to acknowledge.
Is there a way in the script to know that the page out is an acknowledgement? I just noticed ACKCODE is an environment variable that is set. Does an acknowledge page have a particular code?
I'll go try to see what it sends.
Thanks,
Paul.
Paul Root
Lead Engineer
CenturyLink Network Reliability Operations Center
390 Commerce Dr
Woodbury, MN 55125
Direct: (651)312-5207
user-76fdb6883669@xymon.invalid
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Paul Root
The ACKCODE is set to zero, when disabling the event. That's cool. I key on that and on the recovery and I can auto confirm the callouts. Now, what about acknowledge... next test.
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Root, Paul T
Sent: Friday, July 17, 2015 3:51 PM
To: 'xymon at xymon.com'
Subject: [Xymon] Acknowledging an alert
Hi,
I'm working on a script that works with a company internal callout (paging) system. The system requires a confirmation of a page when an engineer receives it.
In the event of a recovery of the alert, the script sees that the message is a recovery, and sends an automatic confirmation. However, in the event of an acknowledgement in xymon, we just get another pageout. So there are two things to acknowledge.
Is there a way in the script to know that the page out is an acknowledgement? I just noticed ACKCODE is an environment variable that is set. Does an acknowledge page have a particular code?
I'll go try to see what it sends.
Thanks,
Paul.
Paul Root
Lead Engineer
CenturyLink Network Reliability Operations Center
390 Commerce Dr
Woodbury, MN 55125
Direct: (651)312-5207
user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>
▸
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.