Page 1 of 1

delete rrd files automatically

Posted: Mon Feb 09, 2015 10:41 am
by lisashan
Hi,

i used to add a switch using comfiguration wizard, but i have removed all services and hosts already.

However i can still see a lot of rd files under /var/lib/mrtg as below:
172.30.253.102_10.rrd
172.30.253.102_11.rrd
172.30.253.102_12.rrd
172.30.253.102_14.rrd
172.30.253.102_15.rrd
172.30.253.102_16.rrd
172.30.253.102_1.rrd
172.30.253.102_2.rrd
172.30.253.102_3.rrd
172.30.253.102_4.rrd
172.30.253.102_5.rrd
172.30.253.102_6.rrd
172.30.253.102_7.rrd
172.30.253.102_8.rrd
172.30.253.102_9.rrd

and they still automatically updade every minute, even through i have deleted all the services and host from nagios. this is a memery waste

how do i clear all the information about one host using nagios XI?

Thanks,
Lisa

Re: delete rrd files automatically

Posted: Mon Feb 09, 2015 10:46 am
by abrist
Those rrds are populated by mrtg, and I do not believe XI automatically removes the related mrtg config when the associated service is removed. The mrtg configs are located at:

Code: Select all

/etc/mrtg/conf.d/ 
Remove the corresponding configs (or parts of the configs) from the directory above and then remove the related rrds from /var/lib/mrtg.

Re: delete rrd files automatically

Posted: Mon Feb 09, 2015 1:25 pm
by lisashan
abrist wrote:Those rrds are populated by mrtg, and I do not believe XI automatically removes the related mrtg config when the associated service is removed. The mrtg configs are located at:

Code: Select all

/etc/mrtg/conf.d/ 
Remove the corresponding configs (or parts of the configs) from the directory above and then remove the related rrds from /var/lib/mrtg.

Thanks, if i rename the cfg file of that switch, the rrd fild will not be updated anymore.
you can close the thread.