Ad Widget

Collapse

External Access to Zabbix Page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mobym
    Junior Member
    • Apr 2017
    • 3

    #1

    External Access to Zabbix Page

    Hii All,
    I was looking for an answer,
    I need to access toptriggers.php?filter_from=20170426000000&filter_ till=20170427000000&severities[0]=1&severities[2]=1&severities[4]=1&severities[1]=1&severities[3]=1&severities[5]=1&filter_from_year=2017&filter_from_month=04&filt er_from_day=26&filter_from_hour=00&filter_from_min ute=00&filter_till_year=2017&filter_till_month=04& filter_till_day=27&filter_till_hour=00&filter_till _minute=00&filter_set=Filter of Zabbix page externally,in order to create a pdf of filter result of yesterday report.
    Is there any way to pass user and password as an argument in the link?
    Other solution?

    Anyone have idea?
    Thank you.
    Reply With Quote
    Last edited by mobym; 03-05-2017, 08:23.
  • Luiz Antonio Oliveira
    Member
    • Feb 2007
    • 49

    #2
    Use api next to your report in php, or put the guest user in the admin group, which I do not advise.

    But it may be that the code below helps you

    wget --save-cookies=z.coo -4 --keep-session-cookies -O - -S --post-data='name=Admin&password=PASSWORD@@&enter=Sign in' 'http://seu-zabbix.com/zabbix/index.php?login=1'

    wget -4 --load-cookies=z.coo -O resultgraph22.png 'http://seu-zabbix.com/zabbix/toptriggers.php?filter_from=20170426000000&filter_ till=20170427000000&severities[0]=1&severities[2]=1&severities[4]=1&severities[1]=1&severities[3]=1&severities[5]=1&filter_from_year=2017&filter_from_month=04&fil t er_from_day=26&filter_from_hour=00&filter_from_min ute=00&filter_till_year=2017&filter_till_month=04& filter_till_day=27&filter_till_hour=00&filter_till _minute=00&filter_set=

    Comment

    • mobym
      Junior Member
      • Apr 2017
      • 3

      #3
      Thanks Luiz .It worked for me!!

      Comment

      Working...