growing host-perfdata

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

growing host-perfdata

Post by robert.anderko »

Hi all,
please, can you help me with growing up file /var/nagiosramdisk/host-perfdata ? I have Nagios XI 5.2.3 and host-perf data still growing up and filling RAM disk to the full... I dont have idea where is problem...
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: growing host-perfdata

Post by rkennedy »

This could be many different things. Could you please PM me your Nagios profile so that I can take a look at it and understand your system a bit better?

You can download it by navigating to Admin -> System Profile -> Download Profile.


EDIT: Profile received.
Former Nagios Employee
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: growing host-perfdata

Post by rkennedy »

I looked at your profile and things do look fine. Your available memory is getting a bit low to be honest, but everything else looks OK.

How big is your ramdisk currently?
Former Nagios Employee
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

Re: growing host-perfdata

Post by robert.anderko »

Code: Select all

tmpfs            2048000   411200   1636800  21% /var/nagiosramdisk
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: growing host-perfdata

Post by Box293 »

Honestly this should not grow, it should be processed and deleted.

You should follow this troubleshooting article:

https://support.nagios.com/kb/article.php?id=9

Does it help identify the problem?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

Re: growing host-perfdata

Post by robert.anderko »

box293,
thx for your reply, but not helped.
All files in directory /var/nagiosramdisk/spool/perfdata/ are processed, but i have still file /var/nagiosramdisk/host-perfdata which still growing up and filling RAM disk to the 100%... When i null this file, again growing up and all is ring...

now is situation:

Code: Select all

[root@mon01 nagiosramdisk]# ll
total 419168
-rw-r--r-- 1 nagios nagios 404764611 Mar  3 00:27 host-perfdata
-rw-r--r-- 1 nagios nagios   9490800 Mar  2 22:41 objects.cache
-rw-r--r-- 1 nagios nagios     24741 Mar  3 00:27 service-perfdata
drwxrwxr-x 5 nagios nagios       100 Dec  9 16:01 spool
-rw-r--r-- 1 nagios nagios  14934469 Mar  3 00:27 status.dat
drwxrwxr-x 2 nagios nagios        40 Mar  2 22:41 tmp
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

Re: growing host-perfdata

Post by robert.anderko »

guys,
what is right configuration in /usr/local/nagios/etc/commands.cfg? i have now, after little changing:

Code: Select all

define command {
       command_name                             process-host-perfdata-file-bulk
       command_line                             /bin/mv /var/nagiosramdisk/host-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.host
}

define command {
       command_name                             process-host-perfdata-file-pnp-bulk
       command_line                             /bin/mv /var/nagiosramdisk/host-perfdata /var/nagiosramdisk/spool/xidpe/host-perfdata.$TIMET$
}

define command {
       command_name                             process-host-perfdata-pnp-normal
       command_line                             /usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
}

define command {
       command_name                             process-service-perfdata-file-bulk
       command_line                             /bin/mv /var/nagiosramdisk/service-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.service
}

define command {
       command_name                             process-service-perfdata-file-pnp-bulk
       command_line                             /bin/mv /var/nagiosramdisk/service-perfdata /var/nagiosramdisk/spool/xidpe/service-perfdata.$TIMET$
}
and seems file /var/nagiosramdisk/host-perf-data is processed...
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: growing host-perfdata

Post by Box293 »

Your process-host-perfdata-file-bulk and process-service-perfdata-file-bulk commands are correct.

Make sure you edited these commands in CCM and not directly in your commands.cfg file as the next time you apply configuration they will get overwritten.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

Re: growing host-perfdata

Post by robert.anderko »

yes, was edited from CCM, not from shell...
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: growing host-perfdata

Post by Box293 »

Excellent, let us know if the disk space keeps rising as that would indicate an issue still exists.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked