Ad Widget

Collapse

noumber of lines output - UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jwalczuk
    Junior Member
    • Jun 2017
    • 1

    #1

    noumber of lines output - UserParameter

    Hi and hello.

    This is my first post here.
    I'd like to point out that I'm new to ZABBIX, so please be gentle to me.

    I wanted to get number of established tcp connections on particular port.
    In my file with netstat UserParameter I wrote:
    Code:
    UserParameter=netstat.est.conn,netstat -an | awk '/8080/ && /ESTABLISHED/ { n++ }; END { print n+0 }'
    But on my output I'm receiving:
    Code:
    $ sbin/zabbix_agentd -t netstat.est.conn
    netstat.est.conn                              [m|ZBX_NOTSUPPORTED]
    I'm running zabbix agents on Solaris SPARC platform BTW.
    Could anyone point me n right direction or help me solve this problem?

    Best regards,
    Jan
Working...