Linux service monitoring, Zabbix

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • UserParameter:
    raw.githubusercontent.com/cat...
    Template:
    raw.githubusercontent.com/cat...
  • НаукаНаука

Комментарии • 29

  • @user-fv4eq5yj5d
    @user-fv4eq5yj5d 3 года назад

    Your mechanism works well.
    Thank you very much!

  • @aigarskadikis
    @aigarskadikis  4 года назад +1

    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

  • @nishantbahri
    @nishantbahri 3 года назад +1

    how to generate mails when the status of the process is not running?

  • @rethinr2234
    @rethinr2234 4 года назад

    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?

  • @kenroyandfamily
    @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.

  • @linqian871834
    @linqian871834 4 года назад

    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
      @aigarskadikis  4 года назад

      Does "zabbix_get -s host -k services.systemctl" reports some content?
      Try unloading SELinux on the destination station with 'setenforce 0'.

  • @gocanary
    @gocanary 2 года назад

    I get "Cannot send request: wrong discovery rule type." when I execute it. Any ideas ?

  • @frozelio
    @frozelio 3 года назад

    Thanks for the video! In my case, the Zabbix server is showing the status of Not Supported for systems with Debian.

  • @harishkumaru589
    @harishkumaru589 3 года назад +1

    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
      @aigarskadikis  3 года назад +1

      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'.

  • @malikbasha1921
    @malikbasha1921 4 года назад

    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.

  • @neilvassallo
    @neilvassallo 4 года назад

    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
      @aigarskadikis  4 года назад +1

      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
      @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

  • @stephanemoreau846
    @stephanemoreau846 4 года назад

    Hi, have tested this disco but nothing in latest data , I see the discover Item in the Discovery rules , I forget what ?

    • @aigarskadikis
      @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
      @cadugevaerd 4 года назад +1

      I have the same problem. All itens in status dont get Last Value.
      My agent.conf has the same hostname configured in frontend

  • @SinanCakmakcilar
    @SinanCakmakcilar 7 месяцев назад

    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?

  • @Cholasbanoez
    @Cholasbanoez Год назад

    Hi, currently this process currently works on Zabbix 6.0.5 ?

  • @wilmarneto6145
    @wilmarneto6145 4 года назад

    error, Failed to issue method call: Access denied . you can help me?

    • @aigarskadikis
      @aigarskadikis  4 года назад +1

      Try turning off SELinux with command:
      setenforce 0
      Then restart Zabbix agent.

    • @wilmarneto6145
      @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.

  • @wesleyfranklin2234
    @wesleyfranklin2234 2 года назад

    Someone can share the Reprocessing text?

    • @aigarskadikis
      @aigarskadikis  2 года назад

      Check video description and second link. Line 126