


The following method will return the number of lines in the file where the specified character appears. Go to the front-end web page, on the relevant host Create a monitoring itemYes, the key value uses the defined key, as here mykey.Information type is specified according to the actual situationĬount how many rows in a file are matched? zabbix_agentd.d]# cat /etc/zabbix/script/test.sh UserParameter = mykey,/etc/zabbix/script/test.sh Then go to the directory and create a new configuration file. Include=/etc/zabbix/zabbix_agentd.d/*.conf $0 indicates a script command.įirst go to the configuration file, open include The script that needs to be executed, the parameters in the key correspond to $1 to $9, a total of 9 parameters. In order to test if the Zabbix agent running on windows is reachable from the Zabbix server-side, use telnet or netcat command on Zabbix server against windows agent IP-Port and a Connected message should appear. indicates that multiple parameters can be passed inside Allow Zabbix Agent on Windows Firewall 10.
