LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-08-2014, 08:46 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,784

Rep: Reputation: 49
How to uninstall (or at least disable) MRTG


I have a server that's throwing a bunch of errors from what I think was an install of MRTG. We don't actually use it, think someone who's no longer here installed it to play with it. Any ideas how to disable it or remove it completely? I've never used it before.
 
Old 09-08-2014, 10:56 AM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98
rjo98,

It depends on how they installed it. If they followed the typical install instructions, there should be a file /etc/rc.d/mrtgd. You can delete that and the installed software folder mrtg, again... typically at /usr/local/mrtg or /var/html/www/mrtg. Be sure to d a /etc/rc.d/mrtgd stop, first, to stop the running service.

HTH!
 
1 members found this post helpful.
Old 09-08-2014, 11:08 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,784

Original Poster
Rep: Reputation: 49
Thanks. I renamed the cfg file in /etc/mrtg, and also I disabled this cron'd task that looked like it was for this.

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok


Do you think I'm safe to delete all the directories listed in that command? I'd hate to delete them then have the server not start up properly.

Looks like I also have stuff in /var/www/mrtg. like html files, png and other graphics

Last edited by rjo98; 09-08-2014 at 11:11 AM.
 
Old 09-08-2014, 11:54 AM   #4
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98
You should be safe to delete those folders. MRTG installs indeendently of the OS. If a cron job was used to run MRTG, there may not be a /etc/rc.d/mrtgd file. The /var/www/mrtg folder is just the "results" of the mrtg corn job... If you are deleting everything else, these can be deleted as well.
 
1 members found this post helpful.
Old 09-08-2014, 11:58 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,784

Original Poster
Rep: Reputation: 49
Great. Thanks for all the help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disable/Uninstall Cherokee Web Server and Reinstate Apache Virneto Fedora 1 06-03-2013 10:00 PM
how do i uninstall/disable afterstep? XeoNoX Linux - Newbie 2 02-01-2008 03:39 PM
how to disable/uninstall/stop using fvwm2 asdc Linux - Newbie 3 02-19-2007 11:33 AM
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 12:03 PM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration