[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Alerts through Nagios very temperamental
From: |
Andrew Thompson |
Subject: |
RE: Alerts through Nagios very temperamental |
Date: |
Thu, 22 Dec 2011 11:35:05 +0000 |
Hi Powel,
Yes that is correct the phone will not get any incoming messages anyway - its
purely for Nagios to send alerts out through Gnokii.
I just tried the command
/usr/sbin/smsd -u root -p rootpasswd -d Nagios_text_db -c 127.0.0.1 -m mysql -b
ME -f /home/nagios/Desktop/smsd.log
And it throws back the same errors.
I also trued OU and it also does the same.
Im sorry I don't understand your last part about introducing options.
In essence all I installed MYSQL and SMSD for is on Michaels suggestion to stop
the sending of texts all going out at the same second in time and the phone
then deciding to not send any.
If you need some more info please ask - I am by no means a Linux guy though,
been in Windows networks for 6 years and this is my first delve into the Linux
world to get a Nagios box setup and working.
Thankyou
Kind Regards
Andrew
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Pawel Kot
Sent: 22 December 2011 11:28
To: Discussion forum for gnokii users.
Subject: Re: Alerts through Nagios very temperamental
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
_______________________________________________
gnokii-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gnokii-users
- Alerts through Nagios very temperamental, Andrew Thompson, 2011/12/20
- Re: Alerts through Nagios very temperamental, Pawel Kot, 2011/12/20
- Re: Alerts through Nagios very temperamental, Michael Bochner, 2011/12/22
- RE: Alerts through Nagios very temperamental, Andrew Thompson, 2011/12/22
- Re: Alerts through Nagios very temperamental, Pawel Kot, 2011/12/22
- RE: Alerts through Nagios very temperamental,
Andrew Thompson <=
- Re: Alerts through Nagios very temperamental, Pawel Kot, 2011/12/22
- RE: Alerts through Nagios very temperamental, Andrew Thompson, 2011/12/22
- Re: Alerts through Nagios very temperamental, Pawel Kot, 2011/12/22
- RE: Alerts through Nagios very temperamental, Andrew Thompson, 2011/12/22
- Re: Alerts through Nagios very temperamental, Pawel Kot, 2011/12/22
- Changes in smsd, Was: Alerts through Nagios very temperamental, Jan Derfinak, 2011/12/22
- Re: Changes in smsd, Was: Alerts through Nagios very temperamental, Pawel Kot, 2011/12/22