Huge perfdata
Posted: Mon Apr 06, 2015 8:11 am
1st path:
The above two quotes lead to double-saving the service performance data; the data are saved twice at the following locations:
/opt/perfdata/service-perfdata &
/var/log/nagios/service-perfdata.out
Is it safe to disable "process-service-perfdata" command ?
Each file is 26GB in size!! Is any way to reduce their size by loosing historical data before a specific time (ex. 2012) ?
Thank you
2nd pathnagios.cfg
# HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
# These commands are run after every host and service check is
# performed. These commands are executed only if the
# enable_performance_data option (above) is set to 1. The command
# argument is the short name of a command definition that you
# define in your host configuration file. Read the HTML docs for
# more information on performance data.
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata
commands.cfg:
# 'process-host-perfdata' command definition
define command{
command_name process-host-perfdata
command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/log/nagios/host-perfdata.out
}
# 'process-service-perfdata' command definition
define command{
command_name process-service-perfdata
command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/log/nagios/service-perfdata.out
}
nagios.cfg
# HOST AND SERVICE PERFORMANCE DATA FILES
# These files are used to store host and service performance data.
# Performance data is only written to these files if the
# enable_performance_data option (above) is set to 1.
host_perfdata_file=/opt/perfdata/host-perfdata
service_perfdata_file=/opt/perfdata/service-perfdata
The above two quotes lead to double-saving the service performance data; the data are saved twice at the following locations:
/opt/perfdata/service-perfdata &
/var/log/nagios/service-perfdata.out
Is it safe to disable "process-service-perfdata" command ?
Each file is 26GB in size!! Is any way to reduce their size by loosing historical data before a specific time (ex. 2012) ?
Thank you