Xymon Mailing List Archive search

not receiving alerts

list Carl Inglis
Mon, 11 Nov 2013 14:20:53 +0000
Message-Id: <user-fa654c898cca@xymon.invalid>

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:user-c2caa0a7a8d5@xymon.invalid]
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)" user-800263fcb636@xymon.invalid<mailto:user-800263fcb636@xymon.invalid>
-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)" user-800263fcb636@xymon.invalid<mailto:user-800263fcb636@xymon.invalid>
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)" user-800263fcb636@xymon.invalid<mailto:user-800263fcb636@xymon.invalid>
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 <user-71895fb2e44c@xymon.invalid<mailto:user-71895fb2e44c@xymon.invalid>> wrote:
On 11 November 2013 07:19, Kris Springer <user-c2caa0a7a8d5@xymon.invalid<mailto:user-c2caa0a7a8d5@xymon.invalid>> 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)" user-800263fcb636@xymon.invalid<mailto:user-800263fcb636@xymon.invalid>


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)" user-800263fcb636@xymon.invalid<mailto:user-800263fcb636@xymon.invalid>

J


Carl Inglis
Systems Administrator

Rakon UK Limited
Dowsett House, Sadler Road, Lincoln LN6 3RS, United Kingdom
Tel: +XX XXXX XXXXXX | Fax: +XX XXXX XXXXXX | Mob: +44 7786 552915
user-96685bdc864b@xymon.invalid | 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.