View configuration snapshots not up to date
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
View configuration snapshots not up to date
Hi,
When having an error while applying configuration, I go to "View configuration snapshots" but the list of available snapshots ends to march 2013.
Rgds,
Frederic
When having an error while applying configuration, I go to "View configuration snapshots" but the list of available snapshots ends to march 2013.
Rgds,
Frederic
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: View configuration snapshots not up to date
Can you run the write config tool and let us know what it says? That should help you find the problem:
Configure > CCM > Tools > Write Config Tool.
Regarding your snapshots it is possible they have not been taken, or your time is off showing the last one as a few months ago.
Configure > CCM > Tools > Write Config Tool.
Regarding your snapshots it is possible they have not been taken, or your time is off showing the last one as a few months ago.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: View configuration snapshots not up to date
write config to files = write
verify configuration = verify
restart nagios = restart
verify configuration = verify
restart nagios = restart
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: View configuration snapshots not up to date
So you had no configuration errors then, when you apply configuration what happens?
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: View configuration snapshots not up to date
Please find a screen capture attached (in that case, no errors).
But no snapshot taken when errors occured.
But no snapshot taken when errors occured.
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: View configuration snapshots not up to date
Interesting, this should be saved on every config save, and once daily. Let's check your permissions:
Code: Select all
ll /usr/local/nagiosxi/nom/checkpoints/nagioscore/
ll -d /usr/local/nagiosxi/nom/checkpoints/nagioscore/
ll -d /usr/local/nagiosxi/nom/checkpoints/
ll -d /usr/local/nagiosxi/nom/Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: View configuration snapshots not up to date
Code: Select all
[root@nagiosxi services]# ll /usr/local/nagiosxi/nom/checkpoints/nagioscore/
total 4344
-rw-r--r-- 1 500 nagios 62971 Feb 27 2013 1361954939.tar.gz
-rw-r--r-- 1 500 nagios 32803 Feb 27 2013 1361954939.txt
-rw-r--r-- 1 500 nagios 62945 Feb 27 2013 1361955028.tar.gz
-rw-r--r-- 1 500 nagios 32803 Feb 27 2013 1361955028.txt
-rw-r--r-- 1 500 nagios 62945 Feb 27 2013 1361955029.tar.gz
-rw-r--r-- 1 500 nagios 32803 Feb 27 2013 1361955029.txt
-rw-r--r-- 1 500 nagios 62875 Feb 27 2013 1361955114.tar.gz
-rw-r--r-- 1 500 nagios 32724 Feb 27 2013 1361955114.txt
-rw-r--r-- 1 500 nagios 62955 Feb 27 2013 1361955158.tar.gz
-rw-r--r-- 1 500 nagios 32802 Feb 27 2013 1361955158.txt
-rw-r--r-- 1 500 nagios 62955 Feb 27 2013 1361970062.tar.gz
-rw-r--r-- 1 500 nagios 32802 Feb 27 2013 1361970062.txt
-rw-r--r-- 1 500 nagios 62917 Feb 27 2013 1361983080.tar.gz
-rw-r--r-- 1 500 nagios 32802 Feb 27 2013 1361983080.txt
-rw-r--r-- 1 500 nagios 62917 Feb 28 2013 1362056522.tar.gz
-rw-r--r-- 1 500 nagios 32802 Feb 28 2013 1362056522.txt
-rw-r--r-- 1 500 nagios 62870 Feb 28 2013 1362068845.tar.gz
-rw-r--r-- 1 500 nagios 32714 Feb 28 2013 1362068845.txt
-rw-r--r-- 1 500 nagios 62762 Feb 28 2013 1362068876.tar.gz
-rw-r--r-- 1 500 nagios 32629 Feb 28 2013 1362068876.txt
-rw-r--r-- 1 500 nagios 62608 Mar 13 17:26 1363191961.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 13 17:26 1363191961.txt
-rw-r--r-- 1 500 nagios 62648 Mar 14 17:12 1363277544.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:12 1363277544.txt
-rw-r--r-- 1 500 nagios 62575 Mar 14 17:12 1363277550.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:12 1363277550.txt
-rw-r--r-- 1 500 nagios 62526 Mar 14 17:12 1363277557.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:12 1363277557.txt
-rw-r--r-- 1 500 nagios 62582 Mar 14 17:12 1363277563.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:12 1363277563.txt
-rw-r--r-- 1 500 nagios 62519 Mar 14 17:12 1363277570.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:12 1363277570.txt
-rw-r--r-- 1 500 nagios 62603 Mar 14 17:12 1363277575.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:12 1363277575.txt
-rw-r--r-- 1 500 nagios 62510 Mar 14 17:13 1363277582.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:13 1363277582.txt
-rw-r--r-- 1 500 nagios 62645 Mar 14 17:13 1363277588.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:13 1363277588.txt
-rw-r--r-- 1 500 nagios 62569 Mar 14 17:13 1363277594.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:13 1363277594.txt
-rw-r--r-- 1 500 nagios 62601 Mar 14 17:13 1363277601.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:13 1363277601.txt
-rw-r--r-- 1 500 nagios 62630 Mar 14 17:15 1363277728.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:15 1363277728.txt
-rw-r--r-- 1 500 nagios 62562 Mar 14 17:15 1363277734.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:15 1363277734.txt
-rw-r--r-- 1 500 nagios 62540 Mar 14 17:15 1363277741.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:15 1363277741.txt
-rw-r--r-- 1 500 nagios 62623 Mar 14 17:15 1363277747.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:15 1363277747.txt
-rw-r--r-- 1 500 nagios 62544 Mar 14 17:15 1363277754.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:15 1363277754.txt
-rw-r--r-- 1 500 nagios 62617 Mar 14 17:16 1363277760.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:16 1363277760.txt
-rw-r--r-- 1 500 nagios 62571 Mar 14 17:16 1363277766.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:16 1363277766.txt
-rw-r--r-- 1 500 nagios 62547 Mar 14 17:16 1363277773.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:16 1363277773.txt
-rw-r--r-- 1 500 nagios 62577 Mar 14 17:16 1363277779.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:16 1363277779.txt
-rw-r--r-- 1 500 nagios 62589 Mar 14 17:16 1363277786.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:16 1363277786.txt
-rw-r--r-- 1 500 nagios 62623 Mar 14 17:17 1363277857.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:17 1363277857.txt
-rw-r--r-- 1 500 nagios 62531 Mar 14 17:17 1363277864.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:17 1363277864.txt
-rw-r--r-- 1 500 nagios 62593 Mar 14 17:17 1363277870.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:17 1363277870.txt
-rw-r--r-- 1 500 nagios 62591 Mar 14 17:17 1363277877.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:17 1363277877.txt
-rw-r--r-- 1 500 nagios 62616 Mar 14 17:18 1363277883.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:18 1363277883.txt
-rw-r--r-- 1 500 nagios 62591 Mar 14 17:18 1363277889.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:18 1363277889.txt
-rw-r--r-- 1 500 nagios 62547 Mar 14 17:18 1363277896.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:18 1363277896.txt
-rw-r--r-- 1 500 nagios 62639 Mar 14 17:18 1363277902.tar.gz
-rw-r--r-- 1 500 nagios 32631 Mar 14 17:18 1363277902.txt
-rw-r--r-- 1 nagios nagios 62609 Mar 14 18:03 1363280631.tar.gz
-rw-r--r-- 1 nagios nagios 32631 Mar 14 18:03 1363280631.txt
-rw-r--r-- 1 nagios nagios 61841 Jul 15 11:40 1373881214.tar.gz
-rw-r--r-- 1 nagios nagios 34215 Jul 15 11:40 1373881214.txt
-rw-r--r-- 1 nagios nagios 61875 Jul 30 11:52 1375177948.tar.gz
-rw-r--r-- 1 nagios nagios 34215 Jul 30 11:52 1375177948.txt
-rw-r--r-- 1 nagios nagios 61825 Jul 30 11:53 1375177989.tar.gz
-rw-r--r-- 1 nagios nagios 34215 Jul 30 11:53 1375177989.txt
Code: Select all
[root@nagiosxi services]# ll -d /usr/local/nagiosxi/nom/checkpoints/nagioscore/
drwxr-xr-x 3 500 nagios 4096 Jul 30 11:53 /usr/local/nagiosxi/nom/checkpoints/nagioscore/
[root@nagiosxi services]# ll -d /usr/local/nagiosxi/nom/checkpoints/
drwxr-xr-x 4 500 nagios 4096 Oct 22 2012 /usr/local/nagiosxi/nom/checkpoints/drwxr-xr-x 3 500 nagios 4096 Aug 29 2011 /usr/local/nagiosxi/nom/
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: View configuration snapshots not up to date
It looks like a user with the id of 500 must have been removed some point after XI was installed, this happens to be the nagios user that is created upon install.. Do you use LDAP or any other domain authentication on the linux system itself, not the XI interface? I am guessing this is going to cause many issues further down the line as well since other directories and files will have been altered too. To start getting your snapshots working, you can run:
Then let's look for other issues that may be present, this may end up with a lot of results,attach the txt documents.
Code: Select all
chown -R nagios.nagios /usr/local/nagiosxi/nomCode: Select all
grep '500' /etc/passwd
grep 'nag' /etc/passwd
ll -R /usr/local/nagios/ | grep 500 > /tmp/nagios-user-issue.txt
ll -R /usr/local/nagiosxi/ | grep 500 > /tmp/nagiosxi-user-issue.txtNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: View configuration snapshots not up to date
Thanks,
The snapshots works now.
Here's the result of the commands you proposed me to launched.
[root@nagiosxi services]# grep '500' /etc/passwd
nagios
20739:500::/home/nagios:/bin/bash
[root@nagiosxi services]# grep 'nag' /etc/passwd
nagios
20739:500::/home/nagios:/bin/bash
The snapshots works now.
Here's the result of the commands you proposed me to launched.
[root@nagiosxi services]# grep '500' /etc/passwd
nagios
[root@nagiosxi services]# grep 'nag' /etc/passwd
nagios
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: View configuration snapshots not up to date
What changed in your local system accounts? The nagios user is ID 20739 and not 500 as all of the files indicate. That is why instead of a user they show 500. You should be able to modify /etc/passwd to look like:
As it normally should, we will then have to reapply the changes to the snapshot directory from before.
Code: Select all
nagios:x:500:100::/home/nagios:/bin/bashNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.