Nagios 1.2 starting… (PID=7260)
Warning: Cannot open log file ‘/var/spool/nagios/nagios.log’ for writing
Error: Could not read program retention data from table programretention
Warning: Cannot open log file ‘/var/spool/nagios/nagios.log’ for writing
Error: Could not read host retention data from table hostretention
Warning: Cannot open log file ‘/var/spool/nagios/nagios.log’ for writing
Error: Could not read service retention data from table serviceretention
Warning: Cannot open log file ‘/var/spool/nagios/nagios.log’ for writing
Error: Could not lock status data tables in database ‘’
The rights on the file nagios.log are okay:
-rw-r–r-- 1 root nagios 141 Oct 25 16:24 nagios.log
Does anyone know what is wrong? Thanks in advance!
check the permissions on you files as by the docs.
it shouldn’t be a file owned by root. the nagios user which runs nagios itself can’t write that file as it is…
Nagios 1.2 starting… (PID=7341)
Error: Could not read program retention data from table programretention
Error: Could not read host retention data from table hostretention
Error: Could not read service retention data from table serviceretention
Error: Could not lock status data tables in database ‘’
while configuring before compiling did you define the mysql user? has the nagios user a .my.cnf file? has he access read/write to the databes tables?..
No. I think this is indeed the problem. I don’t want nagios with MySQL support, but anyway it looks for tables into a mysql databases, which don’t exist. How can I change this so that Nagios uses plain text files?