Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I am having a similar problem. I wanted something that would return my call data from and asterisk box. I only want the Extension, and the call duration from a mysql file on that machine. What am I missing, any help would be welcomed at it may keep me from beating my head on the keyboard continuously!
Topic split off as it tackles a very different problem.
Please change the script in a way to spit out the whole line of output in a single print statement.
R.
Thanks for the help! This is what I came up with. Now after I add the data (as a script/command) and graph template, create my graph it shows the normal "RRD Does not Exist" (excitement ) for 1 minute then I get the broken picture icon (head desk bang ). Again, any help is great. I am struggling to understand and hope it gets easier as I learn.
It is only pulling info for the last minute. I dont want or need any Ext- over 3 digits. I have added a return""; line under the print""; that I saw someone else using in their code hoping that would fix it. (no luck there). The 11111111111 are edited client phone numbers.
If this was the return I got back to cacti, I would not want to graph any of this run. The Ext- XX:0's I dont need to know they were on for 0 seconds, and the Ext- 2000:37 is a queue. Maybe nice in the future to have that data but not necessary yet.
I am afraid not, I get the dreaded broken picture link on my graph page. Will continue to debug and see what I can figure out. Here is what the php looks like now.