Ad Widget

Collapse

SSH Checks are not executing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bignose
    Member
    • Dec 2008
    • 58

    #1

    SSH Checks are not executing

    I want to do an SSH check on a machine that does not have have an agent installed. Its running VMWare ESXi. Its a tiny script that just returns an integer of the percentage of disk space that is used.

    I'm attaching screen shots of my host configuration and the ssh check it self:




    Now, in the list of hosts, the little Z is neither green nor red. In the list of items for that host, the ssh item has a little green checkbox.

    I can't find any trace of this item in the database table history, or in the "latest data"..

    I do know for sure that SSH2 is compiled into my agent, however there is no other mention of ssh in my server logs..

    Help!
  • Davidus
    Senior Member
    • Dec 2010
    • 281

    #2
    Well, first of all I would make sure that script dlsksize.sh is executable by user zabbix (with which you are establishing ssh connection).
    In addition, useful would be to see output of dlsksize.sh script

    Comment

    • bignose
      Member
      • Dec 2008
      • 58

      #3
      The script disksize.sh is executable by user zabbix, I have tested it.

      Here is a sample output

      75

      Comment

      • Davidus
        Senior Member
        • Dec 2010
        • 281

        #4
        make sure that ssh daemons are running on zabbix server

        Comment

        • bignose
          Member
          • Dec 2008
          • 58

          #5
          It is. That is how I connect to the server.

          I was hoping there would be something I could turn on, so I could at least see attempts or failures in the log files.

          Comment

          • Davidus
            Senior Member
            • Dec 2010
            • 281

            #6
            I`m about to run out of suggestions/recommendations
            I would try to do following,
            Instead of dlsksize.sh for external script – echo 123 (if it returns 123 – 90% that issue is in your dlsksize.sh script; if not, problem is definitely on zabbix server side)
            Also try to increase update interval for your item, from 10 seconds to 60.
            In addition, try to setup item with TELNET agent instead of SSH, and let’s see what happen (of course if your zabbix server is compiled with support ofTELNEG agent).
            During activities pay attention on zabbix_server.log
            Last edited by Davidus; 23-04-2012, 14:50.

            Comment

            • bignose
              Member
              • Dec 2008
              • 58

              #7
              Thanks for trying.

              I'm not going to enable telnet. a: I'm not sure its available on ESXi and b: it just reads of poor security.

              I do know 100% that disksize.sh works. Here is proof.

              -bash-4.1$ ssh [email protected] /disksize.sh
              [email protected]'s password:
              73

              However. it just sits there. It doesn't disconnect ssh. I think that must be my problem. The process never ends. I'm going to look into how to address that.

              Comment

              Working...