[Xymon] not receiving alerts

Carl Inglis Carl.Inglis at rakon.com
Mon Nov 11 15:20:53 CET 2013


Hi Kris,

That seems to be trying to use the client configuration rather than the server configuration.

Are you running this on the server host?
Are you running it from inside the server directory?
Have you checked the setting for MAIL in the config file it's using?

Of course, I may be missing the point completely.

Regards,

Carl

From: Kris Springer [mailto:kspringer at innovateteam.com]
Sent: 11 November 2013 13:57
To: Jeremy Laidman
Cc: Carl Inglis; Xymon MailingList
Subject: Re: [Xymon] not receiving alerts

Alright.  Now we may be getting somewhere.

When I run that command as user ubuntu, it attempts then hangs.
ubuntu at ip:~$ su xymon -c xymoncmd echo "mail test" | $MAIL "Xymon [12345] VM-Firewall:proc CRITICAL (RED)" support at innovateteam.com<mailto:support at innovateteam.com>
-bash: /var/mail/ubuntu: No such file or directory
Password:
2013-11-11 05:41:39 Using default environment file /usr/lib/xymon/client/etc/xymonserver.cfg

When I run the command as user root, it attempts then hangs.
ubuntu at ip:~# sudo bash
root at ip:~# su xymon -c xymoncmd echo "mail test" | $MAIL "Xymon [12345] VM-Firewall:proc CRITICAL (RED)" support at innovateteam.com<mailto:support at innovateteam.com>
bash: /var/mail/root: Permission denied
2013-11-11 05:44:20 Using default environment file /usr/lib/xymon/client/etc/xymonserver.cfg

When I run that command as user xymon, it attempts then hangs.
root at ip:~# su xymon
xymon at ip:/home/ubuntu$ su xymon -c xymoncmd echo "mail test" | $MAIL "Xyon [12345] VM-Firesall:proc CRITICAL (RED)" support at innovateteam.com<mailto:support at innovateteam.com>
bash: /var/mail/xymon: No such file or directory
Password:
2013-11-11 05:47:16 Using default environment file /usr/lib/xymon/client/etc/xymonserver.cfg

I have to CTRL+C to stop it when it hangs, and I never receive any emails from these tests.

Thank you.
------------------------------------------------
Kris Springer

=======================


On Sun, Nov 10, 2013 at 4:15 PM, Jeremy Laidman <jlaidman at rebel-it.com.au<mailto:jlaidman at rebel-it.com.au>> wrote:
On 11 November 2013 07:19, Kris Springer <kspringer at innovateteam.com<mailto:kspringer at innovateteam.com>> wrote:
When I run the following command it works and I receive an email immediately.

su xymon -c echo "mail test" | mail -s "Xymon [12345] VM-Firewall:proc CRITICAL (RED)" support at innovateteam.com<mailto:support at innovateteam.com>


Thank you.

The environment might have something to do with it, so should be tested, and at least eliminated from our enquiries.  When Xymon runs the command, it does so using the Xymon server environment, including PATH and MAIL.  To test, try running the command like this:

su xymon -c xymoncmd
echo "mail test" | $MAIL "Xymon [12345] VM-Firewall:proc CRITICAL (RED)" support at innovateteam.com<mailto:support at innovateteam.com>

J



Carl Inglis
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: Dowsett House, Sadler Road, Lincoln LN6 3RS
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131111/00e5b650/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qafe2.jpg
Type: image/jpeg
Size: 9624 bytes
Desc: qafe2.jpg
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131111/00e5b650/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emailsig.jpg
Type: image/jpeg
Size: 4046 bytes
Desc: emailsig.jpg
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131111/00e5b650/attachment-0001.jpg>


More information about the Xymon mailing list