Link to zipped executable file>>> . I need to ensure one windows host always see other host's specific port and we already had zabbix. I was searching solutions and found one with telnet but it was very complex dos programming to get back number besides telnet would be security breach. That was secure system and I need to ensure packets could always be processed, so to monitor server availability from zabbix server was not solution because host was in DMZ and it needs permanent connection to another server in internet. From unix it is pretty simply to write shell application I annoyed to our programmer about my problem and he did a brilliant solution, he just made little application which returns 1 if remote port is available or 0 if it is not. Utility is simple- just write remote host address space and port. It returns 1 after 3 seconds, some servers won't accept connection at once so I think it is a great tool. From command line you write
CheckPort.exe 127.0.0.1 7778
1
CheckPort.exe 127.0.0.1 8080
0
CheckPort.exe 127.0.0.1 7778
1
CheckPort.exe 127.0.0.1 8080
0
uncompress it and place in the zabbix directory in your windows machine
Now add Active monitoring String to your Zabbix agent conf file where ServerAvailable2 is unique name in zabbix items and 1.2.3.4 is IP address and 8080 is port of remote server you want to monitor connection to.
Now add parameter to zabbix server host items and triggers.Active checks must be enabled on host.
You can call Item and Units whatever you like. Data type decimal works well. Check type Zabbix active. Key name must fit name in host conf file.
ServerAvailable2 is unique item on Zabbix server, Offiss is host name where agent is located.
Link to zipped executable file.>>>
You can call Item and Units whatever you like. Data type decimal works well. Check type Zabbix active. Key name must fit name in host conf file.
Then you can add triger. For me it is 30 minutes Service Not Available - 1800 seconds in picture.
Link to zipped executable file.>>>
You can check your proxy as well as your home page.
Nav komentāru:
Ierakstīt komentāru