Recently in the use of Icinga deployment monitoring, after the use of ICINGA-PNP4 deployment, the inside of the display of historical data graphics display, error:
LocalHost directory does not exist, or localhost directory is empty
After research, the final confirmation is because in the Icinga configuration file icinga.cfg, does not open the option about PerfData, resulting in Icinga will not store historical data to the specified directory, just open it all, restart the Icinga service, you can display historical data graphics.
For perfdata configuration items, remove the previous # as follows:
958:process_performance_data=1
972:host_perfdata_command=pnp4-process-host-perfdata
973:service_perfdata_command=pnp4-process-service-perfdata
982:host_perfdata_file=/tmp/host-perfdata
983:service_perfdata_file=/tmp/service-perfdata
995:host_perfdata_file_template=[hostperfdata]\t$timet$\t$hostname$\t$hostexecutiontime$\t$hostoutput$\t$ hostperfdata$
996:service_perfdata_file_template=[serviceperfdata]\t$timet$\t$hostname$\t$servicedesc$\t$ serviceexecutiontime$\t$servicelatency$\t$serviceoutput$\t$serviceperfdata$
1007:host_perfdata_file_mode=a
1008:service_perfdata_file_mode=a
1018:host_perfdata_file_processing_interval=0
1019:service_perfdata_file_processing_interval=0
1028:host_perfdata_file_processing_command=process-host-perfdata-file
1029:service_perfdata_file_processing_command=process-service-perfdata-file
1040:host_perfdata_process_empty_results=1
1041:service_perfdata_process_empty_results=1