PDA

View Full Version : Actual win32 agent crashes with keyword >hostname< in conf-file


753713
31-05-2006, 15:46
Problem: We use the latest zabbix 1.1 beta 12 win32 agent and want to check the eventlog-files.
So we use the >hostname< keyword, because to get the eventlog-files
you need this keyword. The eventlog is read line by line, but after a while
the agent crashes! :mad:
The agent works 100% fine when we don´t use the keyword >hostname< without function eventlog.

Agent working perfektly without function eventlog:
server = 10.200.221.38
ServerPort=10051
#Hostname=i1jess011
ListenPort = 10050
LogFile = c:\zabbix_agentd.log
LogLevel = 0x07
TimeOut = 10
MaxCollectorProcessingTime = 500

function eventlog working and Agent crashes
server = 10.200.221.38
ServerPort=10051
Hostname=i1jess011
ListenPort = 10050
LogFile = c:\zabbix_agentd.log
LogLevel = 0x07
TimeOut = 10
MaxCollectorProcessingTime = 500

here the logfile:
C:\>zabbixw32 version
Zabbix Win32 Agent Version 1.1beta12-debug Build of May 31 2006

C:\>zabbixw32 standalone
Using configuration file "C:\zabbix_agentd.conf"
Configuration file OK
[31-May-2006 21:24:53] *************** Log file opened ****************
[31-May-2006 21:24:53] 3308 Debug Info: AddAlias == OK
[31-May-2006 21:24:53] 3436 Debug Info: CollectorThread start
[31-May-2006 21:24:53] 3436 Debug Info: counterPath1
[31-May-2006 21:24:53] 3436 Debug Info: \Prozessor(_Total)\Prozessorzeit (%)
[31-May-2006 21:24:53] 3436 Debug Info: counterPath2
[31-May-2006 21:24:53] 3436 Debug Info: \Prozessor(0)\Prozessorzeit (%)
[31-May-2006 21:24:54] 3436 Debug Info: counterPath3
[31-May-2006 21:24:54] 3436 Debug Info: \System\Prozessor-Warteschlangenlõnge
[31-May-2006 21:24:54] Collector thread initialized successfully
[31-May-2006 21:24:54] [31-May-2006 21:24:54] Zabbix Win32 Agent started

*** Zabbix Win32 agent operational. Press ESC to terminate. ***
[31-May-2006 21:24:54] 240 Debug Info: In ListenerThread()
[31-May-2006 21:24:54] 2228 Debug Info: Out of refresh_metrics()
Information: 1128 : Listen thread is Started.
[31-May-2006 21:24:54] 1128 Debug Info: In AcceptThread()
[31-May-2006 21:24:54] [31-May-2006 21:24:54] Information: 2880 : Listen thread
is Started.
[31-May-2006 21:24:54] 2880 Debug Info: In AcceptThread()
Information: 3284 : Listen thread is Started.
[31-May-2006 21:24:54] [31-May-2006 21:24:54] 3284 Debug Info: In AcceptThread(

[31-May-2006 21:24:54] Information: 1056 : Listen thread is Started.
1056 Debug Info: In AcceptThread()
[31-May-2006 21:24:54] Information: 3748 : Listen thread is Started.
[31-May-2006 21:24:54] [31-May-2006 21:24:54] 3748 Debug Info: In AcceptThread(

Information: 120 : Listen thread is Started.
[31-May-2006 21:24:54] 120 Debug Info: In AcceptThread()
[31-May-2006 21:24:54] [31-May-2006 21:24:54] Information: 3728 : Listen thread
is Started.
3728 Debug Info: In AcceptThread()
[31-May-2006 21:24:54] Information: 3880 : Listen thread is Started.
[31-May-2006 21:24:54] 3880 Debug Info: In AcceptThread()
[31-May-2006 21:24:54] [31-May-2006 21:24:54] Information: 3684 : Listen thread
is Started.
3684 Debug Info: In AcceptThread()
[31-May-2006 21:24:54] [31-May-2006 21:24:54] Information: 3832 : Listen thread
is Started.
3832 Debug Info: In AcceptThread()

any ideas???

Christian

753713
01-06-2006, 09:10
are there any special parameters in the configuration file for monitoring eventlog?

Christian

Alexei
01-06-2006, 10:05
Where do you use the "hostname"? In configuration file? What for?

753713
01-06-2006, 10:31
We want to monitor Windows-Server eventlog-files

without "hostname" we get no data from eventlog -> agent works
with "hostname" we get data from eventlog -> agent crashes after a while


we use it in the configuration-file:
server = 10.200.221.38
ServerPort=10051
#Hostname=i1jess011
ListenPort = 10050
LogFile = c:\zabbix_agentd.log
LogLevel = 0x07
TimeOut = 10
MaxCollectorProcessingTime = 500

we use it in the item configuration:

bbrendon
01-06-2006, 18:29
We use hostname in our configs as well. The hostname we use in the zabbix console is slightly differrent from the system hostname. We also use active only checks. I'm also experiencing some agents crashing.

753713
01-06-2006, 18:38
How can I monitor windows eventlog?

Eventlog monitoring doesn`t work without hostname in the config-file.

Christian

rjk
02-06-2006, 07:58
Hello,

I have got exact the same problem :-(
And I am very interested on a solution for that,
because we are monitoring more than 100 servers
and we need this feature!

May be there is a step-by-step-HowTo to get this
working?!?!

In the old version (-> Beta 1.9) it was working!

Thx for any answers on that!


Friendly regards


Ralf

RohrbaGe
02-06-2006, 09:37
Hi,

on my test system 1.12b running on Suse 9.2 I have exactly the same problem.

After putting in the hostname=xxx in the agent-config file,
setting up the eventlog monitoring and restarting the agent, the agent starts working and monitoring the eventlog for some minutes.

Then the agent died, and only after the remove of the hostname line I`m
able to run the agent again.

The Windows server is a 2003/ UK version, with actual patches.

I´m note sure, if the agent is creating the problem, or if the zabbix_server
has some problems with getting the eventlog only, and this causes the agent to die.


Regards

Gerald

har
02-06-2006, 09:57
Hi,

this really seams to be a problem of beta 12. In former versions we couldnt see this behaviour.

Would be glad to have a solution :)

Thanx

Harald

Alexei
02-06-2006, 10:21
I believe the problem is already fixed in CVS thanks to a patch posted in Forums Patches. Please wait for 1.1.

753713
02-06-2006, 11:51
Thanx,

I have tested the Patch, Funktion is OK :)

Christian

befortin
15-06-2006, 21:52
Hi,

I have the same problem, but only with a Windows NT 4.0 SP6 host. I already got Psapi.dll registered. When I put the hostname in the zabbix_agentd.conf file, the service won't start.

Please see the attached JPEG for more details.