Pages: [1] 2   Go Down
Author Topic: Agent on windows don't work  (Read 946 times)
0 Members and 1 Guest are viewing this topic.
admin
Guest
« on: July 06, 2006, 06:05:12 PM »

Hi, i have installed the agent on windows server but don't comunicate with the Master Server.
the SSH connection work if i try to connect with putty

My Master Server is on Windows 2003 and the server that i want to controll is also win2003.

On Agent machine the service is on, but i don't see a port 22 open to Master server.
the pandora_agent.conf is configured

please help.
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #1 on: July 07, 2006, 09:09:33 AM »

Which is the version of Pandora agent that you have installed?
« Last Edit: January 01, 1970, 01:00:00 AM by raul » Logged

admin
Guest
« Reply #2 on: July 07, 2006, 09:50:29 AM »

1.2a, sorry i forget to write it in a last message ;)
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #3 on: July 07, 2006, 12:44:30 PM »

Well,

which is the user you're using to execute the service? Windows stores the ssh keys in the user's branch of registry, so the be careful with that.

Please read the Pandora Agents Install Guide how to change the user that inits the service, if this is the problem, at
(this docs are stored at the old page of Pandora, because the windows 1.2a is, basically, the same as 1.1)
http://prdownloads.sourceforge.net/pandoramon/PandoraAgentsInstall_1.1.zip (in english)

http://prdownloads.sourceforge.net/pandoramon/Pandora_Agents_Install_v1.1.es.zip (spanish)
« Last Edit: January 01, 1970, 01:00:00 AM by raul » Logged

admin
Guest
« Reply #4 on: July 07, 2006, 04:37:39 PM »

I have update the version of all software to 1.2 beta2.
now i have a clear error in log of agent

07-07-06 17:31:32: Pandora Agent: Authentication Failed when connecting to 10.96.30.196

i have try with putty to connect from same server to 10.96.30.196 and it work, but if use a agent ... don't work.... why?
this is may .conf
# General Parameters
# ==================

server_ip 10.96.30.196
server_path /opt/pandora_server/data_in
temporal "c:pxjdata_out"
interval 1
agent_name vmware_DB

# Module Definition


I have another question, where the Pandoraagent.exe take a user? beacuse use a LOCALSYSTEM user on a service.


I prefer a new version of agent... it's more clear and easy to install and to check.
thaks to all
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #5 on: July 08, 2006, 08:24:19 PM »

Well, the user is only for Pandora Agent 1.2a and before :-D

We are writing all the docs before the release of the 1.2 Final.

Please, check that you have created the /opt/pandora_server/data_in (in the server side, be sure the user which runs pandora have access to this directory) and c:pxjdata_out folder and you can write there.

Also, for checking, try to put on the interval something a bit higher, like 200.

Also, do you have any modules configured?
« Last Edit: January 01, 1970, 01:00:00 AM by raul » Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #6 on: July 09, 2006, 06:51:43 PM »

have you put your id_dsa.pub and id_dsa files in ./key directory ?.

(from INSTALL file):

keyid_dsa           :: Private key to access the Pandora server using SSH
keyid_dsa.pub       :: Public key to access the Pandora server using SSH

Also you may try to exec in commandline pandoraservice.exe with --test-ssh argument to test SSH funcionality (this option is not documented at this time, so don't look for more information in docs :-)
« Last Edit: January 01, 1970, 01:00:00 AM by nil » Logged

-- See you in the other screen.

admin
Guest
« Reply #7 on: July 10, 2006, 02:03:21 PM »

Hi all!!!
the problem is solved... in part ;)
Now is authenticated, thanks slerena!!! i forget to change the user while generated the key... sorry, now i have this problem:
when copy to remote location appear /ssh.test, but in windows don't use / but
Is it possible to correct this problem, because don't copy the file.


Authentication successful.
Host fingerprint: DE:AA:85:3D:9A:D7:7C:32:0E:4F:FD:E8:E7:66:E8:38
Created a blank XML file in C:pandora_agents_1.2-Beta2.tarpandora_agentswin32
in   empssh.test
Remote copying C:pandora_agents_1.2-Beta2.tarpandora_agentswin32in   empssh
.teston server pandorasrv at \pandorasrvdata_in/ssh.test
An unhandled exception happened.
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

steve-o
Full Member
***

Karma: 0
Offline Offline

Posts: 25


View Profile
« Reply #8 on: July 11, 2006, 09:33:47 AM »

Hi!

I'm the developer of the Pandora Windows agent, so I hope I can help you. I suppose that the Pandora server is a UNIX/Linux machine, so the path in these O.S. uses '/' instead of ''. Check the variable 'server_path' in the Pandora Windows agent configuration, and replace the '' with '/'. In your case, it will be something like that:

Code:

server_path \pandorasrvdata_in


And should be replaced by

Code:

server_path /pandorasrv/data_in


I suppose that Pandora server has been installed in the /pandorasrv/ directory. I would suggest you to install in /opt/pandorasrv instead, which is a cleaner place to install it.

Thanks for using Pandora.
« Last Edit: January 01, 1970, 01:00:00 AM by steve-o » Logged

Hellraiser
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« Reply #9 on: July 17, 2006, 12:24:24 PM »

Hi... i have found a solution, thanks to everybody to push me to fine a solution!

i need to change in the server_path the path

es if you use cygwin for openssh

server_path /cygdrive/c/"complete path to data in"/
If the drive is C  put C after cygdrive, and use always the / not

Thanks to all
« Last Edit: January 01, 1970, 01:00:00 AM by Hellraiser » Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #10 on: September 07, 2006, 11:38:48 PM »

You can change the mount prefix in cygwin from "/cygdrive" to "/", running from the cygwin shell window:

mount -s --change-cygdrive-prefix /
« Last Edit: January 01, 1970, 01:00:00 AM by raul » Logged

allentiak
Full Member
***

Karma: 0
Offline Offline

Posts: 27


View Profile
« Reply #11 on: November 13, 2006, 11:15:50 PM »

Quote from: "admin"

i forget to change the user while generated the key

In which OS is the server running? Which user did you use to generate the ssh key for the Windows agent? Which user does run the agent under Windows?
« Last Edit: January 01, 1970, 01:00:00 AM by allentiak » Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #12 on: November 14, 2006, 01:36:21 AM »

Quote from: "allentiak"
Quote from: "admin"

i forget to change the user while generated the key

In which OS is the server running? Which user did you use to generate the ssh key for the Windows agent? Which user does run the agent under Windows?


Hi!

It's supposed the agent runs under windows using the system account. The installer do that. There's also a small bug (solved in the last binary at the SVN) with keys and carriage return at the end of the key file (see http://www.openideas.info/phpbb/viewtopic.php?t=231)

Raúl
« Last Edit: January 01, 1970, 01:00:00 AM by raul » Logged

Makita
Newbie
*

Karma: 0
Offline Offline

Posts: 1


View Profile
« Reply #13 on: December 12, 2006, 03:05:32 PM »

--------------------------------------------------------------------------------
 
Hi, i have installed the agent on windows server but don't comunicate with the Master Server.
the SSH connection work if i try to connect with putty

My Master Server is on Windows 2003 and the server that i want to controll is also win2003.

On Agent machine the service is on, but i don't see a port 22 open to Master server.
the pandora_agent.conf is configured
 
 :D  :lol:  :P  :wink:
« Last Edit: January 01, 1970, 01:00:00 AM by Makita » Logged

allentiak
Full Member
***

Karma: 0
Offline Offline

Posts: 27


View Profile
« Reply #14 on: December 12, 2006, 03:53:06 PM »

Quote from: "Makita"

Hi, i have installed the agent on windows server but don't comunicate with the Master Server.
the SSH connection work if i try to connect with putty

Check the SSH keys generation. Check http://www.openideas.info/phpbb/viewtopic.php?p=646#646
« Last Edit: January 01, 1970, 01:00:00 AM by allentiak » Logged

Pages: [1] 2   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST