Ad Widget

Collapse

zabbix_sender cannot send: Allowed server is [localhost]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • axterics
    Junior Member
    • Jan 2009
    • 12

    #1

    zabbix_sender cannot send: Allowed server is [localhost]

    Code:
    $ /usr/bin/zabbix_sender -z 10.131.244.3 -p 8080 -s myhost  -k mykey -o 1 -vv
    zabbix_sender [18254]: DEBUG: Answer [{
    	"response":"success",
    	"info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000477"}]
    Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000477"
    sent: 1; skipped: 0; total: 1
    $ zabbix_sender -V
    Zabbix Sender v1.8.3 (revision 13928) (16 August 2010)
    Compilation time: Aug 27 2010 06:44:09

    In zabbix_server.log
    Code:
     18397:20101015:174314.721 Process data failed: Connection from [10.131.244.2] rejected. Allowed server is [localhost]
    $ zabbix_server -V
    Zabbix Server v1.8.3 (revision 13928) (16 August 2010)
    Compilation time: Oct 4 2010 12:53:03

    zabbix_server.conf trapper segment
    Code:
    ListenPort=8080
    
    # Source IP address for outgoing connections
    #SourceIP=
    
    # Listen interface for trapper. Trapper will listen on all network interfaces
    # if this parameter is missing.
    
    #ListenIP=
    What is wrong?
    ListenIP is unset so the trapper should reiceve zabbix_sender from everywhere...
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    check item mykey - what do you have in "allowed hosts" field ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • axterics
      Junior Member
      • Jan 2009
      • 12

      #3
      Solved.
      Thanks a lot richlv
      I search only in configuration file. I use zabbix from 1.4 and i read the 1.8 changelog too fast.
      I suggest to insert this note also in the zabbix_sender man page on wiki because the verbose output of zabbix_sender doesn't help.

      Something like: "the type must be 'Zabbix Trapper' and the host must be insert in the allowed hosts field comma separated"

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        that information has now been added to sender manpage and its copy in the manual
        Zabbix 3.0 Network Monitoring book

        Comment

        Working...