Answer the question
In order to leave comments, you need to log in
Zabbix script for sending reports by mail?
In search of information on reports in zabbix, I came across this thread on the forum https://www.zabbix.com/forum/showthread.php?t=1531...
I downloaded the script, edited it and the main problem is in these lines
while (my ($id, $ids) = $sth->fetchrow_array())
{
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=Enter" 172.28.249.150/zabbix/index.php`;
$strcomm = `curl -c $cook -b $cook -F "graphid=$ids" -F "period=$period" -F "stime=$stime" -F "width=$width" -F "height= $height" 172.28.249.150/zabbix/charts.php > $p`;
}
}
I run the file, the data ran
Dload Upload Total Spent Left Speed
100 6030 100 5482 100 548 41753 4173 --:--:-- --:--:-- --:--:-- 41847
22 => 1573
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3167 100 3120 100 47 24638 371 --:--:-- --:--:-- --:--:-- 24761
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6029 100 5482 100 547 42865 4277 --:--:-- --:--:-- --:--:-- 43165
files appear in the directory, but when you try to browse, the system writes "the format of this file is not supported ....."
And if you change
$strcomm = `curl -c $cook -b $cook -F "graphid=$ids" -F "period=$period" -F "stime=$stime" -F "width=$width" -F "height=$height" 172.28.249.150/zabbix/chart2.php > $p`;
Pictures are created with the inscription
zabbix has received an incorrect request field "item ids" is mandatory
Where is the error, I tried to run it on Zabbix 3.0
.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question