Migrating config and Perf Data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Migrating config and Perf Data

Post by michal.nastaly »

Hi,

I have multiple Nagios XI servers which are to upgraded to 5.4.4. The problem is that some of our installations are in environments which do not have internet access and for that reason, fresh install and migrate of all the config and perfdata over is required. I have successfully migrated the config and i can see messages being submitted but i cannot see any graphs being drawn on Nagios, nor it shows any of the perfdata that I have migrated.

For the perfdata migration the following guide was used:

https://support.nagios.com/kb/article.php?id=166

Any ideas why it doesn't work or where i can look for clues.

Regards
Michal
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Migrating config and Perf Data

Post by tgriep »

First thing to check is to see if the Nagios performance data daemon is running on the system.
Run this to restart it and to check it's status.

Code: Select all

service npcd restart
service npcd status
If the status reports that it is running, wait for 15 minutes to see if the graphs start to populate with performance data.

If not, check these 2 files for any errors and if you have any questions on the contents of those files, post them here so we can view them.

Code: Select all

/usr/local/nagios/var/perfdata.log
/usr/local/nagios/var/npcd.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Re: Migrating config and Perf Data

Post by michal.nastaly »

the perdata.log does not exist and the ncpd.log shows this:

[06-13-2017 05:55:07] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 05:55:07] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497269878.perfdata.service'
[06-13-2017 05:59:24] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 05:59:24] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497347943.perfdata.host'
[06-13-2017 06:00:24] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:00:24] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348018.perfdata.host'
[06-13-2017 06:00:24] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:00:24] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348003.perfdata.host'
[06-13-2017 06:01:24] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:01:24] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348063.perfdata.host'
[06-13-2017 06:01:55] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:01:55] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348108.perfdata.host'
[06-13-2017 06:01:55] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:01:55] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348093.perfdata.host'
[06-13-2017 06:02:25] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:02:25] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348138.perfdata.host'
[06-13-2017 06:02:55] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:02:55] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348168.perfdata.host'
[06-13-2017 06:03:25] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:03:25] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348183.perfdata.host'
[06-13-2017 06:03:55] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:03:55] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348228.perfdata.host'
[06-13-2017 06:04:25] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:04:25] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348258.perfdata.host'
[06-13-2017 06:05:26] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:05:26] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348303.perfdata.host'
[06-13-2017 06:06:26] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:06:26] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348378.perfdata.host'
[06-13-2017 06:06:26] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:06:26] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348363.perfdata.host'
[06-13-2017 06:07:56] NPCD: ERROR: Executed command exits with return code '13'
[06-13-2017 06:07:56] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1497348468.perfdata.host'
[06-13-2017 13:24:58] NPCD: Caught Termination Signal - Hasta la vista... baby
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Re: Migrating config and Perf Data

Post by michal.nastaly »

Currently I have configured a single VM to talk to the new installation of the Nagios XI Server. I can se graph being drawn for RAM but not for the Drives. All I get is a message saying "Loading performance graphs" followed by blank screen with the heading ie Service status details and the tabs.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Migrating config and Perf Data

Post by tgriep »

It could be a configuration setting that is causing the issue or a permission problem with some files / folders.
To check your configurations, can you post the following files from your server?

Code: Select all

/usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/etc/commands.cfg
Then can you login to the XI server as root, run the following commands and post the /tmp/info.txt file?

Code: Select all

ls -l /usr/local/nagios/libexec/process_perfdata.pl >/tmp/info.txt
df -h >>/tmp/info.txt
ls -lR /usr/local/nagios/var/spool/ >>/tmp/info.txt
ls -lR /usr/local/nagios/share/perfdata/ >>/tmp/info.txt
After I look at the files, I'll post the next step.
Be sure to check out our Knowledgebase for helpful articles and solutions!
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Re: Migrating config and Perf Data

Post by michal.nastaly »

Hi,

I have attached all 3 files in a zip.

Regards
files.zip
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Migrating config and Perf Data

Post by tgriep »

Everything looks good so far.

Lets turn on debugging and see if we can get any errors.
Edit this file

Code: Select all

/usr/local/nagios/etc/pnp/process_perfdata.cfg
Change the following from

Code: Select all

LOG_LEVEL = 0
to

Code: Select all

LOG_LEVEL = 2
Then edit

Code: Select all

/usr/local/nagios/etc/pnp/npcd.cfg
Change the following from

Code: Select all

log_level = 0
to

Code: Select all

log_level = 2
The restart these processes by running

Code: Select all

service npcd restart
service nagios restart
Wait about 10 minutes, run the following as root and post the /tmp/info.txt file.

Code: Select all

ps -ef  >/tmp/info.txt
tail -100  /usr/local/nagios/var/npcd.log >>/tmp/info.txt
tail -100  /usr/local/nagios/var/perfdata.log >>/tmp/info.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked