I setup a Snapshot Repository for archiving index and already clicked the "save Settings" at snapshot and Maintenance page.
after a few weeks , the snapshots table still nothing to show up , only the header "Created/Name, State, Indexes, Actions"
what is the problem will my Repositories
log server size 7TB , backup Repository size 3TB
snopshot Repository show nothing
Re: snopshot Repository show nothing
Please provide a screenshot of the Snapshots & Maintenance screen so we can review the settings.
I'd also like you to run the backup_maintenance job under Admin > System > Command Subsystem, wait about 10 seconds and then provide me with a copy of /usr/local/nagioslogserver/var/jobs.log.
I'd also like you to run the backup_maintenance job under Admin > System > Command Subsystem, wait about 10 seconds and then provide me with a copy of /usr/local/nagioslogserver/var/jobs.log.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 55
- Joined: Tue Dec 04, 2018 9:52 pm
-
- Posts: 55
- Joined: Tue Dec 04, 2018 9:52 pm
Re: snopshot Repository show nothing
the jobs.log only contains 4lines
Running command run_alerts with args ' ' for job id: run_all_alerts
SUCCESS
Running command run_alerts with args ' ' for job id: run_all_alerts
SUCCESS
Running command run_alerts with args ' ' for job id: run_all_alerts
SUCCESS
Running command run_alerts with args ' ' for job id: run_all_alerts
SUCCESS
Re: snopshot Repository show nothing
Were you seeing snapshots previously and it suddenly stopped working or is this a new setup?
What is the output look like if you run "ls -alh /usr/local/nagioslogserver/snapshots" ? Sometimes a failed backup will produce files of 0 bytes which will prevent NLS from displaying the rest of the files in the repo. The fix is to delete these 0 byte files.
Try running the job again, wait 30 seconds, then provide me with the jobs.log and PM a profile which can be gathered under Admin > System > System Status > Download System Profile or from the command line with:
/usr/local/nagioslogserver/scripts/profile.sh
This will create /tmp/system-profile.tar.gz.
Note that this file can be very large and may not be able to be uploaded through the PM system. This is usually due to the logs in the logstash and/or elasticseach directories found in it. If it is too large, please open the profile, extract these directories/files and send them separately.
What is the output look like if you run "ls -alh /usr/local/nagioslogserver/snapshots" ? Sometimes a failed backup will produce files of 0 bytes which will prevent NLS from displaying the rest of the files in the repo. The fix is to delete these 0 byte files.
Try running the job again, wait 30 seconds, then provide me with the jobs.log and PM a profile which can be gathered under Admin > System > System Status > Download System Profile or from the command line with:
/usr/local/nagioslogserver/scripts/profile.sh
This will create /tmp/system-profile.tar.gz.
Note that this file can be very large and may not be able to be uploaded through the PM system. This is usually due to the logs in the logstash and/or elasticseach directories found in it. If it is too large, please open the profile, extract these directories/files and send them separately.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 55
- Joined: Tue Dec 04, 2018 9:52 pm
Re: snopshot Repository show nothing
result of "ls" command
[root@localhost ~]# ls -alh /usr/local/nagioslogserver/snapshots
total 36K
drwxrwxr-x 4 nagios nagios 4.0K May 26 10:38 .
drwxrwxr-x. 10 nagios nagios 4.0K Oct 29 2018 ..
drwxrwxr-x 31 nagios nagios 4.0K Apr 28 01:51 indices
drwxrwxr-x 2 nagios nagios 16K Apr 28 00:51 lost+found
-rwxrwxr-x 1 nagios nagios 519 Apr 28 01:51 metadata-curator-20190427175153
-rwxrwxr-x 1 nagios nagios 824 Apr 28 01:11 snapshot.1556385102.tar.gz
-rwxrwxr-x 1 nagios nagios 0 Apr 28 08:30 snapshot-curator-20190427175153
[root@localhost ~]# ls -alh /usr/local/nagioslogserver/snapshots
total 36K
drwxrwxr-x 4 nagios nagios 4.0K May 26 10:38 .
drwxrwxr-x. 10 nagios nagios 4.0K Oct 29 2018 ..
drwxrwxr-x 31 nagios nagios 4.0K Apr 28 01:51 indices
drwxrwxr-x 2 nagios nagios 16K Apr 28 00:51 lost+found
-rwxrwxr-x 1 nagios nagios 519 Apr 28 01:51 metadata-curator-20190427175153
-rwxrwxr-x 1 nagios nagios 824 Apr 28 01:11 snapshot.1556385102.tar.gz
-rwxrwxr-x 1 nagios nagios 0 Apr 28 08:30 snapshot-curator-20190427175153
-
- Posts: 55
- Joined: Tue Dec 04, 2018 9:52 pm
Re: snopshot Repository show nothing
the snapshot cmd seem running now and the size of snapshot size is same as primary storage?
the primary disk is 7.4 TB now and the snapshots repository is 2.9 TB only
do I need to expand the snapshot Repository?
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 7.4T 6.8T 340G 96% /
/dev/mapper/snapshot_vg-data_lv 2.9T 1.8T 1.1T 63% /usr/local/nagioslogserver/snapshots
the primary disk is 7.4 TB now and the snapshots repository is 2.9 TB only
do I need to expand the snapshot Repository?
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 7.4T 6.8T 340G 96% /
/dev/mapper/snapshot_vg-data_lv 2.9T 1.8T 1.1T 63% /usr/local/nagioslogserver/snapshots
-
- Posts: 55
- Joined: Tue Dec 04, 2018 9:52 pm
Re: snopshot Repository show nothing
snapshot completed after delete 0kb file at /usr/local/nagioslogserver/snapshot
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: snopshot Repository show nothing
Great!cdcsysadmin wrote:snapshot completed after delete 0kb file at /usr/local/nagioslogserver/snapshot
Locking thread