Hi,
I'm trying to get a simple UserParameter up and running on a windows box.
I am able to monitor most items from the win32 template (server and agent are running and communicating).
I defined a UserParameter in zabbix_agentd.conf
UserParameter=bridge[test],C:\bridge.bat
At this point the batch file is just simply spitting out a value:
ECHO 18
ECHO.
EXIT
I've tried w/ and w/o the ECHO. (echo's a new line) and w/ and w/o the EXIT (terminates command window).
With my log level set all the up on the agent I get:
[08-Feb-2005 16:16:36] Log file opened
[08-Feb-2005 16:16:37] Collector thread initialized successfully
[08-Feb-2005 16:16:37] Zabbix Win32 Agent started
[08-Feb-2005 16:16:43] Processing took more then 100 milliseconds (230 milliseconds)
[08-Feb-2005 16:32:00] Processing took more then 100 milliseconds (161 milliseconds)
I've set my Timeout=30 on the agent.
And in my zabbix_server.log I see:
002695:20050208:163203 Host [9.17.38.79] will be checked after [60] seconds
002695:20050208:163403 Got empty string from [9.17.38.79] IP [] Parameter [bridge[test]]
002695:20050208:163403 Assuming that agent dropped connection because of access permissions
002695:20050208:163403 Got empty string from [9.17.38.79] IP [] Parameter [bridge[test]]
002695:20050208:163403 Assuming that agent dropped connection because of access permissions
002695:20050208:163403 Got empty string from [9.17.38.79] IP [] Parameter [bridge[test]]
002695:20050208:163403 Assuming that agent dropped connection because of access permissions
002695:20050208:163403 Host [9.17.38.79] will be checked after [60] seconds
The GUI also never gets a value for this Item.
And the host shows an error:
Got empty string from [9.17.38.79] IP [] Parameter [bridge[test]]
And sets Availability to Not Available.
I assume I'm either not defining the call to the batch file properly or it's timing out (which is hard to believe given the simplicity of the script).
I'm trying to get a simple UserParameter up and running on a windows box.
I am able to monitor most items from the win32 template (server and agent are running and communicating).
I defined a UserParameter in zabbix_agentd.conf
UserParameter=bridge[test],C:\bridge.bat
At this point the batch file is just simply spitting out a value:
ECHO 18
ECHO.
EXIT
I've tried w/ and w/o the ECHO. (echo's a new line) and w/ and w/o the EXIT (terminates command window).
With my log level set all the up on the agent I get:
[08-Feb-2005 16:16:36] Log file opened
[08-Feb-2005 16:16:37] Collector thread initialized successfully
[08-Feb-2005 16:16:37] Zabbix Win32 Agent started
[08-Feb-2005 16:16:43] Processing took more then 100 milliseconds (230 milliseconds)
[08-Feb-2005 16:32:00] Processing took more then 100 milliseconds (161 milliseconds)
I've set my Timeout=30 on the agent.
And in my zabbix_server.log I see:
002695:20050208:163203 Host [9.17.38.79] will be checked after [60] seconds
002695:20050208:163403 Got empty string from [9.17.38.79] IP [] Parameter [bridge[test]]
002695:20050208:163403 Assuming that agent dropped connection because of access permissions
002695:20050208:163403 Got empty string from [9.17.38.79] IP [] Parameter [bridge[test]]
002695:20050208:163403 Assuming that agent dropped connection because of access permissions
002695:20050208:163403 Got empty string from [9.17.38.79] IP [] Parameter [bridge[test]]
002695:20050208:163403 Assuming that agent dropped connection because of access permissions
002695:20050208:163403 Host [9.17.38.79] will be checked after [60] seconds
The GUI also never gets a value for this Item.
And the host shows an error:
Got empty string from [9.17.38.79] IP [] Parameter [bridge[test]]
And sets Availability to Not Available.
I assume I'm either not defining the call to the batch file properly or it's timing out (which is hard to believe given the simplicity of the script).
Comment