We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a service unit file named foo-service.service, the zbx_service_discovery.sh will not cut the filename crorrectly.
foo-service.service
zbx_service_discovery.sh
awk -F'.service' '{print $1}') Fix: awk -F'\\.service' '{print $1}')
awk -F'.service' '{print $1}')
awk -F'\\.service' '{print $1}')
The text was updated successfully, but these errors were encountered:
If you have a service that has @ in its name, and it's not in the service_discovery_whitelist, zabbix creates the item. eg [email protected]
@
service_discovery_whitelist
[email protected]
If you have a service that the name matches with other service names, but are outside the service_discovery_whitelist, zabbix creates the item.
ex.: cat service_discovery_whitelist Result servicename|ssh|etc
cat service_discovery_whitelist
servicename|ssh|etc
But you have a service with the name = servicename_test.service Zabbix creates servicename_test item.
servicename_test.service
servicename_test
Edit zbx_service_discovery.sh
service_list=$(echo "$service_list" | grep -E -f /etc/zabbix/service_discovery_whitelist)
Fix:
service_list=$(echo "$service_list" | grep -Eiowf /etc/zabbix/service_discovery_whitelist)
Sorry, something went wrong.
No branches or pull requests
If a service unit file named
foo-service.service
, thezbx_service_discovery.sh
will not cut the filename crorrectly.awk -F'.service' '{print $1}')
Fix:
awk -F'\\.service' '{print $1}')
The text was updated successfully, but these errors were encountered: