Page 1 of 2
Help on installing x64 RMA on Mint
Posted: Thu Apr 17, 2025 8:49 am
by david.matthewson
Hi
I'm new to Mint and am trying - and failing to install the x64 RMA agent. The notes I'm using suggest using chkconfig to make the files auto startable on boot but Mint no longer supports chkconfig .
Has anyone got this working and could they spare a few minutes to write up their 'how to' notes?
Many thanks
David
Re: Help on installing x64 RMA on Mint
Posted: Thu Apr 17, 2025 1:18 pm
by KS-Soft
Passive RMA agent or Active RMA agent?
Linux Mint uses systemd as default init system so if you are using Active RMA then just type
sudo ./rma_active -installservice
Then you may start, stop, restart, disable or check service status using systemctl command (e.g.
sudo systemctl status rma_active).
If you are using Passive RMA, then create file /etc/systemd/system/rma.service
This file may look like
Code: Select all
[Unit]
Description=Remote Monitoring Agent service (Passive RMA)
After=network.target
Documentation=https://www.ks-soft.net/hostmon.eng/rma-unix/index.htm
[Service]
Type=forking
User=root
ExecStart=/usr/bin/rma/rma -d /usr/bin/rma/rma.ini
Restart=on-abort
PrivateTmp=True
ProtectSystem=full
ProtectHome=full
[Install]
WantedBy=multi-user.target
Then type
sudo systemctl enable rma
You may use systemctl commands to start, stop, restart RMA service, e.g.
sudo systemctl start rma
Of course you should adjust command to fit your setup, set path to folder where you installed agent..
Regards
Alex
Re: Help on installing x64 RMA on Mint
Posted: Thu Apr 24, 2025 8:45 am
by david.matthewson
Thanks Alex - great as ever. I'll try this & revert - been OOO for a few days ....
David
Re: Help on installing x64 RMA on Mint
Posted: Tue Apr 29, 2025 11:40 am
by david.matthewson
Alex -= still failing - (me that is!)
I get:
sysadmin@WM-Mint:~/sbin/rma$ sudo ./rma_active -installservice
[sudo] password for sysadmin:
sudo: ./rma_active: command not found
sysadmin@WM-Mint:~/sbin/rma$ ls
cpu.sh INSTALL LICENSE proccnt.sh proclist.sh README rma rma.ini
sysadmin@WM-Mint:~/sbin/rma$ sudo systemctl enable rma
rma.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable rma
update-rc.d: error: rma Default-Start contains no runlevels, aborting.
sysadmin@WM-Mint:~/sbin/rma$
I've un tarred the archive into /sbin/rma and edited the rma.ini file as suggested...
What am I doing wrong pls?
Thanks!
Re: Help on installing x64 RMA on Mint
Posted: Tue Apr 29, 2025 2:50 pm
by KS-Soft
sysadmin@WM-Mint:~/sbin/rma$ sudo ./rma_active -installservice
[sudo] password for sysadmin:
sudo: ./rma_active: command not found
sysadmin@WM-Mint:~/sbin/rma$ ls
cpu.sh INSTALL LICENSE proccnt.sh proclist.sh README rma rma.ini
Looks like you are using Passive RMA so of course rma_active command not found
sysadmin@WM-Mint:~/sbin/rma$ sudo systemctl enable rma
rma.service is not a native service, redirecting to systemd-sysv-install.
>If you are using Passive RMA, then create file /etc/systemd/system/rma.service
...
Have you created this file as descried in my previous post?
Regards
Alex
Re: Help on installing x64 RMA on Mint
Posted: Thu May 01, 2025 10:22 am
by david.matthewson
Thanks Alex
Still no luck.
To answer your questions...
1) Yes, passive RMA which HM will call out to [I understand I have to open port 1055 on the Mint firewall to allow this.]
2) Yes, created the ini file as you advised and edited to reflect the location of the RMA.
3) and then I get this:
Code: Select all
sysadmin@WM-Mint:~/Downloads$ sudo systemctl enable rma
[sudo] password for sysadmin:
Synchronizing state of rma.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable rma
update-rc.d: error: rma Default-Start contains no runlevels, aborting.
sysadmin@WM-Mint:~/Downloads$
So any idea what "Default-Start contains no runlevels, aborting." means and how to fix it?
Many thanks.
D.
Re: Help on installing x64 RMA on Mint
Posted: Thu May 01, 2025 12:05 pm
by KS-Soft
Probably your system uses systemd and system V?
Then I would suggest to create additional file, like
rma.sh and modify
rma.service file, change ExecStart line, point it to rma.sh script (the one you just created).
rma.sh file may look like
#!/bin/bash
### BEGIN INIT INFO
# Provides: rmaservice
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: RMA service
### END INIT INFO
/usr/bin/rma/rma -d /usr/bin/rma/rma.ini
Another possible solution create rma script file in /etc/ini.d folder (or /etc/rc.d/init.d or /etc/rc. - depends on your system); but this file should be different..
Regards
Alex
Re: Help on installing x64 RMA on Mint
Posted: Thu May 01, 2025 12:34 pm
by david.matthewson
Thanks Alex - the system is a 'default' MINT set up so I'll try what you suggest.
Thanks!
D
Re: Help on installing x64 RMA on Mint
Posted: Thu May 01, 2025 12:47 pm
by david.matthewson
Hmmm... I've done as you suggested but still I get the same error msg.
sysadmin@WM-Mint:~/sbin$ sudo systemctl enable rma
[sudo] password for sysadmin:
Synchronizing state of rma.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable rma
update-rc.d: error: rma Default-Start contains no runlevels, aborting.
sysadmin@WM-Mint:~/sbin$
Out of curiosity, I've just set up an RMA on a Windows box that took less than 5 mins - works fine. I guess this is a basic issue with Linux that the learning curve is immense.
I think I'll give up now which is disappointing but surely this should 'just work'

Until it does I think Linux will remain a 'guru' O/S..
Thanks again for all your help.
Re: Help on installing x64 RMA on Mint
Posted: Thu May 01, 2025 12:58 pm
by david.matthewson
OK, I just tried this:
Code: Select all
sysadmin@WM-Mint:~/sbin$ ./rma/rma -i -v -p 1055 /home/sysadmin/sbin/rma/rma.ini
-------------------------------------------------------------
Application: RMA (Remote Monitoring Agent for HostMonitor)
Version: 1.36 for Linux (Red Hat, Debian, Ubuntu)
Copyright: 2004 - 2010 Alexander Kozlov
web: http://www.ks-soft.net
e-mail: support@ks-soft.net
-------------------------------------------------------------
Command line checking .. Ok
Settings checking .. Error
Invalid path to the agent!
Please check '/home/sysadmin/sbin/rma/rma.ini' file
sysadmin@WM-Mint:~/sbin$
[/b]
- which implies the path in the rma.ini file is incorrect. But the rma is indeed in /home/sysadmin/sbin/rma
What am I missing as I think I might almost be there!
Thanks.
Re: Help on installing x64 RMA on Mint
Posted: Fri May 02, 2025 12:45 am
by KS-Soft
the system is a 'default' MINT set up so I'll try what you suggest.
There are hundred different versions and editions of Linux Mint. What exactly "default" Mint do you use?
I tried couple 21.x versions, simple rma.service file + "systemctl enable rma" command works fine, nothing else is required.
Could you send your config files to us by e-mail (rma.ini, rma.service, rma.sh)?
Invalid path to the agent! Please check '/home/sysadmin/sbin/rma/rma.ini' file
I assume you specified path without filename. If /home/sysadmin/sbin/rma is folder then you should set /home/sysadmin/sbin/rma/rma
Regards
Alex
Re: Help on installing x64 RMA on Mint
Posted: Fri May 02, 2025 2:42 am
by david.matthewson
Thanks for your patience - I'll revert soon!
Re: Help on installing x64 RMA on Mint
Posted: Fri May 02, 2025 5:02 am
by david.matthewson
Alex
Good point re OS version - I didn't realize that was such an issue. Mine is:
Code: Select all
sysadmin@WM-Mint:~$ cat /etc/os-release
NAME="Linux Mint"
VERSION="22.1 (Xia)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 22.1"
VERSION_ID="22.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=xia
UBUNTU_CODENAME=noble
sysadmin@WM-Mint:~$
[/b]
and.....
Code: Select all
sysadmin@WM-Mint:~/sbin$ systemctl enable rma
Synchronizing state of rma.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable rma
update-rc.d: error: rma Default-Start contains no runlevels, aborting.
sysadmin@WM-Mint:~/sbin$
Still fails so I've messed up the config somewhere. I'll roll back and start from scratch.
Thanks

Re: Help on installing x64 RMA on Mint
Posted: Fri May 02, 2025 8:54 am
by david.matthewson
OK, I rolled back a week to a machine with no RMA bits on it.
Downloaded
https://www.ks-soft.net/download/rma/rma136_lin_64.tgz - which is the x64 RMA
I want to install a simple passive RMA which HM (on another box) will periodically interrogate.
As 'me' [sysadmin] (not root) create a dir called /sbin and in that /rma
Copy the zip into /sbin/rma and unzip and then untar the files.
Make no changes to permissions.
Edit rma.ini to reflect this path, password and host name.
From Terminal, run:
Code: Select all
sysadmin@WM-Mint:~/sbin$ cd rma
sysadmin@WM-Mint:~/sbin/rma$ systemctl enable rma
Synchronizing state of rma.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable rma
update-rc.d: error: rma Default-Start contains no runlevels, aborting.
sysadmin@WM-Mint:~/sbin/rma$ cd ..
sysadmin@WM-Mint:~/sbin$ systemctl enable rma
Synchronizing state of rma.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable rma
update-rc.d: error: rma Default-Start contains no runlevels, aborting.
sysadmin@WM-Mint:~/sbin$
Same error as before.
I'll email
support@ks-soft.net with files as you suggest.
Many thanks.
David
Re: Help on installing x64 RMA on Mint
Posted: Fri May 02, 2025 10:49 am
by david.matthewson
~~later~~
You mention a file, rma.services... but I don't seem to have that nor is a virgin copy in the tar archive I d/ld..
Any ideas? Thanks!