DS Name not found leads to (-1.#J) graphs

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
dbertrand
Posts: 1
Joined: Fri Apr 02, 2004 3:08 pm

DS Name not found leads to (-1.#J) graphs

Post by dbertrand »

Hello :)

I have an odd issue that seems to appear only on my win32 installation of cacti 0.8.5. I have never encountered this issue before on other linux installs that i have made.

I have these scripts that i run with the hostname as the first argument and that will return me some values. These values are stored in a rrd that contains multiple ds entry. The output of the scripts is, for instance, the following:

Code: Select all

RequestBytesInTotal:0 RequestBytesOutTotal:0
The data input method that i created that calls this script uses <hostname> as the only input field and the output fields name are as follow:

RequestBytesInTotal 0 (Not In Use) RequestBytesInTotal Selected
RequestBytesOutTotal 0 (Not In Use) RequestBytesOutTotal Selected

The data template that i associated with this data input method is quite simple. I created two ds in it that are linked to each output fields.

However, when i run the cmd.php, here's what i get:

Code: Select all

C:\Documents and Settings\Administrator>C:\PHP\php.exe e:\cacti\cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.4

MULTI command: e:\cacti\scripts\ASP\Bandwidth.pl websec1, output: RequestBytesInTotal:0 RequestBytesOutTotal:0
MULTI expansion: found fieldid: 115, found rrdname: , value: 0
MULTI expansion: found fieldid: 116, found rrdname: ASPReqBytesOutTotal, value:0
MULTI command: e:\cacti\scripts\ASP\Requests.pl websec1, output: RequestsTimedOut:0 RequestsTotal:0
MULTI expansion: found fieldid: 113, found rrdname: , value: 0
MULTI expansion: found fieldid: 112, found rrdname: asp_req_total, value: 0
update e:\cacti/rra/websec1_aspreqbytesouttotal_109.rrd --template :ASPReqBytesOutTotal N:0:0
ERROR: unknown DS name ''
update e:\cacti/rra/websec1_asp_req_total_108.rrd --template :asp_req_total N:0:0
ERROR: unknown DS name ''
time: 2
As you can see, it seems that even though the output is returned correctly from the script, the first line of "MULTI expansion" shows that the rrdname is not found. Meaning that instead of the expected "found rrdname: ASPReqBytesInTotal, value: 0", i get "found rrdname: ,value: 0". The datasource name being empty, the subsequent update of the datasource will fail as it tries to update a datasource named ''

The graphs that result from this are pretty interesting, as you can see below (value is always -1.#J).

Has anyone ever encountered this? Anyone has any idea about the potential reason of this issue?

Any help or pointer in the right direction would be immensely appreciated.

Thanks a lot!

Denis
Attachments
Nice :)
Nice :)
untitled.PNG (4.24 KiB) Viewed 1150 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests