View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Delete Frontend?
PostPosted: Wed May 14, 2014 1:38 pm 
Offline
Joined: Tue Apr 11, 2006 7:44 am
Posts: 287
Location: Los Angeles, CA
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,

_________________
Tim

LinHES 8.4
HDHR3
BioStar A770, AMD X2 4050e, 2GB RAM
GigaByte GeForce 8400, Chaintech AV710
USB-UIRT


Top
 Profile  
 
 Post subject: Re: Delete Frontend?
PostPosted: Wed May 21, 2014 12:26 pm 
Offline
Joined: Sun Mar 30, 2014 7:28 am
Posts: 17
Location: Germany, Berlin
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


Top
 Profile  
 
 Post subject: Re: Delete Frontend?
PostPosted: Sat Jul 26, 2014 1:18 pm 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
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.


Top
 Profile  
 
 Post subject: Re: Delete Frontend?
PostPosted: Sat Jul 26, 2014 10:30 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
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.

_________________
My System


Top
 Profile  
 
 Post subject: Re: Delete Frontend?
PostPosted: Tue Jul 29, 2014 8:25 am 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
Personally i would leave them as they don't cause any harm or performance problems.


Top
 Profile  
 
 Post subject: Re: Delete Frontend?
PostPosted: Tue Jun 23, 2015 7:14 pm 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu