[Xymon] not receiving alerts
Kris Springer
kspringer at innovateteam.com
Mon Nov 11 14:56:48 CET 2013
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
-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
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
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>wrote:
> On 11 November 2013 07:19, Kris Springer <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
>>
>>
>> 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
>
> J
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131111/14927439/attachment.html>
More information about the Xymon
mailing list