I am getting this same error also. I am running on Ubuntu 24.04.
Owner of the /Tmp folder is also 1003:1003.
I never noticed the perms on the /tmp before this so no telling if this is normal or not.
This is the complete output from the upgrade script:
/tmp/nagiosxi# ./upgrade
Checking install type...
Install type: source
Installation check passed.
IMPORTANT: Before upgrading, verify you have both a valid system backup as well as a configuration backup
of Nagios XI before continuing! More information about backing up and restoring Nagios XI can be found here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
NOTICE: Your Nagios XI license includes a test environment instance that allows you to verify successful upgrade and configuration
changes before applying them to your production environment. As a best practice for ensuring the reliability of your monitoring
systems, we advise you to upgrade your test environment before upgrading any production instances. More information on licensing
can be found here:
https://assets.nagios.com/handouts/nagi ... Policy.pdf
Are you sure you want to continue? [y/N] y
Proceeding with upgrade...
Nagios XI Upgrade Log
==========================
DATE: Mon Sep 8 04:12:40 PM UTC 2025
DISTRO INFO:
Ubuntu
24.04
x86_64
chown: warning: '.' should be ':': ‘root.nagios’
chown: warning: '.' should be ':': ‘root.nagios’
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib/php/20230831/ixed.8.3.lin
Sourceguardian extension found for PHP version 8.3
Removing backup loader...
Sourceguardian extension already in php.ini
Checking required prereqs...
Please wait...
Operation timed out after 15001 milliseconds with 0 bytes received
OLD VERSION: 70100
mysql: [Warning] Using a password on the command line interface can be insecure.
Nagios Core 4.5.9
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2024-12-19
License: GPL
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 928 services.
Checked 50 hosts.
Checked 18 host groups.
Checked 15 service groups.
Checked 11 contacts.
Checked 8 contact groups.
Checked 184 commands.
Checked 21 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 50 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 21 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Error: Unable to write to temp_path ('/tmp') - Permission denied
Total Warnings: 0
Total Errors: 1
***> One or more problems was encountered while running the pre-flight check...
Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.