Ad Widget

Collapse

Calculated item for sum of multiple port checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tuxkumar
    Junior Member
    • Dec 2012
    • 2

    #1

    Calculated item for sum of multiple port checks

    Hi,

    I am setting up a multiple services monitoring with zabbix 2.0.3 in CentOS. The requirement is to monitor the services availability by connecting to the port it is listening to and send alerts when each port fails. I have created multiple items with net.tcp.port[,<portno>] and it works fine. It collects data correctly and sends alerts when each service is down.

    Now we want to create an item that monitors the total number of working services. So i created a calculated item with the following formula:
    last("net.tcp.port[,<port1>]")+last("net.tcp.port[<port2]")+...+last("net.tcp.port[portN]"). But the item isn't getting updated at all. Item status under the host is in Not Supported state. Is there a way to fix this?

    Thanks,
    SK
  • tuxkumar
    Junior Member
    • Dec 2012
    • 2

    #2
    Found and fixed the issue

    Comma, preceding port number, was missing in some of the items . I realized that just after posting to the forum. Now the calculated item is collecting data correctly.

    Formula: last("net.tcp.port[,<port1>]")+last("net.tcp.port[,<port2]")+...+last("net.tcp.port[,portN]")

    ---
    SK

    Comment

    Working...