I was planning to get NAV 3 into service soon. So the next thing I needed to test is that NAV sends SMS'es to the person that is on duty. But I do not get this to work.
Everytime I start NAV I get an email like this:
From: navcron@nav3.hsh.no To: roger@hsh.no Subject: smsd database connection problem
Status: 03.10.2005 10:29:13 PG_conn=SCALAR(0x826d464) 1 Reset
Error was: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
The gammu program by itself works. I can do a command like this:
echo Test | gammu nothing --sendsms TEXT 91799053
and I receive an SMS.
If I use the test functionality of smsd.pl like this:
/usr/local/nav/bin/smsd.pl -t 91799053
I do _not_ get an SMS and it prints just a "0" on the console.
Can someone please help me with this. This is the function I need working to start using NAV 3.
Best regards, Roger
I have found out what was wrong with this. The navcron user did not have permissions on /dev/ttyS0. The fix is this command:
usermod -G uucp navcron
Now both the test in smsd.pl and the program itself sends out SMS'es like they should.
I _still_ get the email with the error message when I start NAV, but as long as the program works I can live with that :-)
I will update the InstallingOnRHEL4 Wiki with this information.
- Roger
Roger Aas wrote:
I was planning to get NAV 3 into service soon. So the next thing I needed to test is that NAV sends SMS'es to the person that is on duty. But I do not get this to work.
Everytime I start NAV I get an email like this:
From: navcron@nav3.hsh.no To: roger@hsh.no Subject: smsd database connection problem
Status: 03.10.2005 10:29:13 PG_conn=SCALAR(0x826d464) 1 Reset
Error was: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
The gammu program by itself works. I can do a command like this:
echo Test | gammu nothing --sendsms TEXT 91799053
and I receive an SMS.
If I use the test functionality of smsd.pl like this:
/usr/local/nav/bin/smsd.pl -t 91799053
I do _not_ get an SMS and it prints just a "0" on the console.
Can someone please help me with this. This is the function I need working to start using NAV 3.
Best regards, Roger