Ad Widget

Collapse

[zabbix-1.6] net.tcp.listen bug.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bcheese
    Junior Member
    • Jun 2006
    • 26

    #1

    [zabbix-1.6] net.tcp.listen bug.

    Hi Guys,

    I've just come across a bug when using net.tcp.listen to see if a particular listener is active. The problem occurs where it is not bound to all local addresses but rather to a specific one.

    The command being executed by the agent to see if something is listening on TCP port 4100 is
    Code:
    "netstat -an | grep '*.4100' | wc -l"
    This then looking for a service installed to listen on only one interface will always return 0 which is not correct.

    If the command was to be changed to
    Code:
    "netstat -an | grep '.4100 ' | grep LISTEN | wc -l"
    would alleviate this problem and would cover both situations. Perhaps a further capability to be considered would be to specify the IP address to look on with '*' as an option for all/any interfaces.

    Now, I do realise (and I am considering it) that a short term work around would be to add UserParameters for each of the needed services.

    Cheers,
    Brian.
    Last edited by bcheese; 21-11-2008, 03:29. Reason: correct TCP port in description
Working...