Hi all,
I wrote a php script the get data from XML, one parameter i get back is output bytes but the system that i monitor (Wowza) gives it back as number*E*number for example 2.132345E7 that equal to 2.132345*10^7.
My question is if Cacti knows how to translate this to number and work with this format. I cant change the format.
Thanks
Odd Data
Moderators: Developers, Moderators
Re: Odd Data
Converting string into numbers:
- http://www.php.net/manual/en/language.t ... conversion
But I think, Cacti might be able to handle such values without conversion... (please try!)
- http://www.php.net/manual/en/language.t ... conversion
Code: Select all
% php -r '$a = "2.132345E7" +0; echo $a;'
21323450
Re: Odd Data
noname thanks,
It works and you was right, Cacti able to handle such values without conversion.
It works and you was right, Cacti able to handle such values without conversion.
Who is online
Users browsing this forum: No registered users and 3 guests