Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


SMS for Threshold plugin

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold)
Author Message
mrh
Cacti User


Joined: 08 Mar 2005
Posts: 84

PostPosted: Sat Jan 21, 2006 11:58 am    Post subject: SMS for Threshold plugin Reply with quote

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!!!
Back to top
CPF



Joined: 28 Aug 2005
Posts: 25

PostPosted: Wed Mar 08, 2006 3:53 pm    Post subject: Re: SMS for Threshold plugin Reply with quote

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!!!


Hi,

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.
Back to top
mrh
Cacti User


Joined: 08 Mar 2005
Posts: 84

PostPosted: Mon Mar 20, 2006 11:36 am    Post subject: Reply with quote

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!
Back to top
lanyao



Joined: 14 Dec 2005
Posts: 8

PostPosted: Mon May 15, 2006 8:35 pm    Post subject: Reply with quote

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!


Well done, I think it's very useful!
How did you do this, will you share your experience with us?
Back to top
mrh
Cacti User


Joined: 08 Mar 2005
Posts: 84

PostPosted: Tue May 16, 2006 4:17 am    Post subject: Reply with quote

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...



send.bat.txt
 Description:
Batch to send SMS with gnokii

Download
 Filename:  send.bat.txt
 Filesize:  54 Bytes
 Downloaded:  680 Time(s)


SMS.kix.txt
 Description:
KIX script to convert emails to SMS

Download
 Filename:  SMS.kix.txt
 Filesize:  3.97 KB
 Downloaded:  613 Time(s)


SMS.bat.txt
 Description:
Batch for the scheduled task

Download
 Filename:  SMS.bat.txt
 Filesize:  81 Bytes
 Downloaded:  478 Time(s)

Back to top
lanyao



Joined: 14 Dec 2005
Posts: 8

PostPosted: Thu May 18, 2006 5:25 am    Post subject: Reply with quote

mrh 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...


Thanks a lot, working on it
Back to top
plustotal



Joined: 30 Oct 2006
Posts: 7

PostPosted: Tue Jan 16, 2007 1:14 pm    Post subject: Reply with quote

mrh wrote:
Yes, of course!



Have luck! And ask me if you need further assistance...


Hello,
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")
Back to top
mrh
Cacti User


Joined: 08 Mar 2005
Posts: 84

PostPosted: Thu Jan 18, 2007 5:33 am    Post subject: Reply with quote

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!
Back to top
plustotal



Joined: 30 Oct 2006
Posts: 7

PostPosted: Fri Jan 19, 2007 6:32 am    Post subject: Reply with quote

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!


At htis moment I receive e-mails by a threshold. (by exchange??)
Is it stil difficult/cost a lot of time ?

I can not find the queue folder on the cacti server
Back to top
mrh
Cacti User


Joined: 08 Mar 2005
Posts: 84

PostPosted: Fri Jan 19, 2007 6:43 am    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group