perfdata files large

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
proxibid
Posts: 30
Joined: Fri Aug 15, 2014 2:19 pm

perfdata files large

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfdata files large

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
proxibid
Posts: 30
Joined: Fri Aug 15, 2014 2:19 pm

Re: perfdata files large

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfdata files large

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
proxibid
Posts: 30
Joined: Fri Aug 15, 2014 2:19 pm

Re: perfdata files large

Post by proxibid »

Sent in PM.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfdata files large

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
proxibid
Posts: 30
Joined: Fri Aug 15, 2014 2:19 pm

Re: perfdata files large

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfdata files large

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
proxibid
Posts: 30
Joined: Fri Aug 15, 2014 2:19 pm

Re: perfdata files large

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: perfdata files large

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked