You can graph the actual number of connected devices to your Data Synchronizer server(s) using a standard SNMP tool like MRTG (Multi Router Traffic Grapher), see: http://oss.oetiker.ch/mrtg/. MRTG is part of the software portfolio of your OES/SUSE Server. Just use YaST to install and configure it.
- On your Data Synchronizer Server install & configure the product "net-snmp".
- Open the firewall for 161 UDP (just for your monitoring machine)
- Allow access by adding a line like
rocommunity public IPAddressOfMonitoringMachine
- Create a script "/root/bin/con.sh" like this:
LINES=$(/bin/netstat -an | /bin/grep -c ':443' )
- Make it executable
chmod +x /root/bin/con.sh
- Add an "exec" statement to the "/etc/snmp/snmpd.conf" using a free/unused OID (you can use the one in this example).
exec 126.96.36.199.4.1.2021.8.1.100 /root/bin/con.sh
- Restart the snmpd
Now you are ready to test it. Enter the following command on the Data Synchronizer Server
snmpwalk -Os -c public -v 1 localhost 188.8.131.52.4.1.2021.8.1.100
You should get the number of devices, like:
extResult.1 = INTEGER: 73
Finally add a new section to your mrtg.cfg (or whatever tool you might use):
Title[DataSyncServer.cc]: DataSyncServer - Connected Devices
PageTop[DataSyncServer.cc]: <H1>DataSyncServer - Connected Devices</H1>
YLegend[DataSyncServer.cc]: Connected Devices
Legend1[DataSyncServer.cc]: Connected Devices
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.