problem with runing netxms agent

Started by yos, February 06, 2013, 11:43:29 AM

Previous topic - Next topic

yos

i have problem whene i run the netxms agent

/usr/local/bin/nxagentd –d
FATAL ERROR: Cannot open log file
Agent initialization failed

Victor Kirhenshtein

Hi!

Check that user you are running agent under has access to log file specified in nxagentd.conf, and that path to the file exists.

Best regards,
Victor

yos

hey
thank i fix it
now when i run this cmd:
/usr/local/bin/netxmsd -d
i get no output is that nrml ?

and thanks for ur help :)

Alex Kirhenshtein

Yes, there should be no output with '-d', it's daemon mode - it should silently detach and go to background.
Before running it as daemon, you can check that config files are good and agent is working properly by running it with '-D3' (3 - debug level, can be from 0 to 9)

yos

i run it :
/usr/local/bin/netxmsd -D3


and this is the result:
Using configuration file "/etc/netxmsd.conf"
wht does it mean ?
thnks in advance

Alex Kirhenshtein

Check that you have "LogFile" parameter in file /etc/netxmsd.conf

yos

yup i have  LogFile = /var/log/netxmsd i n /etc/netxmsd.conf

Alex Kirhenshtein

Just realized – you running "netxmsd", but topic is about agent.

netxmsd - server binary
nxagentd - agent binary

There should be much more output with debug (-D) enabled, please post complete output and attach configuration files.

yos

hi
i fix it thank you  for your help :)

Nikk

I had the same issue, but after following your instructions i managed to get agent running, but then i got 2 fail lines:

[23-Jul-2013 15:33:34.847] Failed to load agent's registry from file /usr/local/var/netxms/registry.dat
[23-Jul-2013 15:33:34.847] Failed to save agent's registry to file /usr/local/var/netxms/registry.dat: No such file or directory

Is that okey? Or how should i fix them?

Victor Kirhenshtein

Hi!

It's not a big problem. Anyway, you can just create directory /usr/local/var/netxms to fix it.

Best regards,
Victor

Nikk


Nikk

And one more question,
how can I get access to write logs into those netxmsd and nxagentd files?
I got them written only in syslog file!

Victor Kirhenshtein

You should add parameter

LogFile = /path/to/log/file

to netxmsd.conf and nxagentd.conf respectively.

Best regards,
Victor