Java sockets – system monitoring / server publisher process

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

This is part two – on how to capture and publish Solaris client performance stats.

To read part one please click here.

This program will retrieve the last system stats from the local SQLite DB and make it available over a socket or http connection for remote fetching.

Once the program is running, just telnet to the port (in this case 19999) and you will get a JSON dump of the system performance.

The SysMonRes.java runs the socket server and publishes the latest status on port 19999.

The Sql.java retrieves the latest stats from the local SQLite DB.

The next (and last) part of this series – talks about capturing multiple stats in parallel capturing multiple stats in parallel

To read about how to create a python socket server click here.

Leave a Reply

avatar
  Subscribe  
Notify of