Ad Widget

Collapse

How to use (and edit?) SSH.RUN item key?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EricWebb
    Junior Member
    • Jan 2006
    • 11

    #1

    How to use (and edit?) SSH.RUN item key?

    Zabbix 1.8.1 on Slackware Linux 13.0

    I've created an ssh.run item, but don't understand how to set up the parameters. The 2nd parameter is <ip>, but I don't want to plug in a specific IP, I want this to be inherited from the host the item is templated for. Can someone give me an example string that they've used?

    Also, now that I've created the item, I'm having trouble going back in and making changes. The text field for the key appears to be uneditable. I tried disabling the item, but no go. What am I missing? (I've had this same issue on other key types -- does one really have to delete and recreate in order to make changes to an item?)

    Thanks,
    Eric
  • zabbix_zen
    Senior Member
    • Jul 2009
    • 426

    #2
    1)
    Don't know how to help you here

    2)
    That's expected if you create any Item/Trigger as a Template and next try to modify it for a specific Host(you can only clone it from this point onward).
    To modify something on a Template level, you must go to Configuration | Hosts and selecting Templates from the upper right dropdown list.

    Clicking your desired Template will allow to modify its Items.

    Comment

    • EricWebb
      Junior Member
      • Jan 2006
      • 11

      #3
      Resolved..

      Figured it out...

      The online manual doesn't do a great job of indicating that parameters inside angle brackets <> are "optional". In most syntax descriptions I've ever seen, optional arguments are specified in square brackets [] instead. Of course, I realize that this would be confusing given that Zabbix key syntax requires square brackets to separate the key and parameter values. But mentioning this distinction in the manual would help!

      Also, it would be beneficial to add a few lines to the ssh.run description indicating what the default values for unspecified parameters are.

      Comment

      • agentguerry
        Member
        • Jul 2009
        • 45

        #4
        could you post up an example of your item you created for ssh agent?

        I'm wanting to do the same also, but the docs are weak on how to use.

        Thank you!

        Comment

        • bashman
          Senior Member
          • Dec 2009
          • 432

          #5
          Code:
          Host: <hostname>
          Description: testing ssh
          Type: SSH agent
          Key: ssh[<IP>] 	
          Authentication method: Password
          User name: root
          Public key file:                
          Private key file:
          Passphrase: ********* 	
          Executed script: ls -l /tmp
          Type of information: Text 	
          Update interval (in sec): 700
          But if I choose public key for authentication method and I add to the public key file this rute: /home/zabbix/.ssh/id_rsa.pub and for private key file this rute: /home/zabbix/.ssh/id_rsa, it won't work.

          I also edited the zabbix_server.conf file:
          Code:
          ### Option: SSHKeyLocation
          #       Location of public keys for SSH checks
          #
          # Mandatory: no
          # Default:
          #SSHKeyLocation=/etc/zabbix/sshKeys
          SSHKeyLocation=/home/zabbix/.ssh
          What am I doing worng?. Can anybody help me please?.
          978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

          Comment

          • bashman
            Senior Member
            • Dec 2009
            • 432

            #6
            I got it to work with public key:

            Public key file: id_rsa.pub instead of the full path
            Private key file: id_rsa instead of the full path
            978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

            Comment

            Working...