SMS for Threshold plugin
Moderators: Developers, Moderators
SMS for Threshold plugin
Hello!
I'd appreaciate very much if someone can explain me how to make Threshold plugin sends SMS under win32. Maybe thourgh gnokii? I've already achieved to get gnokii sending sms from a text file but I don't know how to make PHP write those files and execute the command line for gnokii.
Any ideas or future realeases of thold?
Many thanks in advance!!!
I'd appreaciate very much if someone can explain me how to make Threshold plugin sends SMS under win32. Maybe thourgh gnokii? I've already achieved to get gnokii sending sms from a text file but I don't know how to make PHP write those files and execute the command line for gnokii.
Any ideas or future realeases of thold?
Many thanks in advance!!!
mrh | cacti 0.8.6h | plugin architecture | thold | monitor | iis6
Re: SMS for Threshold plugin
Hi,mrh wrote:Hello!
I'd appreaciate very much if someone can explain me how to make Threshold plugin sends SMS under win32. Maybe thourgh gnokii? I've already achieved to get gnokii sending sms from a text file but I don't know how to make PHP write those files and execute the command line for gnokii.
Any ideas or future realeases of thold?
Many thanks in advance!!!
Not sure where you're based in the world, be we use an email to SMS company to achieve this:
http://www.intellisoftware.co.uk/sms-gateway/
The prices for the UK are pretty good, but it will really depend on where you're based.
CPF.
Many thanks for your reply. Anyway I finally wrote a script on KIX to make the sms sending from a GSM mdm. I basically put my localhost as the smtp server for cacti, then converted the mails on the queue to txt files and send them out with gnokii.
Best regards!
Best regards!
mrh | cacti 0.8.6h | plugin architecture | thold | monitor | iis6
Well done, I think it's very useful!mrh wrote:Many thanks for your reply. Anyway I finally wrote a script on KIX to make the sms sending from a GSM mdm. I basically put my localhost as the smtp server for cacti, then converted the mails on the queue to txt files and send them out with gnokii.
Best regards!
How did you do this, will you share your experience with us?
Yes, of course!
Please find attached the kix-script you'll need to modify to fit your requirements.
Your scheduled task for the poller must be replaced by the batch enclosed.
You will need to download KIX32.exe and the gnokii for windows application. KIX32 should be on a windows path directory. Gnokii files must be placed under %userprofile% root (docs&settings\user\.) of the user which runs the scheduled task (no SYSTEM account possible).
Have luck! And ask me if you need further assistance...
Please find attached the kix-script you'll need to modify to fit your requirements.
Your scheduled task for the poller must be replaced by the batch enclosed.
You will need to download KIX32.exe and the gnokii for windows application. KIX32 should be on a windows path directory. Gnokii files must be placed under %userprofile% root (docs&settings\user\.) of the user which runs the scheduled task (no SYSTEM account possible).
Have luck! And ask me if you need further assistance...
- Attachments
-
- SMS.bat.txt
- Batch for the scheduled task
- (81 Bytes) Downloaded 1117 times
-
- SMS.kix.txt
- KIX script to convert emails to SMS
- (3.97 KiB) Downloaded 1365 times
-
- send.bat.txt
- Batch to send SMS with gnokii
- (54 Bytes) Downloaded 1596 times
mrh | cacti 0.8.6h | plugin architecture | thold | monitor | iis6
Thanks a lot, working on itmrh wrote:Yes, of course!
Please find attached the kix-script you'll need to modify to fit your requirements.
Your scheduled task for the poller must be replaced by the batch enclosed.
You will need to download KIX32.exe and the gnokii for windows application. KIX32 should be on a windows path directory. Gnokii files must be placed under %userprofile% root (docs&settings\user\.) of the user which runs the scheduled task (no SYSTEM account possible).
Have luck! And ask me if you need further assistance...
Hello,mrh wrote:Yes, of course!
Have luck! And ask me if you need further assistance...
on our system I can not found the eml-files.
I can only find in Cacti the place where I can configure the e-mail adress where normaly the message send to.
Can you help please?
If Not Exist ("%systemdrive%\Inetpub\mailroot\Queue\*.EML")
plustotal, you need to install SMTP service on your win32 cacti box. That won't send the messages to anywhere as you don't have to configure parameters for outbound, then the SMTP service will store the emails sent to that hostname (you can put localhost as your email server in cacti) in the Queue folder with EML extension. It's complex and you'll need to spend a lot of time, mostly with the gnokii, but at least the script is already done!
mrh | cacti 0.8.6h | plugin architecture | thold | monitor | iis6
At htis moment I receive e-mails by a threshold. (by exchange??)mrh wrote:plustotal, you need to install SMTP service on your win32 cacti box. That won't send the messages to anywhere as you don't have to configure parameters for outbound, then the SMTP service will store the emails sent to that hostname (you can put localhost as your email server in cacti) in the Queue folder with EML extension. It's complex and you'll need to spend a lot of time, mostly with the gnokii, but at least the script is already done!
Is it stil difficult/cost a lot of time ?
I can not find the queue folder on the cacti server
plustotal,
There's no way (with my script) to receive email + SMS alerts - you need to switch. So if instead of pointing your cacti to send emails via SMTP:yourexchangeserver you need to put the cacti hostname itself, install SMTP on your cacti box (of course needs to be different machine than your exchange server) and proceed
There's no way (with my script) to receive email + SMS alerts - you need to switch. So if instead of pointing your cacti to send emails via SMTP:yourexchangeserver you need to put the cacti hostname itself, install SMTP on your cacti box (of course needs to be different machine than your exchange server) and proceed
mrh | cacti 0.8.6h | plugin architecture | thold | monitor | iis6
-
- Posts: 4
- Joined: Thu Oct 01, 2009 3:15 am
sms for threshold plugin
hi MRH...mrh wrote:you need to install SMTP service on your win32 cacti box. That won't send the messages to anywhere as you don't have to configure parameters for outbound, then the SMTP service will store the emails sent to that hostname (you can put localhost as your email server in cacti) in the Queue folder with EML extension. It's complex and you'll need to spend a lot of time, mostly with the gnokii, but at least the script is already done!
I use QK SMTP Server, and the queue file has ".qks" extention. there's no file *.eml
I've try to convert queue.qks file into *.txt, but the *.txt file is empty. an error shown that the file is being used by another program.
Would you please give me some solution for this problem?
And,, can you tell me what kind of SMTP server that you use? Please?
sorry for my bad english:-)
thanks.
Who is online
Users browsing this forum: No registered users and 0 guests