Page 1 of 1

Unable to create temp file for writing status data

Posted: Mon Oct 13, 2014 8:19 am
by avraham
nagios3: Error: Unable to create temp file for writing status data: No such file or directory

the above message is logged every 10 secs in my nagios.log.

that doesn't bother me too much.
the main problem is that when i click on any menu item on the main page, i get:
Error: Could not read object configuration data!

however, when i verify to config files w/ the -v option, it runs clean, no errors nor warnings.
i run the verification as user nagios.
i'm running nagios 3.41 on debian7 (wheezy)

any hints will be appreciated.
tnx,
ams

Re: Unable to create temp file for writing status data

Posted: Wed Oct 15, 2014 9:30 am
by abrist
Where is your status.dat file configured to write to?

Code: Select all

grep status_file /usr/local/nagios/etc/nagios.cfg

Re: Unable to create temp file for writing status data

Posted: Fri Oct 17, 2014 2:45 am
by avraham
thanks abrist,
that solved it.

why do u suppose the verifications (via -v) didn't spot this?
(a bug? missing feature? or feature? or defective user?)

tnx,
ams

Re: Unable to create temp file for writing status data

Posted: Fri Oct 17, 2014 9:38 am
by abrist
avraham wrote: why do u suppose the verifications (via -v) didn't spot this?
What was the directive set to?