Hi,
i need help.

I do this for SMS-allerting:

- First login your Zenoss machine as the Zenoss user. 

- Navigate to your Zenoss user home folder (this is a good place to put the 
script.) 
cd /home/zenoss 

- use a text editor to creat a file 
pico Zenoss2SMS 
and put this as the first line of your file 
#!/bin/sh 
exit the file and save it 
now you must turn the Zenoss2SMS file into an executable 
chmod +x Zenoss2SMS 
when you type "ls -l" you should see the Zenoss2SMS file as executable 

- in the Zenoss webinterface "Management -> Settings -> Page Command" 
change it to run the (currently empty) shell script you just made 
/home/zenoss/Zenoss2SMS $RECIPIENT 

- Now you just need to add the right AT commands in the "Zenoss2SMS" file. But 
before you do all this you must first try to send an SMS via AT commands from 
the Linux terminal commands line. To do this you just type the commands in the 
linux terminal and send them to the interface that connects the modem to your 
Zenoss box. In my case this is a serial interface /dev/ttyS0. (list all 
interfaces with the "ls /dev/" command). 

These AT commands worked for me, as you can see I send them to them to the 
right interface using the > 

AT+CSCA=numberofthesmscentral > /dev/ttyS0 
AT+CMGF=1 > /dev/ttyS0 
AT+CMGS=thenumberthatshouldgetthesms > /dev/ttyS0 
themessageitslef^Z" > /dev/ttyS0 

As you can see, I need to end every message with a "control Z" but that depends 
on your modem. 
When you are sure what the right commands are you just put them in the 
Zenoss2SMS file. Use the variable $1 for the phone number (RECIPIENT) and $LINE 
for the message itself 

for example : 
AT+CSCA=numberofthesmscentral > /dev/ttyS0 
AT+CMGF=1 > /dev/ttyS0 
AT+CMGS=$1 > /dev/ttyS0 
$LINE^Z" > /dev/ttyS


but ZenOSS not runing my script, also paging test is fail on Preferences page.

Help me, please




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=31812#31812

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to