LinHES Forums
http://forum.linhes.org/

Delete Frontend?
http://forum.linhes.org/viewtopic.php?f=21&t=24002
Page 1 of 1

Author:  opel70 [ Wed May 14, 2014 1:38 pm ]
Post subject:  Delete Frontend?

Hello,
What is the proper method to "delete" a frontend? Somewhere along the way, when I was building my new frontend, a second name was generated. So now on the Xymon page the layout include my real frontend (tvroom) and this extra one (diamonds). I am guessing that there are a bunch of settings in the database related to this, now, nonexistent frontend (diamonds). I think I could just do a MySQL search to delete the settings, but would that also cleanup the Xymon information?

Thanks again,

Author:  lsteingr01 [ Wed May 21, 2014 12:26 pm ]
Post subject:  Re: Delete Frontend?

Hi, you can try this, I make this change on my LinHES 8.1 system,
Please make a system backup before try!
http://www.mythtv.org/pipermail/mythtv-users/2008-March/214287.html

This is the putty.log from my ssh session with root login, I kill the hostname "larch5"
Code:
mysql
mysql> connect mythconverg;
Connection id:    2257
Current database: mythconverg

mysql> SELECT DISTINCT `hostname` FROM `settings`;
+----------+
| hostname |
+----------+
| hdtv01   |
| hdtv02   |
| hdtv03   |
| larch5   |
| sbx1     |
| NULL     |
+----------+
6 rows in set (0.01 sec)

mysql> DELETE FROM `settings` WHERE `hostname` = 'larch5';
Query OK, 509 rows affected (0.03 sec)

mysql> SELECT DISTINCT `hostname` FROM `settings`;
+----------+
| hostname |
+----------+
| hdtv01   |
| hdtv02   |
| hdtv03   |
| sbx1     |
| NULL     |
+----------+
5 rows in set (0.01 sec)

mysql>

Regards Lutz

Author:  jams [ Sat Jul 26, 2014 1:18 pm ]
Post subject:  Re: Delete Frontend?

To delete:

mythutil --delete-settings --hostname $put_hostname_here

to list current hosts or groups

mythutil --list-groups

FYI
Both of those commands will only work on a LinHES system.

Author:  mattbatt [ Sat Jul 26, 2014 10:30 pm ]
Post subject:  Re: Delete Frontend?

Hey Jams
Thanks for the tip.
I count 7 hosts in my database which is better leaving it alone or removing? BTW I have a single LinHES frontend/backend system the others were connections from virtual machines, temporary secondary frontends, and the now outdated windows install of myth frontend. I hadn't realized that much cruft had been left behind.

Author:  jams [ Tue Jul 29, 2014 8:25 am ]
Post subject:  Re: Delete Frontend?

Personally i would leave them as they don't cause any harm or performance problems.

Author:  tscholl [ Tue Jun 23, 2015 7:14 pm ]
Post subject:  Re: Delete Frontend?

Here's a better way.
Code:
First, remove the HOSTNAME from the /home/xymon/etc/hosts.cfg file.
Then use the command:
/home/xymon/server/bin/xymon 127.0.0.1 "drop HOSTNAME"
This and other tips and info on xymon can be found here. Look at the last post in that thread for how to remove it from xymon.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/