Psistats Windows Client
.NET client that sends some computer statistics to a RabbitMQ server.
Message Format
{
"hostname": "my-computer",
"uptime": 130583.1,
"cpu": 24.1,
"mem": 34.1,
"ipaddr": ['192.168.1.101','192.168.1.102']
"cpu_temp": 72.4
}
Uptime is in seconds.
Uptime and IP Addresses are sent at a longer rate than cpu and memory however that rate is configurable.
CPU Temperature is enabled by default, but may not work on all systems. Psistats uses the Open Hardware Library to get temperature data.
Installation
- Download and install Psistats
- Launch the Psistats application
- Click settings and configure Psistats (details below)
- Save settings, and click on Start Service
Configuration
Server Settings
- URL: Address of the RabbitMQ server as a url: amqp://[username]:[password]@[hostname]:[port]/[virtual-host]
Service Setings
- Main Timer: The main timer broadcasts the cpu and memory usage, hostname, and cpu temperature. Defaults to 1 second.
- Secondary Timer: The secondary timer broadcastst the hostname, ip addresses, and uptime. Defaults to 5 seconds.
- Debug: If checked, lots of information will be sent to the Event Log. Could potentially reveal passwords.
Queue Settings
- Name: The queue prefix to use. The full queue name will be [prefix].[hostname]. Defaults to "psistats"
- Message TTL: How long messages should stay in the queue, in milliseconds. Defaults to 10000
- Exclusive: Whether or not any other client can access the queue. Defaults to checked
- Durable: Whether or not the queue will be recreated automatically upon server restart
- Autodelete: Whether or not the queue will be removed when there are no more clients using it
Exchange Settings
- Name: The exchange name to use. Defaults to "psistats"
- Type: What kind of exchange it should be. Defaults to "topic"
- Durable: Whether or not the exchange will be recreated automatically upon server restart
- Autodelete: Whether or not the exchange will be removed when there are no more clients using it
The exchange settings for all client installations must be the same.
Fault Tolerance
Psistats is fault tolerant. If the queue or exchange get deleted, they will be recreated. If the server goes down, the service will continue trying to reconnect.
Troubleshooting
Psistats will log exceptions and other messages to the event log.