thelan / ceph-zabbix

Zabbix plugin for Ceph monitoring
66 stars 81 forks source link

i found some wrong in your shell. #11

Closed walrus1967 closed 7 years ago

walrus1967 commented 8 years ago

HI, i found your ceph monitor by zabbix, and i think it have some problems. When zabbix try to get the monitor item's , if have 10 item, your shell will run 10 times. And your shell will get all the info by ceph. So when zabbix 10s get 10 item, your shell will run 100 times, and ceph's command will run **times. I think you can run the shell one time by other way like crontab , and it get the info once to tmpfile, zabbix parameters can set grep “item" in tmpfile, i think this way is health to system (to zabbix and system).