As Paul pointed out, use “xymond_alert” rather than “xymon_alert”. One of the most useful debug tools I’ve found for alerting is:
Add --cfid to the CMD in the [alerts] section of tasks.cfg
It means that when you *do* get your alerts working, you’ll get the line number of test line that fired in the subject of the message; this allows you to identify exactly which rule triggered the message.
Good luck. ☺
From: Tres Finocchiaro [mailto:tres.finocchiaro at gmail.com] Sent: 10 September 2014 16:22 To: Ribeiro, Glauber Cc: Carl Inglis; xymon at xymon.com Subject: Re: [Xymon] leaking memory, alerts.cfg problems
@Carl,
Thank, I believe that corrected the lingering telnet. It has not reappeared, thank you.
But I'm still not receiving alerts. We've intentionally left SSH disabled on this switch to trigger an alert, but emails don't seem to be going through.
What is the command to trigger a test email from xymon? I found this in the archives: $ xymoncmd xymon_alert --test SWITCH1 ssh
But I get this: 2014-09-10 11:14:01 Using default environment file /usr/lib/xymon/client/etc/xymonserver.cfg 2014-09-10 11:14:01 execvp() failed: No such file or directory
I assume xymon doesn't stop sending alerts after a timeout period, right? We chose to use the SSH service since it doesn't affect our environment. We can add a fake hostname/ip as well. I fear may have something misconfigured since alerts won't go through at all.
-Tres
Carl Inglis AMBCS Systems Administrator
Rakon UK Limited Dowsett House, Sadler Road, Lincoln LN6 3RS, United Kingdom Tel: +44 1522 812630 | Fax: +44 1522 812664 | Mob: +44 7786 552915 Carl.Inglis at rakon.com | www.rakon.com
[The Queens Awards for Enterprise 2012]
[Rakon Logo]
This message together with any attachments contains confidential information and may be subject to privilege. If you are not the intended recipient you may not distribute it in any way, you must notify the sender immediately and delete any copies of the message along with its attachments.
Rakon UK Ltd is a limited company registered in England and Wales. Registered Office: Antell House, Windsor Place, Harlow, Essex, England, CM20 2GQ Company Registration Number: 5128090.
Please be aware that Rakon UK Limited may monitor email traffic data including the date, time, subject line, sender and recipients for the purposes of security and usage monitoring. Automated monitoring systems may also be applied to ascertain whether incoming/outgoing emails are likely to contain viruses, other destructive devices or inappropriate content.