Ad Widget

Collapse

Various issues with fresh install of 1.4.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lavrinenko
    Junior Member
    • Aug 2007
    • 4

    #1

    Various issues with fresh install of 1.4.1

    Greetings!

    I'm new to Zabbix, currently using nagios+mrtg but wish to migrate to all-in-one solution (like zabbix is). My net is mostly of cisco/SNMP agents, and I can't get some things work right. First, I created some templates (for dialup access servers, for voip gateways, routers and switches). I'm able to get some snmp data of my interest (I don't need all of the SNMPv2 template so I created my own from scratch). But I'm stuck with basic things like telnet/ssh/h323hostcall tcp ports check. One of my templates is set as shown on screenshot attached. This template is used by several gateways with identical HW/SW configuration. but I get constant errors in log saying that:
    Code:
    1365:20070807:081356 Host [gw05.xxx.xxx]: first network error, wait for 15 seconds
    1365:20070807:081356 Parameter [net.tcp.port[,23]] will be checked after 240 seconds on host [gw05.xxx.xxx]
    1359:20070807:081356 Get value from agent failed. Error: Cannot connect to [192.168.12.5:0] [Connection refused]
    
    1363:20070807:081416 Host [gw05.xxx.xxx]: first network error, wait for 15 seconds
    1363:20070807:081416 Parameter [net.tcp.port[,1720]] will be checked after 240 seconds on host [gw05.xxx.xxx]
    1361:20070807:081416 Get value from agent failed. Error: Cannot connect to [192.168.12.5:0] [Connection refused]
    These errors repeat for each gateway configured with this template, only hostnames and IPs differ in log. Zabbix server is binded on 192.168.12.8, my ACLs on gateways have no restrictions, and I can manually telnet to that ports (1720 and 23) from the zabbix-server shell.
    Whenever I try to switch from "ZABBIX agent"+net.tcp.port[] to "Simple check"+tcp,port - I get error "Incorrect key format 'key_name[param1,param2,...]'". If I change key to tcp[23], I can save item, but within the exact host this item shown as "Not supported".

    PS: actual IP subnet is changed in this post to 192.168.12
    Any ideas?
    Attached Files
  • Lavrinenko
    Junior Member
    • Aug 2007
    • 4

    #2
    Well, this is a bug, in PHP form that does not allow entering "tcp,23" and "tcp,1720". Just "tcp" or "23" is fine, but comma does the shit. I had to switch both h323hostcall and telnet to simple checks, assign them key as 1720 and 23 respectively, and finally modify EVERY host that uses that template from phpPgAdmin (table "items", update "23" to "tcp,23" and so on).

    Comment

    • Lavrinenko
      Junior Member
      • Aug 2007
      • 4

      #3
      BTW, what if net.tcp.service[] would accept first parameter as string that describes well-known service in /etc/services? Zabbix could 'grep' /etc/services for ^service XXX/tcp and get port automatically. Like creating item "HTTPS service is running" with net.tcp.service[https], then zabbix does:
      Code:
      grep ^https /etc/services | grep tcp | awk '{print $2}' | cut -d/ -f1
      Developers, think about it...

      Comment

      Working...