Upgrade Nagios Core

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.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Upgrade Nagios Core

Post by rlinux57 »

I have amend it as per your direction. But still facing

Code: Select all

[1475232195] Error: Unable to create temp file '/usr/local/nagios/var/nagios.tmpT4uAT0' for writing status data: No space left on device
[1475232205] Warning: File '/tmp/perfdata.log' could not be opened - service performance data will not be written to file!
[1475232205] Error: Unable to create temp file '/usr/local/nagios/var/nagios.tmp8rUM6G' for writing status data: No space left on device

Code: Select all

/usr/local/nagios/bin/nagios -vv /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.2.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 09-06-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/windows.cfg'...
Processing object config directory '/usr/local/nagios/etc/servers'...
Processing object config file '/usr/local/nagios/etc/servers/company-client-services.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/rbl-check.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/shared-hosts-services.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/shared-hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/uptime.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/company-servers-hosts-additionalip.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/company-client-hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/companyOfficial-servers-hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/company-client-hosts-additionalip.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/company-OpenVz.cfg'...
Processing object config file '/usr/local/nagios/etc/servers/separateservices.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
	Checked 443 services.
Warning: Host 'Addsells-ip3' has no services associated with it!
Warning: Host 'winserver' has no services associated with it!
	Checked 72 hosts.
	Checked 6 host groups.
	Checked 1 service groups.
	Checked 2 contacts.
	Checked 1 contact groups.
	Checked 53 commands.
	Checked 5 time periods.
	Checked 0 host escalations.
	Checked 0 service escalations.
Checking for circular paths...
	Checked 72 hosts
	Checked 0 service dependencies
	Checked 0 host dependencies
	Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 2
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade Nagios Core

Post by tgriep »

Do you have pnp4nagios installed on your system? If it is, you may need to upgrade / adjust the permissions for that.
If so, can you post the configuration file for that and the nagios.cfg and commands.cfg file?

You can run this as root on the Nagios system to give full permissions for those files / folders to see if this work for you.

Code: Select all

chmod 777 /tmp/perfdata.log
chmod 777 /usr/local/nagios/var/
Be sure to check out our Knowledgebase for helpful articles and solutions!
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Upgrade Nagios Core

Post by rlinux57 »

I have run both command mentioned by you.
I have used nagiosgraph alongwith it. I have attached both files please find attachment.
Attachments
command.cfg
(13.18 KiB) Downloaded 156 times
nagios.cfg
(43.88 KiB) Downloaded 146 times
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade Nagios Core

Post by tgriep »

You may want to re-install nagiosgraph on the system as that is what is looks like is causing the error. Maybe some of the settings were over written and re-installing will fix it.
The instructions are below.
http://www.linuxfunda.com/2013/04/02/st ... gios-core/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked