Ad Widget

Collapse

Using wget to output graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dminstrel
    Member
    • Apr 2005
    • 72

    #1

    Using wget to output graphs

    Hello,

    I want to extract a ZABBIX Graph to display on our intranet.

    Using this:

    wget --user=myusername --password=mypassword "http://my.server.secret.ip/zabbix/chart2.php?graphid=64" -O /var/www/mygraph.png

    I get ERROR: No permissions!

    The user has access to the graph if used to log in the web interface. Did anybody manage to use wget this way?

    Thanks!
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #2
    --user/--pass is only used for session based authentication. The stuff you get when you use apache authentication like htaccess or mod_ldap.

    Zabbix uses script based authentication, so this won't work.

    Comment

    • Tenzer
      Senior Member
      • Nov 2007
      • 316

      #3
      You would instead have to fetch the login page first, and then access the graph afterwards, with the session ID returned when logging in. I don't know if wget can handle it, otherwise you have to make a script to do that.

      Comment

      Working...