Ad Widget

Collapse

Error while executing scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • evandroalves
    Junior Member
    • Mar 2011
    • 9

    #1

    Error while executing scripts

    My server is returning an error message while executing scripts such as ping and my customs scripts as well.

    "fclose(): supplied argument is not a valid stream resource[/var/www/zabbix/api/classes/class.cscript.php:622]
    Erro de Descritor: Connection refused"

    Does anyone hae any idea about what could be the reason of this error?
    thx for now.
  • evandroalves
    Junior Member
    • Mar 2011
    • 9

    #2
    Herer is a printscreen of the problem.
    Attached Files

    Comment

    • mbrassard
      Junior Member
      • Nov 2011
      • 3

      #3
      Hi evan,
      I don't know if you solved this issue but I came accross that with our configuration. I did some script tracing and discovered that, in my situation, the script tried to open a connection to localhost:10051. Since my server was configured to listen only to my real IP and not loopback, I had connection refused. Changing the value of ListenIP in /etc/zabbix/zabbix_server.conf allowed me to successfully use the scripts.

      Hope this helps you.

      Comment

      • 4te
        Junior Member
        • Dec 2011
        • 25

        #4
        Originally posted by mbrassard
        Hi evan,
        I don't know if you solved this issue but I came accross that with our configuration. I did some script tracing and discovered that, in my situation, the script tried to open a connection to localhost:10051. Since my server was configured to listen only to my real IP and not loopback, I had connection refused. Changing the value of ListenIP in /etc/zabbix/zabbix_server.conf allowed me to successfully use the scripts.

        Hope this helps you.
        thx a lot, it helped

        Comment

        • evandroalves
          Junior Member
          • Mar 2011
          • 9

          #5
          I Already solved the problem somedays ago, but i do not remember how rsrs

          Comment

          Working...