XMLWordPrintable

    • Type: Change Request
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Hello,

      We have a disk controller that we would like to monitor via ssh.

      Here is the SSH command that we normally use:

          ssh manage@disk-controller "set cli-parameters console; show disks" | grep OK | wc -l

       

      In order to replicate the above I have created 2 items.

      The first item would SSH to the disk controller to gather text and filter based on a regular expression.

      Item 1 (SSH Agent)

      key = ssh.run[show_disks]

      regular expression: pattern="OK" and output="\0"

       

      The second item would count the lines from the first item.

      Item 2 (Calculated)

      count(ssh.run[show_disks],60,"OK")

       

      I am not able to get the second item to function.

      What would be the best approach for something like this?

      Thanks

            Assignee:
            Unassigned
            Reporter:
            Jordan Hayes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: