Ad Widget

Collapse

How to return multiple values by a shell scripts?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Oover
    Junior Member
    • Nov 2013
    • 4

    #1

    How to return multiple values by a shell scripts?

    I have write a shell script to monitor the latest 1 minute's squid log,and count how much http code of 500,501,502,503,504 in the log. I want to return the result to zabbix server at once ,as :
    500 120
    501 12
    502 15
    503 4
    504 34
    What should I do to identify the data and add them into 4 items ? Or is there any other method ?
  • Speedfight
    Member
    • May 2007
    • 67

    #2
    what you can do is create a Flexible UserParameter and make 5 items,

    Last edited by Speedfight; 12-05-2014, 12:27.

    Comment

    Working...