Ad Widget

Collapse

Send message to TCP port

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rring
    Junior Member
    • Feb 2013
    • 1

    #1

    Send message to TCP port

    We would like to create a test which sends a message to a specific IP and TCP port and captures results. This is what we currently have in our existing monitoring system and would like to do the same in Zabbix.
    Example
    IP:10.0.0.0
    Port:5000
    TCP send:
    Dest=DIALOG|DestID=4024|Command=RecCount|MessageNu mber=0|UserCode=1|ID=45|%0D%0A%0D%0A

    Could you please assist with how to accomplish this as a test in Zabbix?

    Thanks
  • alledm
    Member
    • May 2012
    • 84

    #2
    using netcat perhaps?

    Comment

    • neilb
      Member
      • Jan 2013
      • 33

      #3
      how about creating a generic script which receives the IP & ports as predicates and then executes for those values and passes the result back, optionally via a trap?

      example of how i use netstat for different predicates:

      this line sites on local agent:

      UserParameter=netstat.stat[*],(netstat -$1|grep -i $2|wc -l)

      and the item key on the server will vary

      eg
      netstat.stat[ntp,active] or
      netstat.stat[ntp,ESTABLISHED]

      Comment

      Working...