Ad Widget

Collapse

External Script Output Array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cronuscronus
    Junior Member
    • Jan 2010
    • 29

    #1

    External Script Output Array

    Hello. I have a script that returns an array of data as its output.

    One line of the array looks like:
    278425.hostname.com 1.0 14.0 14.0 acct0 Unknown 604800.0 user0

    I would like to use Zabbix to capture and store each column, and each row from the external script.

    In the past I've successfully used an external check to capture a single value; however, I'm not sure how to capture an array of values.

    Does anybody know the best way to store this sort of data in Zabbix?
  • hirschnf
    Member
    • Jan 2010
    • 56

    #2
    perhaps you can build a loop in the external script like foreach... and then use zabbix_sender to send the data to zabbix?

    Comment

    • Davidus
      Senior Member
      • Dec 2010
      • 281

      #3
      Strongly agree!!!
      I`m doing pretty much exactly what have sugested hirschnf and are satisfied with results.

      Comment

      • cronuscronus
        Junior Member
        • Jan 2010
        • 29

        #4
        It's been about a year since I last worked with Zabbix. I forgot all about zabbix_sender! Good call.

        Comment

        • faisalvt
          Junior Member
          • Sep 2015
          • 4

          #5
          Store external script output

          Hello dears i don't understand how exactly to accomplish it. I have created one telnet script which will gather and produce a huge output from a remote host with characters and numbers. i need to store these data into a particular item and monitor as well. please help me if you already accomplished.

          Comment

          Working...