Migrating config and Perf Data
-
michal.nastaly
- Posts: 59
- Joined: Tue Jun 02, 2015 9:24 am
Migrating config and Perf Data
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
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
Re: Migrating config and Perf Data
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.
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.
Run this to restart it and to check it's status.
Code: Select all
service npcd restart
service npcd statusIf 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.logBe 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
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
[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
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.
Re: Migrating config and Perf Data
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?
Then can you login to the XI server as root, run the following commands and post the /tmp/info.txt file?
After I look at the files, I'll post the next step.
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.cfgCode: 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.txtBe 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
Hi,
I have attached all 3 files in a zip.
Regards
I have attached all 3 files in a zip.
Regards
You do not have the required permissions to view the files attached to this post.
Re: Migrating config and Perf Data
Everything looks good so far.
Lets turn on debugging and see if we can get any errors.
Edit this file
Change the following from
to
Then edit
Change the following from
to
The restart these processes by running
Wait about 10 minutes, run the following as root and post the /tmp/info.txt file.
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.cfgCode: Select all
LOG_LEVEL = 0Code: Select all
LOG_LEVEL = 2Code: Select all
/usr/local/nagios/etc/pnp/npcd.cfgCode: Select all
log_level = 0Code: Select all
log_level = 2Code: Select all
service npcd restart
service nagios restart
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.txtBe sure to check out our Knowledgebase for helpful articles and solutions!