Ad Widget

Collapse

Issues with zabbix authorization via perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nikko92
    Junior Member
    • Nov 2016
    • 14

    #1

    Issues with zabbix authorization via perl

    Hello guys!

    Could someone help me pls with this https://www.zabbix.com/forum/showthr...t=cacti+report.

    I have tried to start this script on my zabbix server but i have some issues

    The email are delivered but the screens with the graphs are spoiled http://prnt.sc/d6ank9. I have a feeling that this problem appears due to issues in this part of script :

    {
    if(length($ids) > 2){
    print "$id => $ids\n";
    my $p = "$path/$id.$ids.png";
    my $strcomm = `curl -c $cook -b $cook -d "name=$login&password=$pass&enter&autologin=1& ente r=sign in" zabbix.lgrn.ru/zabbix/index.php 2>/dev/ null`;
    $strcomm = `curl -c $cook -b $cook -f "graphid=$ids" -f "period=$period" -f "stime=$stime" -f "width=$width" -f "height=$height" zabbix.lgrn.ru/zabbix/chart2.php > $p 2>/dev/null`;
    }


    Version of zabbix - 3.0.
    Thanks in advance!
Working...