Ad Widget

Collapse

host.unix, applicaton.mysql - fails gethostbyname

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • petepdxcity
    Junior Member
    • Jan 2006
    • 6

    #1

    host.unix, applicaton.mysql - fails gethostbyname

    I just installed/configured b8 on a Fedora FC5 box and two of the
    items under configuration->hosts come back with

    Name IP Port Status Availability Error Show
    Application.MySQL - 15000 Monitored Not available gethostbyname() failed [Unknown host] Items : Triggers : Graphs

    Host.Unix - 10000 Monitored Not available gethostbyname() failed [Unknown host] Items : Triggers : Graphs

    ossinfo.city - 10050 Monitored Unknown Items : Triggers : Graphs

    using agentd vs agent

    changed the two conf files

    zabbix_agentd.conf:ListenIP=172.21.24.17
    zabbix_agentd.conf:Server=ossinfo.city
    zabbix_agentd.conf:Hostname=ossinfo.city
    zabbix_agentd.conf:ServerPort=10051
    zabbix_agentd.conf:ListenPort=10050

    zabbix_server.conf:ListenPort=10051

    ifconfig eth0 | awk -F'[: ]+' '/inet addr/ {print $4}'
    172.21.24.17

    checked dns

    /etc/resolv.conf
    search city
    nameserver 10.80.1.15
    nameserver 10.80.1.30

    dig +short -x 172.21.24.17 @10.80.1.15
    ossinfo.city.
    dig +short -x 172.21.24.17 @10.80.1.30
    ossinfo.city.
    dig +short ossinfo.city @10.80.1.15
    172.21.24.17
    dig +short ossinfo.city @10.80.1.30
    172.21.24.17

    And I have a question. The 'port' value for Application.MySQL, and
    Host.Unix initially was 10000.

    Should this be 10000 or 15000 ? I'm at bit confused at this point.

    /usr/local/bin/zabbix_agent -c /usr/local/etc/zabbix/zabbix_agentd.conf
    /usr/local/bin/zabbix_server -c /usr/local/etc/zabbix/zabbix_server.conf
  • petepdxcity
    Junior Member
    • Jan 2006
    • 6

    #2
    from audit page

    Time User Resource Action Details
    2006.Mar.31 10:36:14 Admin Host Updated Host [Application.MySQL] IP [] Status [0]

    the IP field is empty ..

    -pete

    Comment

    • petepdxcity
      Junior Member
      • Jan 2006
      • 6

      #3
      instead of doing what i should be

      i dug in to the code of pinger.c for a few minutes, changed the IP
      field from NULL (default?) to the IP of the server, changed to port
      to 3306, and it now works.

      my question is now, how should it work with out the IP ?

      Comment

      • petepdxcity
        Junior Member
        • Jan 2006
        • 6

        #4
        or needs the ip address .. i feel so STUPID

        ok back to setting things up

        -pete

        Comment

        Working...