Page 1 of 1

Unable to add iSCSI-based Repository

Posted: Tue Jun 09, 2020 7:44 am
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.

Re: Unable to add iSCSI-based Repository

Posted: Tue Jun 09, 2020 5:03 pm
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.

Re: Unable to add iSCSI-based Repository

Posted: Tue Jun 09, 2020 5:05 pm
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

Re: Unable to add iSCSI-based Repository

Posted: Wed Jun 10, 2020 12:45 am
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!

Re: Unable to add iSCSI-based Repository

Posted: Wed Jun 10, 2020 8:09 am
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