Page 1 of 1

Error: Unable to write to temp_path ('/tmp') - No such file

Posted: Mon Sep 14, 2020 9:28 am
by seaward1983
Nagios XI version: 5.7.3
Red Hat Enterprise Linux Server release 7.8 (Maipo)

When I go to BBMap - nothing shows up
So I went to CCM > Services - nothing shows up - but says "Displaying 1-15 of 7314 results".
So I went to Config file management - and went through the "delete files" - "write files" - then "verify files" - and got this.

Error: Unable to write to temp_path ('/tmp') - No such file or directory

Nagios Core 4.4.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2020-04-28
License: GPL

I looked at /tmp - drwxrwxrwt. 7 root root 118 Sep 14 09:20 tmp
I looked at vi /usr/local/nagios/etc/nagios.cfg - tmp is set to /tmp

What am I missing?



Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 7281 services.
Checked 1068 hosts.
Checked 2 host groups.
Checked 14 service groups.
Checked 19 contacts.
Checked 16 contact groups.
Checked 139 commands.
Checked 24 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1068 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 24 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Error: Unable to write to temp_path ('/tmp') - No such file or directory

Total Warnings: 0
Total Errors: 1

Re: Error: Unable to write to temp_path ('/tmp') - No such f

Posted: Mon Sep 14, 2020 10:50 am
by seaward1983
I got rid of "Error: Unable to write to temp_path ('/tmp') - No such file or directory" this error by totally restarting Nagios - but still getting nothing when I do this:

When I go to BBMap - nothing shows up
So I went to CCM > Services - nothing shows up - but says "Displaying 1-15 of 7314 results".

I tailed the nagios.log - and see this - but don't know what it means - or if it's even related:



[1600098484] NDO-3: Database initialized
[1600098484] NDO-3: Unable to prepare statement for query (5): Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed
[1600098484] NDO-3: Error preparing statements
[1600098484] NDO-3: Database initialized
[1600098484] NDO-3: Unable to prepare statement for query (5): Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed
[1600098484] NDO-3: Error preparing statements

Re: Error: Unable to write to temp_path ('/tmp') - No such f

Posted: Mon Sep 14, 2020 10:54 am
by seaward1983
I love it when a plan comes together -- so I did this

/usr/local/nagiosxi/scripts/repair_databases.sh

And now everything is showing up.

Thank you for playing, please tip your waiters and waitresses on your way out.

Re: Error: Unable to write to temp_path ('/tmp') - No such f

Posted: Mon Sep 14, 2020 3:16 pm
by scottwilkerson
seaward1983 wrote:I love it when a plan comes together -- so I did this

/usr/local/nagiosxi/scripts/repair_databases.sh

And now everything is showing up.

Thank you for playing, please tip your waiters and waitresses on your way out.
Glad you were able to get the DB repaired and everything sorted out

Locking thread