The Windows version of the SSL Up.time Agent was cover by the following article, Setup an Windows Up.time SSL Agent (stunnel & Scripted).
This version goes over setting up a Linux agent on a RedHat based distribution. The distribution that I was working with through this guide was RedHat Enterprise Linux 5.6. First start off by going to the Up.time Software website and downloading the latest rpm package of the Linux Up.time Agent.
Here is the step by step break down of how I was able to configure the Up.time Agent to use SSL in RHEL.
Install the up.time Linux Agent by issuing the following command.
sudo rpm -ivh uptimeagent-5.3.0-linux-x86_64.rpm
Copy-paste the contents to ‘/opt/uptime-agent/conf/agent.conf’, overwrite the existing agent.conf file.
Create ‘uptimeagent.conf’ and copy the contents below to the file
Generate the SSL certificate
openssl req -x509 -nodes -days 3650 -subj '/C=US/ST=Ohio/L=Cleveland/O=My Company/OU=My Department/CN=uptime-agent' -newkey rsa:1024 -keyout uptime_agent.pem -out uptime_agent.pem
Copy ‘uptimeagent.conf’ and ‘uptime_agent.pem’ to ‘/etc/stunnel’.
sudo cp uptimeagent.conf /etc/stunnel
sudo cp uptime_agent.pem /etc/stunnel
Set the correct ownership and permissions by running the following:
sudo chown root:nobody /etc/stunnel/uptime_agent.pem
sudo chmod 640 /etc/stunnel/uptime_agent.pem
sudo chmod 755 /etc/stunnel/uptimeagent.conf
Replace the contents of ‘/etc/xinetd.d/uptimeagent’ with
disable = no
flags = REUSE
socket_type = stream
wait = no
user = nobody
server = /usr/sbin/stunnel
server_args = /etc/stunnel/uptimeagent.conf
In ‘/etc/services’ ensure the last lines look like the following
# *** Installed by the uptimeagent installer
uptimeagent 9997/tcp # uptimeagent agent
Restart the ‘xinetd’ service
sudo /etc/init.d/xinetd restart