Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bash Zabbix脚本输出到条形图_Bash_Zabbix - Fatal编程技术网

Bash Zabbix脚本输出到条形图

Bash Zabbix脚本输出到条形图,bash,zabbix,Bash,Zabbix,我有一个包含许多子目录的目录,每个子目录中有许多文件。文件名包含时间戳 我有一个脚本,可以显示每天的文件量 find /mnt/foos/ | grep .foo$ | awk '{ split($0, a, "-"); print a[3]"-"a[4]"-"a[5]}' | sort -rn | uniq -c 会回来的 19 2021-05-21 73 2021-05-20 78 2021-05-1

我有一个包含许多子目录的目录,每个子目录中有许多文件。文件名包含时间戳

我有一个脚本,可以显示每天的文件量

find /mnt/foos/ | grep .foo$ | awk '{ split($0, a, "-"); print a[3]"-"a[4]"-"a[5]}' | sort -rn | uniq -c
会回来的

     19 2021-05-21
     73 2021-05-20
     78 2021-05-19
     79 2021-05-18
     71 2021-05-17
     76 2021-05-16
     73 2021-05-15
     73 2021-05-14
     75 2021-05-13
     67 2021-05-12
     65 2021-05-11
     15 2021-05-10
     28 2021-05-09
     26 2021-05-08
     11 2021-05-07
      3 2021-05-06
如何将输出转换为zabbix中的条形图,显示X轴上的天数和y轴上的文件计数