Availability

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

Moderators: Developers, Moderators

Post Reply
juliop
Cacti User
Posts: 55
Joined: Fri Dec 11, 2009 7:40 am
Location: Argentina

Availability

Post by juliop »

Hi,

I need to make an availability report for some of my devices but what i have (i think) in console --> devices --> " availability column " is the availability from when device was created and what im looking for is the availability in a month or in a week. Is there a way to calculate this ?
Maybe with a plugin?

Thanks in advance!

Julio


Pd: i hope you can understand my english. :oops:
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Availability

Post by victorantunes »

Well, hi

there's this: http://forums.cacti.net/viewtopic.php?f=19&t=49983

and this: http://forums.cacti.net/viewtopic.php?f=12&t=49604


one is a plugin, the other is a graph template. Both have the same goal.
juliop
Cacti User
Posts: 55
Joined: Fri Dec 11, 2009 7:40 am
Location: Argentina

Re: Availability

Post by juliop »

Victor,

Thank you for the quick reply. Availreport is exactly what i was looking for!!!!!

When i was trying to generate the report, after choosing device and date when i click " ok " nothing shows up. So i turned to the plugin page and i realized that i have to install a rrdtool module in php.

I have an error trying to install it and dont know how to fix it, could you plz help me ?


ingenieria@mgmt-ede-01:/usr/include/php5/ext/rrdtool$ sudo ./configure --with-rrdtool=/usr/ --with-php-config=/usr/bin/php-config
ingenieria@mgmt-ede-01:/usr/include/php5/ext/rrdtool$ sudo make install


i get the following error:

/usr/include/php5/ext/rrdtool/rrdtool.c:52:2: warning: excess elements in scalar initializer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:52:2: warning: (near initialization for 'rrdtool_functions[9]') [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:52:2: warning: excess elements in scalar initializer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:52:2: warning: (near initialization for 'rrdtool_functions[9]') [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:58:2: warning: initialization from incompatible pointer type [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:58:2: warning: (near initialization for 'rrdtool_module_entry.functions') [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c: In function 'zif_rrd_graph':
/usr/include/php5/ext/rrdtool/rrdtool.c:125:2: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:126:2: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:139:12: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:139:19: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:145:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:305:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:146:3: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:146:3: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:146:3: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:304:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:148:3: warning: passing argument 1 of 'convert_to_array' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:310:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:149:18: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:149:25: error: request for member 'ht' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:149:12: warning: assignment from incompatible pointer type [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:151:16: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:151:23: error: request for member 'lval' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:151:8: warning: assignment makes integer from pointer without a cast [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:156:13: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:156:13: error: request for member 'str' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:156:13: error: request for member 'val' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:156:3: warning: passing argument 1 of '_estrdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:160:4: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:167:14: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:167:21: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:168:5: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:168:5: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:168:5: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:304:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:170:14: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:170:14: error: request for member 'str' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:170:14: error: request for member 'val' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:170:4: warning: passing argument 1 of '_estrdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c: In function 'zif_rrd_fetch':
/usr/include/php5/ext/rrdtool/rrdtool.c:224:2: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:225:2: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:226:2: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:241:12: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:241:19: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:247:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:305:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:248:3: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:248:3: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:248:3: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:304:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:250:3: warning: passing argument 1 of 'convert_to_array' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:310:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:251:18: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:251:25: error: request for member 'ht' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:251:12: warning: assignment from incompatible pointer type [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:253:16: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:253:23: error: request for member 'lval' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:253:8: warning: assignment makes integer from pointer without a cast [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:258:13: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:258:13: error: request for member 'str' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:258:13: error: request for member 'val' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:258:3: warning: passing argument 1 of '_estrdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:262:4: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:269:14: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:269:21: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:270:5: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:270:5: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:270:5: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:304:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:272:14: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:272:14: error: request for member 'str' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:272:14: error: request for member 'val' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:272:4: warning: passing argument 1 of '_estrdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c: In function 'zif_rrd_update':
/usr/include/php5/ext/rrdtool/rrdtool.c:369:2: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:378:3: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:378:3: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:378:3: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:304:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:379:3: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:379:3: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:379:3: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:304:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:385:13: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:385:13: error: request for member 'str' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:385:13: error: request for member 'val' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:385:3: warning: passing argument 1 of '_estrdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:386:13: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:386:13: error: request for member 'str' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:386:13: error: request for member 'val' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:386:3: warning: passing argument 1 of '_estrdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c: In function 'zif_rrd_last':
/usr/include/php5/ext/rrdtool/rrdtool.c:412:2: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:422:3: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:422:3: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:422:3: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:304:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:426:13: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:426:13: error: request for member 'str' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:426:13: error: request for member 'val' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:426:3: warning: passing argument 1 of '_estrdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c: In function 'zif_rrd_create':
/usr/include/php5/ext/rrdtool/rrdtool.c:447:2: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:448:2: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:459:12: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:459:19: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:465:3: warning: passing argument 1 of 'convert_to_long' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:305:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:466:3: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:466:3: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:466:3: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:304:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:468:3: warning: passing argument 1 of 'convert_to_array' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:310:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:469:18: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:469:25: error: request for member 'ht' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:469:12: warning: assignment from incompatible pointer type [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:472:16: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:472:23: error: request for member 'lval' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:472:8: warning: assignment makes integer from pointer without a cast [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:477:13: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:477:13: error: request for member 'str' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:477:13: error: request for member 'val' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:477:3: warning: passing argument 1 of '_estrdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:481:4: error: unknown type name 'pval'
/usr/include/php5/ext/rrdtool/rrdtool.c:488:14: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:488:21: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:489:5: error: request for member 'type' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:489:5: warning: comparison between pointer and integer [enabled by default]
/usr/include/php5/ext/rrdtool/rrdtool.c:489:5: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:826:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_operators.h:304:15: note: expected 'struct zval *' but argument is of type 'int *'
/usr/include/php5/ext/rrdtool/rrdtool.c:491:14: error: request for member 'value' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:491:14: error: request for member 'str' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:491:14: error: request for member 'val' in something not a structure or union
/usr/include/php5/ext/rrdtool/rrdtool.c:491:4: warning: passing argument 1 of '_estrdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
make: *** [rrdtool.lo] Error 1






Im running ubuntu server 12x
Cacti Version 0.8.8a
Cacti OS unix
SNMP Version NET-SNMP version: 5.4.3
RRDTool Version RRDTool 1.4.x
PHP Version 5.4.6-1ubuntu1.2
PHP OS Linux
PHP uname Linux mgmt-ede-01 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64
PHP SNMP Installed
max_execution_time 30
memory_limit 128M
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Availability

Post by victorantunes »

Most likely you'll need to install a few dependencies first. Try going through this tutorial and tell me how it works:

http://blog.webdir.bg/install-php-rrdtool-ubuntu/
juliop
Cacti User
Posts: 55
Joined: Fri Dec 11, 2009 7:40 am
Location: Argentina

Re: Availability

Post by juliop »

Victor,

I follow the guide as you told me:

sudo apt-get install rrdtool librrd-dev php5-dev gcc binutils

ingenieria@mgmt-ede-01:$ sudo apt-get install rrdtool librrd-dev php5-dev gcc binutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
binutils is already the newest version.
gcc is already the newest version.
librrd-dev is already the newest version.
rrdtool is already the newest version.
php5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 74 not upgraded.

ingenieria@mgmt-ede-01:/usr/include/php5/ext/rrdtool$ sudo phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525

ingenieria@mgmt-ede-01:/usr/include/php5/ext/rrdtool$ sudo ./configure --with-php-config=/usr/bin/php-config --with-rrdtool=/usr/

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works...
yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20100525
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for rrdtool support... yes, shared
checking if rrdtool specified path is valid... yes
checking for rrd_create in -lrrd... yes
checking rrdtool version... 1.2.x
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) nawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands

But when i did:

ingenieria@mgmt-ede-01:/usr/include/php5/ext/rrdtool$ sudo make

got same error again :cry: :x

Any ideas? it would be awesome to get this plugin working

Tnks in advance.
juliop
Cacti User
Posts: 55
Joined: Fri Dec 11, 2009 7:40 am
Location: Argentina

Re: Availability

Post by juliop »

I tried to install it in another ubuntu server that i have with only a cacti-syslog and it works. Could be some package installed that makes this ./configure to fail? Dont know what to do. The server is HP Z10 Xeon and OS Ubuntu 64bits... maybe something with the architecture?

All ideas will be apreciated
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Availability

Post by victorantunes »

Sorry for the delay. I've been busy quite busy lately.

Yeah, that error does sound strange. I don't have an Ubuntu box, and haven't had those errors.

I could try to setup up a box over the weekend and reproduce your situation, but I'm not sure I'll be able to find the same errors.
juliop
Cacti User
Posts: 55
Joined: Fri Dec 11, 2009 7:40 am
Location: Argentina

Re: Availability

Post by juliop »

Victor,

Tnhks for all. I will keep searching maybe i will find something. Its strange that i installed it in another ubuntu and it goes perfectly. Im afraid to touch too much the server because im polling all enterprise routers and dont want to crash cacti.

Tnks
juliop
Cacti User
Posts: 55
Joined: Fri Dec 11, 2009 7:40 am
Location: Argentina

Re: Availability

Post by juliop »

I found a diference in the server where is working and the other one:

when i execute ./configure

Server where works:
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop

Server where is not working:

checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop

Maybe something with this ?

EDIT:

I could solve that problem adding:

./configure --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu --with-php-config=/usr/bin/php-config --with-rrdtool=/usr/

but error continues when i try "make":

...
...
In file included from /usr/include/php5/Zend/zend.h:237:0,
from /usr/include/php5/main/php.h:35,
from /usr/include/php5/ext/rrdtool/rrdtool.c:26:
/usr/include/php5/Zend/zend_alloc.h:65:16: note: expected 'const char *' but argument is of type 'int *'
make: *** [rrdtool.lo] Error 1
jaket91
Posts: 1
Joined: Tue Mar 25, 2014 6:40 pm

Re: Availability

Post by jaket91 »

Hi juliop,

Did you ever figure out why you were getting all the errors when trying to compile php RRDTool?

I am getting the exact same error messages when I try it on 2 fresh installs of Debian. I have attempted to 'make' on both i386 and amd64 versions of Debian and it fails on both.

Any help appreciated.

Regards
Jake Turner
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests