Ad Widget

Collapse

Calculated item with "count"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lazareus
    Member
    • Sep 2015
    • 39

    #1

    Calculated item with "count"

    Hi all,


    I need some help.

    I try to create an item that returns the number of connections of a specific application using this command : #netstat -paunt | grep sshd | wc -l
    (Where "sshd" is the name of my application)

    I know that i have to use the item type "Calculated" but i don't know what key i have to write and what is the syntax of the "count" formula.


    Can someone help me please?
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #2
    I suspect you want an agent user parameter check, not a calculation. The expression goes in the agent setup with a key name, and the key goes into the item definition or template as an "agent" check.

    Comment

    • Lazareus
      Member
      • Sep 2015
      • 39

      #3
      Hi Linwood,


      Thanks for your answer because it helped me. I didn't think about userparameter so i tried it and it works very well !


      Thanks for you help

      Comment

      Working...