Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Error running reportit

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
wtb1



Joined: 03 May 2007
Posts: 47

PostPosted: Thu Aug 23, 2007 8:58 am    Post subject: Error running reportit Reply with quote

This is my first shot at running reportit. I am investigating if it is something I want to implement in our current monitoring. I have set up a test report to get the avg bandwidth used on a router for one interface. When I run the report I get errors saying :

Notice: A non well formed numeric value encountered in C:\xampp\htdocs\cacti\plugins\reportit\lib_int\funct_runtime.php on line 383

Notice: A non well formed numeric value encountered in C:\xampp\htdocs\cacti\plugins\reportit\lib_int\funct_runtime.php on line 389

Notice: A non well formed numeric value encountered in C:\xampp\htdocs\cacti\plugins\reportit\lib_int\funct_runtime.php on line 383

Notice: A non well formed numeric value encountered in C:\xampp\htdocs\cacti\plugins\reportit\lib_int\funct_runtime.php on line 389

But when I click View I can see the data.

Any thought?
Back to top
browniebraun
Cacti User


Joined: 13 Jun 2006
Posts: 341
Location: Cologne, Germany

PostPosted: Thu Aug 23, 2007 12:34 pm    Post subject: Reply with quote

Hi!
IMO you've selected the wrong section. This should be posted under Plugin General. Maybe one of the administrators can move it.

Okay, I think you're using v0.4.2 and the type of connection is set to "RRDtool Cacti". Then it should be an issue with the transformation process, so please try this by adding the following line to function "strtoNAN" contained in function_runtime.php
Code:

old:
if($nan == 'nan') $value = reportit_NAN;

new:
if($nan == 'nan') $value = reportit_NAN;
else $value = doubleval($value);



Best regards
-Andreas-
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group