delete rrd files automatically

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lisashan
Posts: 16
Joined: Tue Jan 13, 2015 4:11 pm

delete rrd files automatically

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: delete rrd files automatically

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
lisashan
Posts: 16
Joined: Tue Jan 13, 2015 4:11 pm

Re: delete rrd files automatically

Post 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.
Locked