Hi Arif

 

I will document what I have done later today – sorry just heading out to a 
meeting now

 

But suggest you look at GAMMU, and make sure you can send an SMS from the 
command line – that’s my starting point – nonetheless, I will include my GAMMU 
code as well

 

Sorry it will just have to be later

 

Andi

 

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of Arif Muslax
Sent: Monday, 16 April 2012 1:29 p.m.
To: [email protected]
Subject: Re: [ossec-list] Sending Alerts to SMS

 

Hi Andi

 

I have tried to work on this problem/experiment but not succeeded. Could you 
share what you have done?

 

Arif Muslax

On Tuesday, May 31, 2011 8:37:22 PM UTC+7, AndiC wrote:

Hi Dan

OK, it is working now - as far as it goes

I have written my own decoder that extracts the agent name as
"usernane", so that I have an "<expect>username</expect>" clause in the
decoder, and this is passed to the shell script so I know which server
has gone down - this is written to a file for broadcast

A script running every 60 seconds picks up these files and passes them
to GAMMU for SMS transmission

Andy


-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Andy Cockroft (andic)
Sent: Saturday, 28 May 2011 10:21 p.m.
To: [email protected]
Subject: RE: [ossec-list] Sending Alerts to SMS

Hi Dan

I am sending (or rather trying to send) SMS directly via a Bluetooth
attached cellphone, so no email involved. SMS is working fine from the
command line using GAMMU.

I have created a level 12 rule for agents that become inactive - ie
suspect faulty server or network - and these I want to receive pretty
quickly before they become a major problem to users.

I have created a command script that runs on the server (where the
Bluetooth is), and whilst that starts and runs OK, I cannot seem to get
it to invoke anything other than a simple shell script - I would prefer
another language. I've tried writing a wrapper to call my scripts, but
it does not execute - so unless you have some insight, I may have to
start looking inside the code (ossec-execd?) 

I would also like to have the agent name passed as a parameter, but that
doesn't seem to be available - but I'm sure that's just me missing
something

Cheers

Andy


-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of dan (ddp)
Sent: Saturday, 28 May 2011 12:02 a.m.
To: [email protected]
Subject: Re: [ossec-list] Sending Alerts to SMS

http://www.ossec.net/doc/syntax/head_ossec_config.email_alerts.html
There is an SMS mail format you can use.

On Fri, May 27, 2011 at 2:15 AM, Andy Cockroft (andic)
<[email protected]> wrote:
> I am just about to embark on an exercise to write my own command 
> scripts to TXT a message to my cell to advise major issues (in 
> particular agent disconnect that I have as a level 12 !!!)
>
> Just in case someone knows of a ready-made solution, feel free to 
> reply and save me reinventing wheels
>
> So far I have Gammu up and running, and since I code in Rexx, I have 
> installed Regina, and the two are working together AOK
>
> All I really need do is write the command script and configure OSSEC -

> unless of course you know better
>
> Andy
>

Reply via email to