gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alerts through Nagios very temperamental


From: Pawel Kot
Subject: Re: Alerts through Nagios very temperamental
Date: Thu, 22 Dec 2011 12:28:19 +0100

Hi,

On Thu, Dec 22, 2011 at 12:19, Andrew Thompson <address@hidden> wrote:
> /usr/sbin/smsd -u root -p rootpasswd -d Nagios_text_db -c 127.0.0.1 -m mysql
> -f /home/nagios/Desktop/smsd.log
[...]
> Message sent: 0x00 / 0x000d
> 41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d          | AT+CPMS="SM"
> write: [AT+CPMS="SM"<cr>]
> read : [AT+CPMS="SM"<cr><cr><lf>ERROR<cr><lf>]
> Message received: 0x00 / 0x0016
> 03 41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d 0d 0a |  AT+CPMS="SM"
> 45 52 52 4f 52 0d                               | ERROR
> Received message type 00
> lowlevel.c:435 error: 8, Unknown error - well better than nothing!!

Apparently in AT mode SM memory is not supported. You should try
adding -b option to the invocation:

-b, --inbox memory_type
        Where to look for new messages.  For the memory_type you usually use
        SM for the SIM card and ME for the phone memory. The exception are the
        phones supported by nk7110 (Nokia 7110/6210/6250) and nk6510 (Nokia
        6310/6510/8310) drivers. For these you should use IN for the Inbox, OU
        for the Outbox, AR for the Archive, TE for the Templates and F1,
        F2, ... for your own folders.

Probably ME would be what you need.

If I understand correctly you do not need to read incoming messages.
Is that right? If so, we could add the option that disables reading
incoming messages; I think we do not have such thing so far.

I'd introduce options:
 --no-incoming
 --no-outgoing
to disable respectively reading and sending messages functionality in smsd.

take care,
-- 
Pawel Kot



reply via email to

[Prev in Thread] Current Thread [Next in Thread]