Cool Solutions

Monitoring Data Synchronizer using SNMP (like MRTG)


August 31, 2011 3:49 pm





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: MRTG is part of the software portfolio of your OES/SUSE Server. Just use YaST to install and configure it.

  1. On your Data Synchronizer Server install & configure the product “net-snmp”.
  2. Open the firewall for 161 UDP (just for your monitoring machine)
  3. Allow access by adding a line like
    rocommunity public IPAddressOfMonitoringMachine

    to “/etc/snmp/snmpd.conf”

  4. Create a script “/root/bin/” like this:
    LINES=$(/bin/netstat -an | /bin/grep  -c ':443'  )
    echo $LINES
    exit $LINES


  5. Make it executable
    chmod +x /root/bin/
  6. Add an “exec” statement to the “/etc/snmp/snmpd.conf” using a free/unused OID (you can use the one in this example).
    exec /root/bin/


  7. Restart the snmpd
    rcsnmpd restart

Now you are ready to test it. Enter the following command on the Data Synchronizer Server

snmpwalk -Os -c public -v 1 localhost

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 - Connected Devices
PageTop[]: <H1>DataSyncServer - Connected Devices</H1>
MaxBytes[]: 250
ShortLegend[]: %
YLegend[]: Connected Devices
Legend1[]: Connected Devices
LegendI[]: Connected
Options[]: gauge,growright,nopercent,noinfo
Unscaled[]: ymwd


1 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 5 (1 votes, average: 5.00 out of 5)
You need to be a registered member to rate this post.

Tags: ,
Categories: GroupWise, Technical


Disclaimer: This content is not supported by Micro Focus. 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 it thoroughly before using it in a production environment.