Ad Widget

Collapse

Custom CONFIGURATION OF TRIGGERS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mackhy
    Junior Member
    • Dec 2008
    • 2

    #1

    Custom CONFIGURATION OF TRIGGERS

    Hi
    I would Like to customize the following trigger via the clone option:

    {vision:net.tcp.service[http].last(0)}=0

    to monitor a http service on a custom port of 7777 see netstat below:

    [root@vision ~]# netstat -tnap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 127.0.0.1:7200 0.0.0.0:* LISTEN 8334/httpd
    tcp 0 0 0.0.0.0:7777 0.0.0.0:* LISTEN 8334/httpd
    tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 24145/zabbix_agentd

    As per the Zabbix manual the correct syntax is the following:

    {vision:net.tcp.service[http,,7777].last(0)}=0

    But we get the following error when we try to save the trigger:
    ERROR: Cannot add trigger
    * No such monitored parameter (net.tcp.service[http,,7777]) for host (vision)

    What are we doing wrong, as you can see the http service is running via the netstat output.

    Thanks

    Macky
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    You need to create item net.tcp.service[http,,7777] first before you can use it in a trigger expression.

    Item net.tcp.service[http] will monitor HTTP on port 80.

    Comment

    Working...