Unable to create temp file for writing status data

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
avraham
Posts: 27
Joined: Thu Aug 28, 2014 5:37 pm

Unable to create temp file for writing status data

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Unable to create temp file for writing status data

Post by abrist »

Where is your status.dat file configured to write to?

Code: Select all

grep status_file /usr/local/nagios/etc/nagios.cfg
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
avraham
Posts: 27
Joined: Thu Aug 28, 2014 5:37 pm

Re: Unable to create temp file for writing status data

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Unable to create temp file for writing status data

Post by abrist »

avraham wrote: why do u suppose the verifications (via -v) didn't spot this?
What was the directive set to?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked