Page 1 of 2

growing host-perfdata

Posted: Wed Mar 02, 2016 7:59 am
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...

Re: growing host-perfdata

Posted: Wed Mar 02, 2016 11:02 am
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.

Re: growing host-perfdata

Posted: Wed Mar 02, 2016 4:45 pm
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?

Re: growing host-perfdata

Posted: Wed Mar 02, 2016 4:57 pm
by robert.anderko

Code: Select all

tmpfs            2048000   411200   1636800  21% /var/nagiosramdisk

Re: growing host-perfdata

Posted: Wed Mar 02, 2016 6:04 pm
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?

Re: growing host-perfdata

Posted: Wed Mar 02, 2016 6:26 pm
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

Re: growing host-perfdata

Posted: Wed Mar 02, 2016 7:24 pm
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...

Re: growing host-perfdata

Posted: Wed Mar 02, 2016 9:47 pm
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.

Re: growing host-perfdata

Posted: Wed Mar 02, 2016 10:05 pm
by robert.anderko
yes, was edited from CCM, not from shell...

Re: growing host-perfdata

Posted: Wed Mar 02, 2016 10:06 pm
by Box293
Excellent, let us know if the disk space keeps rising as that would indicate an issue still exists.