Unable to add iSCSI-based Repository

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Koja
Posts: 20
Joined: Fri Jul 12, 2019 2:50 am

Unable to add iSCSI-based Repository

Post by Koja »

Hello,

I've setup an iSCSI Target on my Synology NAS and I've successfully connected to it on my Nagios Log Server via iscsiadm. The disk block has been formatted, it has a filesystem and I've mounted it to /mnt/iSCSI as can be seen below:

Image

As you can see above, I've set up the correct folder permissions using the following commands:
chown -R nagios:nagios /mnt/iSCSI
chmod -R 775 /mnt/iSCSI

However, when trying to create the repository like so:

Image

I get the following error:

The snapshot repository in directory /mnt/iSCSI could not be created. Possibly due to permissions. Make sure the nagios user can write to the location.


EDIT: I've also tried to enter e.g. /mnt/iSCSI/DATA to see if it would work, but to no avail.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Unable to add iSCSI-based Repository

Post by cdienger »

Please PM me a profile from the system. It can be gathered under Admin > System > System Status > Download System Profile or from the command line with:

Code: Select all

/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 system. This is usually due to the logs in the Logstash and/or Elasticsearch 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to add iSCSI-based Repository

Post by ssax »

That's showing the user as 775 and the group as nagios, run these again and send the output:

Code: Select all

chown -R nagios:nagios /mnt/iSCSI
chmod -R 775 /mnt/iSCSI
ls -ld /mnt/iSCSI
Koja
Posts: 20
Joined: Fri Jul 12, 2019 2:50 am

Re: Unable to add iSCSI-based Repository

Post by Koja »

ssax wrote:That's showing the user as 775 and the group as nagios, run these again and send the output:

Code: Select all

chown -R nagios:nagios /mnt/iSCSI
chmod -R 775 /mnt/iSCSI
ls -ld /mnt/iSCSI
That seems to have done the trick. I was now able to create the repository!

Using the server's command history, I was able to see that I had previously entered these commands:

Code: Select all

chown -R nagios:nagios /mnt/iSCSI
 chown -R 775 /mnt/iSCSI
I don't quite understand how it is now working... Thanks anyway!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to add iSCSI-based Repository

Post by scottwilkerson »

Koja wrote:
ssax wrote:That's showing the user as 775 and the group as nagios, run these again and send the output:

Code: Select all

chown -R nagios:nagios /mnt/iSCSI
chmod -R 775 /mnt/iSCSI
ls -ld /mnt/iSCSI
That seems to have done the trick. I was now able to create the repository!

Using the server's command history, I was able to see that I had previously entered these commands:

Code: Select all

chown -R nagios:nagios /mnt/iSCSI
 chown -R 775 /mnt/iSCSI
I don't quite understand how it is now working... Thanks anyway!
Glad to hear it is resolved!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked