Folder Watch Wizard creates service, with UNKNOWN results

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Folder Watch Wizard creates service, with UNKNOWN results

Post by dlukinski »

Hi XI Support

We are testing Folder Watch (SSH) without a success so far. Wizard successfully verifies SSH, but only asks for username (no password?) and results in UNKNOWN error:

UNKNOWN ERROR - execution of ssh [email protected] ls -lA /mnt/tc-msgbroker/prontowave/MotorTestData/Navision -R resulted in an error 65280 -

Here is a command (we are checking Linux server, SuSe to be exact)
check_file_service!-C 'ssh nagios@$HOSTADDRESS$ ls -lA /mnt/tc-msgbroker/prontowave/MotorTestData/Navision' -F '[^\0]+' -r! -w 20 -c 30!!!!!!

How to fix this please?
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Folder Watch Wizard creates service, with UNKNOWN result

Post by tgriep »

When the command runs on the remote system, it runs it as the nagios user.
The nagios user needs to be able to read that final directory on the server and I am guessing that it does not.

Code: Select all

/mnt/tc-msgbroker/prontowave/MotorTestData/Navision
Does the nagios user have permissions to access that folder?
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Folder Watch Wizard creates service, with UNKNOWN result

Post by dlukinski »

tgriep wrote:When the command runs on the remote system, it runs it as the nagios user.
The nagios user needs to be able to read that final directory on the server and I am guessing that it does not.

Code: Select all

/mnt/tc-msgbroker/prontowave/MotorTestData/Navision
Does the nagios user have permissions to access that folder?
Let's close this one (although it was not resolved or operational)
Locked