Hi All,
Maybe this is not the proper way to get help, but i can't seem to find a
forum or a faq, so i can solve my problem.
So please forgive me!
I have mon installed and functioning properly, but i like mon to send an
sms through gammu.
The command i run in the terminal is : echo "servers down
On Sun, Apr 25, 2010, ad...@jack-clan.nl wrote:
>
> I changed the test.alert script so it reads this:
>
> #!/usr/bin/sh
>
> echo "servers down test" | gammu --sendsms TEXT 0653638072
>
> But it doesn't work
Have you tried running that script yourself? (Not the contents, but the
script i
Original Message
Subject: Re: getting mon to execute shell command
Date: Sun, 25 Apr 2010 20:06:22 +0200
From:
To: "Mahlon E. Smith"
Pffft nope still not working,
i tested the script by executing ./sms.alert, and that works ok
sms.alert:
#!/bin/sh
echo "servers down
On Sun, 25 Apr 2010, ad...@jack-clan.nl wrote:
hostgroup domain
domain.org
watch domain
service tcp
interval 1m
monitor tcp.monitor -p 16001
period
numalerts 2
alert sms.alert
I changed it but still it ain't working.
When i use monshow --showall it lists the fail and the alerts (2)
so that part i think is correct, is there any other log except
/var/log/mon where i can look for a clue?
> hostgroup domain
>domain.org
>
> watch domain
>service tcp
>
On Apr 25, 2010, at 13:38 , Mahlon E. Smith wrote:
On Sun, Apr 25, 2010, ad...@jack-clan.nl wrote:
I changed the test.alert script so it reads this:
#!/usr/bin/sh
echo "servers down test" | gammu --sendsms TEXT 0653638072
But it doesn't work
I don't know of any OS that stores sh in /us
On Sun, Apr 25, 2010 at 10:08:46PM +0200, ad...@jack-clan.nl wrote:
> I changed it but still it ain't working.
> When i use monshow --showall it lists the fail and the alerts (2)
> so that part i think is correct, is there any other log except
> /var/log/mon where i can look for a clue?
>
>
>
>
> > I changed the test.alert script so it reads this:
> >
> > #!/usr/bin/sh
> >
> > echo "servers down test" | gammu --sendsms TEXT 0653638072
> >
> > But it doesn't work
To trace your problem I would enhance the monitor script and
check the log. Maybe there is something wrong in MON PATH