Monitoring Active SMPP Connections | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through June 24, 2009 ⬆ |
◄ ► |
Author | Message | |||
Tester New member Username: Tester Post Number: 6 Registered: 11-2008 |
Are there any SNMP traps generated from NowSMS? If not, what is the best practice for monitoring the active SMPP Client Connections. My thought is to monitor the files in %Program Files%\NowSMS\SMPPData\ActiveUsers. If the user's file does not exist, then there is no acitve connection. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 866 Registered: 08-2008 |
There is no SNMP interface. What you are thinking of doing is a reasonable idea, but there is also another way. Regarding the files in %Program Files%\NowSMS\SMPPData\ActiveUsers ... Each active connection gets a file in that directory. There is no content to the file, the file is just held open as long as the connection is active, then closed and deleted when the connection is released. The format of the filename is: IPAddress-port-SRT-accountName.FLG IPAddress is the address from which the account is connected, and port is the port number (usually varies with each connection) from which the account is connected. SRT indicates the connection type ... S = sender .... R = receiver ... T = transceiver accountName is the name of the account as defined in NowSMS You're welcome to monitor these files if that's what you want to do. However, there is another way. There is an XML/HTTP based query interface for this information. Enable the "Web Account Administration" on the "Web" page of the NowSMS configuration dialog, and assign an account name and password. Connect to the NowSMS server with the following URL: http://127.0.0.1:8800/admin/xmlstatus?user=adminuser&password=adminpass Substitute in your appropriate IP address and port ... and the appropriate "adminuser" and "adminpass" values. The XML formatted information is quite readable, so to get started you might want to make the request via a web browser to see what information is returned. For more details on the XML format, see the following: http://support.nowsms.com/discus/messages/1/23704.html You'll notice from the example in that thread that there is an <SMPPClientList> section of the XML response that details information about connected SMPP clients. -- Des NowSMS Support |