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
@nishantbahri3 жыл бұрын
how to generate mails when the status of the process is not running?
@kenroyandfamily Жыл бұрын
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.
@gocanary2 жыл бұрын
I get "Cannot send request: wrong discovery rule type." when I execute it. Any ideas ?
@rethinr22344 жыл бұрын
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?
@linqian8718344 жыл бұрын
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.
@aigarskadikis
4 жыл бұрын
Does "zabbix_get -s host -k services.systemctl" reports some content? Try unloading SELinux on the destination station with 'setenforce 0'.
@frozelio3 жыл бұрын
Thanks for the video! In my case, the Zabbix server is showing the status of Not Supported for systems with Debian.
@yugared86
3 жыл бұрын
For RedHat??
@SinanCakmakcilar7 ай бұрын
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?
@harishkumaru5893 жыл бұрын
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
@aigarskadikis
3 жыл бұрын
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'.
@Cholasbanoez Жыл бұрын
Hi, currently this process currently works on Zabbix 6.0.5 ?
@malikbasha19214 жыл бұрын
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.
@FranciscoBarrento
Жыл бұрын
Have you found a solution?
@neilvassallo4 жыл бұрын
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
@aigarskadikis
4 жыл бұрын
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.
@neilvassallo
4 жыл бұрын
@@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
@stephanemoreau8464 жыл бұрын
Hi, have tested this disco but nothing in latest data , I see the discover Item in the Discovery rules , I forget what ?
@aigarskadikis
4 жыл бұрын
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".
@cadugevaerd
4 жыл бұрын
I have the same problem. All itens in status dont get Last Value. My agent.conf has the same hostname configured in frontend
@wilmarneto61454 жыл бұрын
error, Failed to issue method call: Access denied . you can help me?
@aigarskadikis
4 жыл бұрын
Try turning off SELinux with command: setenforce 0 Then restart Zabbix agent.
@wilmarneto6145
4 жыл бұрын
@@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.
Пікірлер: 29
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?
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 get "Cannot send request: wrong discovery rule type." when I execute it. Any ideas ?
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 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.
@aigarskadikis
4 жыл бұрын
Does "zabbix_get -s host -k services.systemctl" reports some content? Try unloading SELinux on the destination station with 'setenforce 0'.
Thanks for the video! In my case, the Zabbix server is showing the status of Not Supported for systems with Debian.
@yugared86
3 жыл бұрын
For RedHat??
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?
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
@aigarskadikis
3 жыл бұрын
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, currently this process currently works on Zabbix 6.0.5 ?
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.
@FranciscoBarrento
Жыл бұрын
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
@aigarskadikis
4 жыл бұрын
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.
@neilvassallo
4 жыл бұрын
@@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 ?
@aigarskadikis
4 жыл бұрын
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".
@cadugevaerd
4 жыл бұрын
I have the same problem. All itens in status dont get Last Value. My agent.conf has the same hostname configured in frontend
error, Failed to issue method call: Access denied . you can help me?
@aigarskadikis
4 жыл бұрын
Try turning off SELinux with command: setenforce 0 Then restart Zabbix agent.
@wilmarneto6145
4 жыл бұрын
@@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?
@aigarskadikis
2 жыл бұрын
Check video description and second link. Line 126