Page 1 of 1
perfdata files large
Posted: Wed Oct 21, 2020 10:20 am
by proxibid
Ran the upgrade from 5.7.3 to 5.7.4 today. May or may not be related.
[chris.krull@nagios01 var]$ pwd
/usr/local/nagios/var
-rw-r--r-- 1 nagios nagios 11G Oct 21 10:15 service-perfdata
-rw-r--r-- 1 nagios nagios 1.2G Oct 21 10:15 host-perfdata
npcd.log looks ok - Here are lines from today -
[10-21-2020 10:04:30] NPCD: Caught Termination Signal - Hasta la vista... baby
[10-21-2020 10:04:30] NPCD: npcd Daemon (0.4.14) started with PID=15548
[10-21-2020 10:04:30] NPCD: Please have a look at 'npcd -V' to get license information
[10-21-2020 10:04:30] NPCD: HINT: load_threshold is enabled - ('10.000000')
Don't have a perfdata.log file.
Re: perfdata files large
Posted: Wed Oct 21, 2020 4:36 pm
by scottwilkerson
This looks like the perfdata file are not getting processed
What is the output of the following commands:
Code: Select all
grep process_performance_data /usr/local/nagios/etc/nagios.cfg
grep perfdata_file /usr/local/nagios/etc/nagios.cfg
Re: perfdata files large
Posted: Thu Oct 22, 2020 8:53 am
by proxibid
Thanks Scott. Here you go.
Code: Select all
[chris.krull@nagios01 ~]$ grep process_performance_data /usr/local/nagios/etc/nagios.cfg
process_performance_data=1
[chris.krull@nagios01 ~]$ grep perfdata_file /usr/local/nagios/etc/nagios.cfg
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
Re: perfdata files large
Posted: Thu Oct 22, 2020 9:32 am
by scottwilkerson
proxibid wrote:Thanks Scott. Here you go.
Code: Select all
[chris.krull@nagios01 ~]$ grep process_performance_data /usr/local/nagios/etc/nagios.cfg
process_performance_data=1
[chris.krull@nagios01 ~]$ grep perfdata_file /usr/local/nagios/etc/nagios.cfg
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
That looks correct, can you send me your profile.zip from Admin -> System Profile
Re: perfdata files large
Posted: Thu Oct 22, 2020 9:56 am
by proxibid
Sent in PM.
Re: perfdata files large
Posted: Thu Oct 22, 2020 10:15 am
by scottwilkerson
proxibid wrote:Sent in PM.
I'm seeing errors in the logs
Code: Select all
find: ‘/usr/local/nagios/var/spool/xidpe/’: No such file or directory
Do these this directories exist and if so what are the permissions
Code: Select all
ls -ld /usr/local/nagios/var/spool/xidpe
ls -ld /usr/local/nagios/var/spool
Re: perfdata files large
Posted: Thu Oct 22, 2020 10:33 am
by proxibid
Code: Select all
ls -ld /usr/local/nagios/var/spool/xidpe
ls: cannot access /usr/local/nagios/var/spool/xidpe: No such file or directory
spool is there but not xidpe.
these are current dirs and perms in spool
Code: Select all
[chris.krull@nagios01 spool]$ ll
total 0
drwxrwsr-x 2 nagios nagcmd 6 Oct 21 21:34 checkresults
drwxr-xr-x 2 nagios nagios 6 Jun 4 12:37 perfdata
Re: perfdata files large
Posted: Thu Oct 22, 2020 10:44 am
by scottwilkerson
That's the problem
run
Code: Select all
mkdir /usr/local/nagios/var/spool/xidpe
chown nagios:nagios /usr/local/nagios/var/spool/xidpe
Re: perfdata files large
Posted: Thu Oct 22, 2020 10:59 am
by proxibid
Thanks, that got me a perfdata.log which showed me this
Code: Select all
ERROR: /usr/local/nagios/var/stats is not writable or does not exist
So I created that dir and chowned it to nagios.nagios
File sizes are small again. Things seem to be good.
Thanks!
Re: perfdata files large
Posted: Thu Oct 22, 2020 11:14 am
by scottwilkerson
proxibid wrote:Thanks, that got me a perfdata.log which showed me this
Code: Select all
ERROR: /usr/local/nagios/var/stats is not writable or does not exist
So I created that dir and chowned it to nagios.nagios
File sizes are small again. Things seem to be good.
Thanks!
Great!
Locking thread