Ad Widget

Collapse

About Active Check problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • secooonder
    Junior Member
    • Jul 2021
    • 7

    #1

    About Active Check problem

    Hi

    I want to talk about the problem that I could not solve for about 3 days.
    Zabbix Passive chech is working but Zabbix Active check is not working.


    For Zabbix Server Machine;

    Code:
    [root@glpizabbxsrv ~]# hostname
    glpizabbxsrv.locolhost
    Code:
    [root@glpizabbxsrv ~]# cat /etc/centos-release
    CentOS Stream release 8

    Machine İp : 192.168.3.99

    Zabbix Server version:zabbix_server (Zabbix) 6.0.6 Revision 3f7597e3ea3 27
    Zabbix Agent version:zabbix_server (Zabbix) 6.0.6 Revision 3f7597e3ea3 27

    Zabbix_server.conf ;

    Code:
    ListenPort=10051
    DBName=zabbix
    DBUser=zabbix
    StatsAllowedIP=127.0.0.1
    Frontend views are attachment.


    Zabbix_agent.conf ;

    Code:
    Server=127.0.0.1
    ListenPort=10259
    Hostname=zabbixsrv
    HostMetadataItem=system.uname

    php.conf;

    Code:
    $DB['TYPE'] = 'MYSQL';
    $DB['SERVER'] = 'localhost';
    $DB['PORT'] = '0';
    $DB['DATABASE'] = 'zabbix';
    $DB['USER'] = 'zabbix';
    $ZBX_SERVER_NAME= 'zabbixsrv';
    For Zabbix Client machine;


    Machine İp : 192.168.3.80

    Zabbix Agent version: 6.0.6 Revision 3f7597e3ea3 27


    Zabbix_agent.conf ;

    ##### Passive checks related
    Server=192.168.3.99
    ##### Active checks related
    ServerActive=192.168.3.99
    Hostname=zabbixsrv

    Zabbix_agent.log is;

    Code:
    944:20220712:100429.773 End of add_perf_counter(): SUCCEED
    944:20220712:100429.774 End of init_cpu_collector():SUCCEED
    944:20220712:100429.774 In collect_perfstat()
    944:20220712:100429.776 End of collect_perfstat()
    4016:20220712:100429.798 Empty WMI search result.
    4016:20220712:100429.805 In connect_to_server() [192.168.3.99]:10051 [timeout:3, connection timeout:3]
    4016:20220712:100429.857 In is_ip4() ip:'192.168.3.99'
    4016:20220712:100429.857 End of is_ip4():SUCCEED
    4016:20220712:100429.858 sending [{"request":"active checks","host":"zabbixsrv","host_metadata":"Window s abcdef 10.0.19044 Microsoft Windows 10 Pro x64"}]
    4016:20220712:100429.858 before read
    [B][B]4016:20220712:100429.925 got [{"response":"failed","info":"host [zabbixsrv] not found"}]
    4016:20220712:100429.925 In parse_list_of_checks()
    4016:20220712:100429.926 no active checks on server [192.168.3.99:10051]: host [zabbixsrv] not found[/B]
    4016:20220712:100429.927 End of parse_list_of_checks():FAIL[/B]
    4016:20220712:100429.927 End of refresh_active_checks():SUCCEED
    4016:20220712:100429.928 In process_active_checks() server:'192.168.3.99' port:10051
    4016:20220712:100429.928 End of process_active_checks()
    4016:20220712:100429.929 In get_min_nextcheck()
    4016:20220712:100429.929 End of get_min_nextcheck():-1
    944:20220712:100430.793 In collect_perfstat()
    944:20220712:100430.796 End of collect_perfstat()
    4016:20220712:100430.932 In send_buffer() host:'192.168.3.99' port:10051 entries:0/100
    4016:20220712:100430.934 End of send_buffer():SUCCEED
    944:20220712:100431.800 In collect_perfstat()
    944:20220712:100431.802 End of collect_perfstat()
    4016:20220712:100431.939 In send_buffer() host:'192.168.3.99' port:10051 entries:0/100
    4016:20220712:100431.940 End of send_buffer():SUCCEED
    944:20220712:100432.808 In collect_perfstat()
    944:20220712:100432.810 End of collect_perfstat()
    4016:20220712:100432.948 In send_buffer() host:'192.168.3.99' port:10051 entries:0/100
    4016:20220712:100432.948 End of send_buffer():SUCCEED
    944:20220712:100433.817 In collect_perfstat()
    944:20220712:100433.819 End of collect_perfstat()
    4016:20220712:100433.956 In send_buffer() host:'192.168.3.99' port:10051 entries:0/100
    4016:20220712:100433.957 End of send_buffer():SUCCEED
    944:20220712:100434.824 In collect_perfstat()
    944:20220712:100434.826 End of collect_perfstat()
    4016:20220712:100434.962 In send_buffer() host:'192.168.3.99' port:10051 entries:0/100
    4016:20220712:100434.963 End of send_buffer():SUCCEED

    Zabbig_server.log is;

    cannot send list of active checks to "192.168.3.80": host [zabbixsrv] not found
    Both sides see each other fully, no firewall.


    According to the research I have done on the internet, it talks about having the same hosts on the server side. Could it be related to this?
    The name on the zabbix server php side and the name on the agent side are the same.

    Zabbix Server php side hostname ;
    php.conf;

    Code:
    $DB['TYPE'] = 'MYSQL';
    $DB['SERVER'] = 'localhost';
    $DB['PORT'] = '0';
    $DB['DATABASE'] = 'zabbix';
    $DB['USER'] = 'zabbix';
    [B]$ZBX_SERVER_NAME= 'zabbixsrv';[/B]
    and

    Zabbix_agent.conf ;

    Code:
    Server=127.0.0.1
    ListenPort=10259
    Hostname=zabbixsrv
    HostMetadataItem=system.uname


    On the frontend, it says localhost, as as attachment. Is it about that ?

    what should i change ?

    I'm really going crazy I couldn't find tihs problem for 3 days

    Please help me please

    Thank you very much



    Attached Files
    Last edited by secooonder; 12-07-2022, 09:25.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    The Hostname in the client's zabbix_agentd.conf should be abcdef = the same as configured in your screenshot for 192.168.3.80.

    It was also reported in your agent log: "got [{"response":"failed","info":"host [zabbixsrv] not found"}]"

    Thanks for good information about the situation, btw.

    Markku

    Comment

    • secooonder
      Junior Member
      • Jul 2021
      • 7

      #3
      Hi Markku

      Bingo ! Thank you.

      The problem is solved.

      Thank you very much !!!




      Last edited by secooonder; 12-07-2022, 13:36.

      Comment

      Working...