Page 1 of 1
service-perfdata file space usage
Posted: Fri Jan 07, 2022 3:22 am
by IT-OPS-SYS
Hi Team,
I could see that my root directory is getting filled with the "service-perfdata" file which is under the directory "/usr/local/pnp4nagios/var". Do you think its safe to delete this file without hampering my Nagios XI running production in order to release the space on the root partition.
attached is the system report
Re: service-perfdata file space usage
Posted: Fri Jan 07, 2022 2:26 pm
by pbroste
Hello
@IT-OPS-SYS
Thanks for reaching out, to start you can delete that service and host perfdata. Be aware that you will lose historical data as well.
host and service perfdata
Code: Select all
> /usr/local/pnp4nagios/var/service-perfdata
> /usr/local/pnp4nagios/var/host-perfdata
Increase the following values in these files:
- /usr/local/nagios/etc/pnp/process_perfdata.cfg:
[list]- TIMEOUT = 15
[/list]
- /usr/local/nagios/etc/pnp/npcd.cfg:
[list]- sleep_time = 10
[/list]
Try a timeout of 30 and a sleep time of 15 and see if that improves things.
Then do:
Code: Select all
service nagios restart #restart nagios.service
systemctl restart npcd #check status to make sure running
systemctl restart ramdisk.service #check status to make sure running
Please look over the following logs to review for underline issues:
Code: Select all
/usr/local/pnp4nagios/var/perfdata.log
/usr/local/pnp4nagios/var/npcd.log
Thanks,
Perry
Re: service-perfdata file space usage
Posted: Sat Feb 05, 2022 3:50 am
by IT-OPS-SYS
if i delete the files in the directory : /usr/local/pnp4nagios/var/perfdata will it affect my nagios production system.
removing the file (hostname file) from this location should not affect the host entry in the nagios XI database.
Re: service-perfdata file space usage
Posted: Mon Feb 07, 2022 11:54 am
by pbroste
Hello
@IT-OPS-SYS
Thanks for following up, you are correct that you can delete that data and it will only affect the performance data and history of the perfdata.
IT-OPS-SYS wrote:if i delete the files in the directory : /usr/local/pnp4nagios/var/perfdata will it affect my nagios production system.
removing the file (hostname file) from this location should not affect the host entry in the nagios XI database.
We see that 'nagiosramdisk' is configured and want to take a look to see if 'pnp4nagios' is also aware as we see messages:
NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /var/nagiosramdisk/spool/perfdata//1603278862.perfdata.service'
NPCD: Error while get file list from spooldir (/var/nagiosramdisk/spool/perfdata/) - No such file or directory
Please follow up and send the following:
Code: Select all
systemctl status npcd nagiosramdisk > /tmp/systemservices.txt
Code: Select all
tar -czvf /tmp/results.tar.gz /tmp/systemservices.txt /usr/local/nagios/etc/nagios.cfg /usr/local/pnp4nagios/etc/npcd.cfg /usr/local/nagios/var/perfdata.log /usr/local/nagios/var/npcd.log /usr/local/nagios/etc/objects/commands.cfg /usr/local/nagios/etc/commands.cfg /usr/local/pnp4nagios/libexec/process_perfdata.pl /usr/local/pnp4nagios/etc/npcd.cfg /usr/local/pnp4nagios/etc/process_perfdata.cfg
Please send the results so we can see what is going on,
Perry
Re: service-perfdata file space usage
Posted: Wed Feb 09, 2022 12:36 pm
by IT-OPS-SYS
[root@cvrmnagiosxi001 ~]# systemctl status npcd nagiosramdisk > /tmp/systemservices.txt
Unit nagiosramdisk.service could not be found.
Re: service-perfdata file space usage
Posted: Wed Feb 09, 2022 12:44 pm
by IT-OPS-SYS
find the results
Re: service-perfdata file space usage
Posted: Thu Feb 10, 2022 2:22 pm
by pbroste
Hello
@IT-OPS-SYS
Thanks for following up with the information, we see that the environment is trying to use 'nagiosramdisk' we see the example. Want to find out if this issue happened after an install or upgrade please provide the details.
NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /var/nagiosramdisk/spool/perfdata//
Appears that there are configs configured to use '
nagiosramdisk' and '
pnp4nagios'.
Please run through the attached repair script and then review the configs through the installation guides.
Please verify the services:
Please let us know how things look,
Perry