Help on installing x64 RMA on Mint

Remote Monitoring Agent for Linux, FreeBSD, and other UNIX-like platforms.
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Help on installing x64 RMA on Mint

Post 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
KS-Soft
Posts: 13002
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: Help on installing x64 RMA on Mint

Post 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
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post by david.matthewson »

Thanks Alex - great as ever. I'll try this & revert - been OOO for a few days ....

David
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post 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!
KS-Soft
Posts: 13002
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: Help on installing x64 RMA on Mint

Post 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
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post 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.
KS-Soft
Posts: 13002
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: Help on installing x64 RMA on Mint

Post 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
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post by david.matthewson »

Thanks Alex - the system is a 'default' MINT set up so I'll try what you suggest.

Thanks!

D
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post 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' :D Until it does I think Linux will remain a 'guru' O/S.. :(

Thanks again for all your help.
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post 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.
KS-Soft
Posts: 13002
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: Help on installing x64 RMA on Mint

Post 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
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post by david.matthewson »

Thanks for your patience - I'll revert soon!
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post 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 :D
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post 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
david.matthewson
Posts: 94
Joined: Tue Oct 24, 2006 12:45 pm

Re: Help on installing x64 RMA on Mint

Post 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!
Post Reply