Ad Widget

Collapse

Agent Checks to zabbix.com

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grabber
    Member
    • Mar 2005
    • 85

    #1

    Agent Checks to zabbix.com

    Hi,

    Is there any way to disable the zabbix_agentd checks going to www.zabbix.com or to at least configure these to a.n. other address?

    when I do zabbix_agent -p

    I get ..


    web.page.get[www.zabbix.com,,80] [t|HTTP/1.1 200 OK^M
    Date: Fri, 29 Sep 2006 11:19:28 GMT^M
    Server: Apache/2.0.54 (Unix) mod_perl/1.99_17 Perl/v5.8.8 mod_ssl/2.0.54 OpenSSL/0.9.7e-p1 FrontPage/5.0.2.2635 PHP/4.4.2 mod_jk/1.2.15 mod_python/3.1.4 Python/2.2.2^M
    X-Powered-By: PHP/4.4.2^M
    .
    .
    .

    </tr>
    </table>

    </BODY>
    </HTML>

    ^M
    0^M
    ^M
    ]
    web.page.perf[www.zabbix.com,,80] [d|0.786143]
    web.page.regexp[www.zabbix.com,,80] [m|ZBX_NOTSUPPORTED]
    cpu[idle1] [m|ZBX_NOTSUPPORTED]

    but there does'nt seem to be any way to configure this.

    Thanks

    Ian
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Yes, but you will have to change the zabbix_agentd.c source code to do it. Around line 460, there is an entry that looks like;
    Code:
    get_http_page("www.zabbix.com", "", 80, buffer, 100*1024);
    This performs the check, you can change this to another site, or you can comment out this line and the one two lines down that looks like;
    Code:
    printf("Back [%d] [%s]\n", strlen(buffer), buffer);
    and recompile the agent. Unfortunately, these appear to be hard coded into the system right now.
    Unofficial Zabbix Developer

    Comment

    Working...