SSH SCRIPT is not working as excepted

XMLWordPrintable

    • Type: Incident report
    • Resolution: Commercial support required
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Hello Zabbix Team

      i am writing SSH Script. my script contains finding file in Host interface. below is my script. i am expecting result is File not exists but i got result is file exists. if statement is not working in zabbix. Please find the attached screen shots
      Code:

      if [ -e  /export/home/insite/.insiteINFO1 ] #file path
      then
      echo "file exists"
      else 
      echo " File not exits"
      fi
      

      result:

      2017-11-15 15:57:28	
      file exists
      2017-11-15 15:56:57	
      file exists
      2017-11-15 15:56:29	
      file exists
      

        1. SSH.JPG
          45 kB
          Avinash
        2. SSH_Result.JPG
          30 kB
          Avinash
        3. SSH_linux.JPG
          19 kB
          Avinash
        4. ssh_linux results.JPG
          13 kB
          Avinash
        5. Screenshot_1.png
          14 kB
          Olegs Vasiljevs

            Assignee:
            Unassigned
            Reporter:
            Avinash
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: