Ad Widget

Collapse

use script on label (network maps)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #16
    Originally posted by Spoonman
    Ok, I changed the permissions.
    If I look now in Items, it says "timeout while executing a shell script".
    And still "not supported".
    Try to check how long time it takes to run the script from command line
    Code:
    [zabbix]#time show_wan.sh
    After that - if the time is more than 3 sec and less than 30 sec - you can increase the value of Timeout=30 in configuration file /etc/zabbix/zabbix_server.conf
    Don't forget to restart the server after changing any setting in config file.

    OK?
    Sincerely yours,
    Aleksey

    Comment

    • Spoonman
      Member
      • Aug 2013
      • 45

      #17
      The good news : the Item is now supported
      The time out is increased to 30sec.

      Now the label is blanc, no message, no value, nothing....

      I also added "sudo" to curl ifconfig.me in the script.
      Now it reads : sudo curl ifconfig.me
      Is that good or ?

      Now I'm trying different Type of information : Numeric, Text, Character.
      -edit- Numeric and Character do not work.
      Last edited by Spoonman; 06-06-2014, 19:58.

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #18
        When you start that script from command line - Do you have any output?
        How it looks like?
        Do you mind to show us the typical output of command curl ifconfig.me and what part of the information you need?
        Sincerely yours,
        Aleksey

        Comment

        • Spoonman
          Member
          • Aug 2013
          • 45

          #19
          Okay........good news : it works now !

          Type of information = Text.
          (you have to have patience before the first value appears, I was too impatient...)

          Oh, and adding "sudo" to the scriptline is not good, I removed it.

          Thank you so much for your help, Aleksey !
          Last edited by Spoonman; 06-06-2014, 20:31.

          Comment

          • aib
            Senior Member
            • Jan 2014
            • 1615

            #20
            Good luck!

            Best wishes with growing up your Zabbix tree
            Sincerely yours,
            Aleksey

            Comment

            Working...