Starting with 4.4 and using Zabbix Agent 2 there is a native functionality to cover this out from the box. See item keys: systemd.unit.discovery and systemd.unit.info under: www.zabbix.com/documentation/4.4/manual/config/items/itemtypes/zabbix_agent
Hi, I am seeing results for zabbix get but not able to see the key in the list , please check whether this supports ubuntu 18.04. If yes what am i doing wrong?
I wasn't seeing any data and I found the "permission denied" error when looking at discovery rules. "setenforce 0" on host fixed that, but obviously that is not a good solution.
I have tried this template. However, there is a problem with custom services monitoring. I can use "zabbix_agent-s host -k systemctl.status[custom service]" to query the custom service data from monitored host, but auto-discovery cannot discover custom service. Any workaround for that? thanks.
When i run zabbix_get command it shows me an error not found inspite of installing all its dependencies like mysql,pgsql and sqlite3. Not sure what's wrong
thank you for comment. to have 'zabbix_get' utility on system, kindly install 'zabbix-get' package. on ubuntu/debian run 'apt install zabbix-get', on centos/rhel run 'yum install zabbix-get'.
Hi Aigars : I am not able to see the values for 3rd and 4th pre-processing steps 3. \1;dead=0;running=1;exited=2;start=3;Result: exit-code=4; 4. (dead|running|exited|start|Result: exit-code.*) if i am trying with this, I am getting the error "Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "" can you please help in getting proper inputs field for me to complete this.
do you create the service_monitoring_via_systemctl.conf on zabbix server?.... can you explain further each steps please as I did not manage to make it work
Thank you for comment. As the file is stored in '/etc/zabbix/zabbix_agentd.d' directory, this means, it is an agent related configuration part only. In case you want to monitor a remote system you need to populate the file on the remote machine and make sure 'Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf' directive is enabled on a remote machine.
@@aigarskadikis thanks for your prompt reply.... I am getting the items from the zabbix agent (active) but no data... even when I try check now I am prompted with this error (Details Cannot send request Cannot send request: wrong item type. [items.php:1325 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CTask->create() → CTask->validateCreate() → CApiService::exception() in include/classes/api/services/CTask.php:147]) Should I check something else? thanks
Hi Stephane, My guess is that the agent configuration is not installed properly (The 'Hostname=' in zabbix_agentd.conf does not match agent 'Host name' configured in frontend). As a workaround, you can try to switch disco agent type from "Zabbix agent (active)" to "Zabbix agent".
Hi, Thanks for the template, it works great, it just makes you wait a little too long in the zabbix server queue. I think this will be a problem, is it possible to reduce the queue waiting time?
@@aigarskadikis the computer is Ubuntu, selinux is disabled, with the command zabbix_agentd it works, but with zabbix_get, which is to collect the information for this error, I don't know what else to configure, but I'm sure it is permission.
Your mechanism works well.
Thank you very much!
Starting with 4.4 and using Zabbix Agent 2 there is a native functionality to cover this out from the box. See item keys: systemd.unit.discovery and systemd.unit.info under:
www.zabbix.com/documentation/4.4/manual/config/items/itemtypes/zabbix_agent
how to generate mails when the status of the process is not running?
Hi, I am seeing results for zabbix get but not able to see the key in the list , please check whether this supports ubuntu 18.04. If yes what am i doing wrong?
I wasn't seeing any data and I found the "permission denied" error when looking at discovery rules. "setenforce 0" on host fixed that, but obviously that is not a good solution.
I have tried this template. However, there is a problem with custom services monitoring. I can use "zabbix_agent-s host -k systemctl.status[custom service]" to query the custom service data from monitored host, but auto-discovery cannot discover custom service. Any workaround for that? thanks.
Does "zabbix_get -s host -k services.systemctl" reports some content?
Try unloading SELinux on the destination station with 'setenforce 0'.
I get "Cannot send request: wrong discovery rule type." when I execute it. Any ideas ?
Thanks for the video! In my case, the Zabbix server is showing the status of Not Supported for systems with Debian.
For RedHat??
When i run zabbix_get command it shows me an error not found inspite of installing all its dependencies like mysql,pgsql and sqlite3. Not sure what's wrong
thank you for comment.
to have 'zabbix_get' utility on system, kindly install 'zabbix-get' package.
on ubuntu/debian run 'apt install zabbix-get',
on centos/rhel run 'yum install zabbix-get'.
Hi Aigars : I am not able to see the values for 3rd and 4th pre-processing steps
3. \1;dead=0;running=1;exited=2;start=3;Result: exit-code=4;
4. (dead|running|exited|start|Result: exit-code.*)
if i am trying with this, I am getting the error "Value of type "string" is not suitable for value type "Numeric (unsigned)". Value ""
can you please help in getting proper inputs field for me to complete this.
Have you found a solution?
do you create the service_monitoring_via_systemctl.conf on zabbix server?.... can you explain further each steps please as I did not manage to make it work
Thank you for comment.
As the file is stored in '/etc/zabbix/zabbix_agentd.d' directory, this means, it is an agent related configuration part only. In case you want to monitor a remote system you need to populate the file on the remote machine and make sure 'Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf' directive is enabled on a remote machine.
@@aigarskadikis thanks for your prompt reply.... I am getting the items from the zabbix agent (active) but no data... even when I try check now I am prompted with this error (Details Cannot send request
Cannot send request: wrong item type. [items.php:1325 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CTask->create() → CTask->validateCreate() → CApiService::exception() in include/classes/api/services/CTask.php:147])
Should I check something else? thanks
Hi, have tested this disco but nothing in latest data , I see the discover Item in the Discovery rules , I forget what ?
Hi Stephane,
My guess is that the agent configuration is not installed properly (The 'Hostname=' in zabbix_agentd.conf does not match agent 'Host name' configured in frontend).
As a workaround, you can try to switch disco agent type from "Zabbix agent (active)" to "Zabbix agent".
I have the same problem. All itens in status dont get Last Value.
My agent.conf has the same hostname configured in frontend
Hi,
Thanks for the template, it works great, it just makes you wait a little too long in the zabbix server queue. I think this will be a problem, is it possible to reduce the queue waiting time?
Hi, currently this process currently works on Zabbix 6.0.5 ?
error, Failed to issue method call: Access denied . you can help me?
Try turning off SELinux with command:
setenforce 0
Then restart Zabbix agent.
@@aigarskadikis the computer is Ubuntu, selinux is disabled, with the command zabbix_agentd it works, but with zabbix_get, which is to collect the information for this error, I don't know what else to configure, but I'm sure it is permission.
Someone can share the Reprocessing text?
Check video description and second link. Line 126