graph nan need help!

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
tracky2007
Posts: 34
Joined: Thu Dec 27, 2007 3:07 am

graph nan need help!

Post by tracky2007 »

hi,ererybody:
i make a graph by using a php command to get the value form a txt.
this command worked fine,and output is like:
cacti@Cacti-Monitor:/usr/local> php -q /usr/local/apache/htdocs/cacti/scripts/gcfe_check1.php
ATM:115 POS:65

but in graph ,i only make the ATM correct, POS show nan!
my cacti is 0.87d pla2.4

can somebody help me ???please~~~
Attachments
pos_nan.JPG
pos_nan.JPG (31.41 KiB) Viewed 2255 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see 2nd link of my sig
Reinhard
tracky2007
Posts: 34
Joined: Thu Dec 27, 2007 3:07 am

Post by tracky2007 »

i take a look on cacti.log use debug mode,just found :
SCRIPT: php -q /usr/local/apache/htdocs/cacti/scripts/gcfe_check1.php, output: ATM:69

but on the cacti box,i ran this script command like this:
php -q /usr/local/apache/htdocs/cacti/scripts/gcfe_check1.php
ATM:69 POS:90

why i lose POS:90

please help~~~

thanks alot!
tracky2007
Posts: 34
Joined: Thu Dec 27, 2007 3:07 am

Post by tracky2007 »

:evil: :evil: :evil:

when i change spine to cmd,graph turn right!
so disappointed!

Is this a bug for spine0.87C ???
tracky2007
Posts: 34
Joined: Thu Dec 27, 2007 3:07 am

Post by tracky2007 »

can somebody tell me why spine0.87c fail to get all value but cmd dose???

bug?when should it be repair??
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please make sure that your script spits out values on a SINGLE print statement only. Else, spine will fetch data before the second "print" is executed
Reinhard
tracky2007
Posts: 34
Joined: Thu Dec 27, 2007 3:07 am

Post by tracky2007 »

yes,i am sure.
It's single print.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please tell us about your spine version.
Then, as a test, please print a third parameter with a constant value. A user lately reported, that in this case the second parameter was catched. Just for a verification.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests