can't create temp file - read-only file system
Posted: Thu Apr 09, 2020 10:08 am
Hello
i'm using Nagios Core, i have created hosts normally and verify my work by restart service by sudo service nagios and /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg normally, in some day and before i start the work i did the same verifying commands but i found the following:
nagios@nagios-srv:/usr/local/nagios/etc/objects$ sudo service nagios start
Job for nagios.service failed because the control process exited with error code.
See "systemctl status nagios.service" and "journalctl -xe" for details.
nagios@nagios-srv:/usr/local/nagios/etc/objects$
nagios@nagios-srv:/usr/local/nagios/etc/objects$
nagios@nagios-srv:/usr/local/nagios/etc/objects$
nagios@nagios-srv:/usr/local/nagios/etc/objects$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-08-20
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 174 services.
Checked 153 hosts.
Checked 6 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 153 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Error: Unable to write to temp_path ('/tmp') - Read-only file system
Error: Unable to write to check_result_path ('/usr/local/nagios/var/spool/checkresults') - Read-only file system
Total Warnings: 0
Total Errors: 2
***> 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.
nagios@nagios-srv:/usr/local/nagios/etc/objects$
anyone can help me on that issue?
Thanks
i'm using Nagios Core, i have created hosts normally and verify my work by restart service by sudo service nagios and /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg normally, in some day and before i start the work i did the same verifying commands but i found the following:
nagios@nagios-srv:/usr/local/nagios/etc/objects$ sudo service nagios start
Job for nagios.service failed because the control process exited with error code.
See "systemctl status nagios.service" and "journalctl -xe" for details.
nagios@nagios-srv:/usr/local/nagios/etc/objects$
nagios@nagios-srv:/usr/local/nagios/etc/objects$
nagios@nagios-srv:/usr/local/nagios/etc/objects$
nagios@nagios-srv:/usr/local/nagios/etc/objects$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-08-20
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 174 services.
Checked 153 hosts.
Checked 6 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 153 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Error: Unable to write to temp_path ('/tmp') - Read-only file system
Error: Unable to write to check_result_path ('/usr/local/nagios/var/spool/checkresults') - Read-only file system
Total Warnings: 0
Total Errors: 2
***> 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.
nagios@nagios-srv:/usr/local/nagios/etc/objects$
anyone can help me on that issue?
Thanks