jose antonio
14-06-2005, 20:39
TO MONITOR PORT OF SERVERS WINDOWS,
In the CASES OF PROBLEMS TO MONITOR ENVIRONMENT WINDOWS, CAN USE The SHOWN SOLUTION BELOW:
1) - IT USES the TOOL MICROSOFT PortQry
HTTP://SUPPORT.MICROSOFT.COM/KB/832919
2) - MODIFIES SHOWN ARCHIVE ZABBIX_AGENTD BELOW AS.
ListenPort=10000
#
#
LogFile=c:\temp\syslog.log
#
Server=80.155.118.210
#cpu_util5#
#
#proc_info[iexplore.exe:wkset:sum]
proc_info[ZabbixW32.exe:wkset:sum]
UserParameter=portinfo,C:\zabbix\jump.bat
3) create the archive jump.bat as shown to follow.
@echo off
:top
c:\zabbix\portqry -n 100.150.110.108 -e 10090 -p tcp -q
if errorlevel =2 goto filtered
if errorlevel =1 goto failed
if errorlevel =0 goto sucess
goto end
:filtered
@echo 0
goto end
:failed
@echo 0
goto end
:sucess
@echo 1
goto end
:end
4) add in the server zabbix the item to be monitored.
ProtQry possesss other functionalities that can be explored through zabbix. :)
In the CASES OF PROBLEMS TO MONITOR ENVIRONMENT WINDOWS, CAN USE The SHOWN SOLUTION BELOW:
1) - IT USES the TOOL MICROSOFT PortQry
HTTP://SUPPORT.MICROSOFT.COM/KB/832919
2) - MODIFIES SHOWN ARCHIVE ZABBIX_AGENTD BELOW AS.
ListenPort=10000
#
#
LogFile=c:\temp\syslog.log
#
Server=80.155.118.210
#cpu_util5#
#
#proc_info[iexplore.exe:wkset:sum]
proc_info[ZabbixW32.exe:wkset:sum]
UserParameter=portinfo,C:\zabbix\jump.bat
3) create the archive jump.bat as shown to follow.
@echo off
:top
c:\zabbix\portqry -n 100.150.110.108 -e 10090 -p tcp -q
if errorlevel =2 goto filtered
if errorlevel =1 goto failed
if errorlevel =0 goto sucess
goto end
:filtered
@echo 0
goto end
:failed
@echo 0
goto end
:sucess
@echo 1
goto end
:end
4) add in the server zabbix the item to be monitored.
ProtQry possesss other functionalities that can be explored through zabbix. :)