the cacti does not work on my freebsd 6.2
Moderators: Developers, Moderators
the cacti does not work on my freebsd 6.2
cd /usr/ports/net/rrdtool
make install clean;
cd /usr/ports/net-mgmt/net-snmp
make install clean;
ee /etc/rc.conf
snmpd_enable="YES"
snmpd_flags="-a /var/run/snmpd.pid"
snmptrapd_enable="YES"
snmptrapd_flags="-a -p /var/run/snmptrapd.pid"
mkdir /usr/local/etc/snmp
ee /usr/local/etc/snmp/snmpd.conf
##############################
syslocation somewhere
syscontact Me <me@somewhere.org>
sysservices 77
rocommunity jxtm
load 12 12 12
###############################
cd /usr/ports/net/cacti
make install clean ;
cd /usr/ports/net/cactid
make install clean;
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 130 to server version: 4.1.15-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database cacti;
Query OK, 1 row affected (0.00 sec)
mysql> grant all on cacti.* to root;
Query OK, 0 rows affected (0.01 sec)
mysql> grant all on cacti.* to root@localhost;
Query OK, 0 rows affected (0.01 sec)
mysql> grant all on cacti.* to cacti;
Query OK, 0 rows affected (0.00 sec)
mysql> grant all on cacti.* to cacti@localhost;
Query OK, 0 rows affected (0.01 sec)
mysql> set password for cacti@localhost=password('****');
Query OK, 0 rows affected (0.00 sec)
mysql> exit
cp -R /usr/local/share/cacti /usr/
cd /usr/cacti
chown -R cacti:cacti rra/
chown -R cacti:cacti log/
cd scripts
chown cacti:cacti *
cd..
mysql -u root -p***** cacti < cacti.sql
ee /usr/cacti/include/db-settings.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "*****";
crontab -u cacti -e
*/5 * * * * /usr/local/bin/php /usr/www/cacti/poller.php
but no graph is created,these are the log:
DsProcessed:5
07/27/2007 04:30:01 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
07/27/2007 04:30:01 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
07/27/2007 04:30:02 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
07/27/2007 04:30:03 PM - SYSTEM STATS: Time:2.0784 Method:cmd.php Processes:2 Threads:N/A Hosts:4 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
make install clean;
cd /usr/ports/net-mgmt/net-snmp
make install clean;
ee /etc/rc.conf
snmpd_enable="YES"
snmpd_flags="-a /var/run/snmpd.pid"
snmptrapd_enable="YES"
snmptrapd_flags="-a -p /var/run/snmptrapd.pid"
mkdir /usr/local/etc/snmp
ee /usr/local/etc/snmp/snmpd.conf
##############################
syslocation somewhere
syscontact Me <me@somewhere.org>
sysservices 77
rocommunity jxtm
load 12 12 12
###############################
cd /usr/ports/net/cacti
make install clean ;
cd /usr/ports/net/cactid
make install clean;
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 130 to server version: 4.1.15-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database cacti;
Query OK, 1 row affected (0.00 sec)
mysql> grant all on cacti.* to root;
Query OK, 0 rows affected (0.01 sec)
mysql> grant all on cacti.* to root@localhost;
Query OK, 0 rows affected (0.01 sec)
mysql> grant all on cacti.* to cacti;
Query OK, 0 rows affected (0.00 sec)
mysql> grant all on cacti.* to cacti@localhost;
Query OK, 0 rows affected (0.01 sec)
mysql> set password for cacti@localhost=password('****');
Query OK, 0 rows affected (0.00 sec)
mysql> exit
cp -R /usr/local/share/cacti /usr/
cd /usr/cacti
chown -R cacti:cacti rra/
chown -R cacti:cacti log/
cd scripts
chown cacti:cacti *
cd..
mysql -u root -p***** cacti < cacti.sql
ee /usr/cacti/include/db-settings.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "*****";
crontab -u cacti -e
*/5 * * * * /usr/local/bin/php /usr/www/cacti/poller.php
but no graph is created,these are the log:
DsProcessed:5
07/27/2007 04:30:01 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
07/27/2007 04:30:01 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
07/27/2007 04:30:02 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
07/27/2007 04:30:03 PM - SYSTEM STATS: Time:2.0784 Method:cmd.php Processes:2 Threads:N/A Hosts:4 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
Last edited by cujxtm on Fri Jul 27, 2007 3:21 am, edited 1 time in total.
crontab -e -u cactiuser
*/5 * * * * /usr/bin/php -q /var/www/html/cacti/poller.php > /var/local/log/poller.log 2>&1
# cat poller.log
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
OK u:0.01 s:0.00 r:0.01
OK u:0.01 s:0.00 r:0.02
OK u:0.01 s:0.00 r:0.02
OK u:0.01 s:0.00 r:0.02
OK u:0.01 s:0.00 r:0.02
07/30/2007 10:35:01 AM - SYSTEM STATS: Time:1.0627 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:5 RRDsProcessed:5
*/5 * * * * /usr/bin/php -q /var/www/html/cacti/poller.php > /var/local/log/poller.log 2>&1
# cat poller.log
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
OK u:0.01 s:0.00 r:0.01
OK u:0.01 s:0.00 r:0.02
OK u:0.01 s:0.00 r:0.02
OK u:0.01 s:0.00 r:0.02
OK u:0.01 s:0.00 r:0.02
07/30/2007 10:35:01 AM - SYSTEM STATS: Time:1.0627 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:5 RRDsProcessed:5
RRDTool Command:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="10.0.0.099-xxzxbangong - Traffic - Ethernet1/0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
AREA:#00CF00:"Inbound" \
GPRINT::LAST:" Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
LINE1:#002A97:"Outbound" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s"
RRDTool Says:
ERROR: parameter '#00CF00' does not represent a number in line AREA:#00CF00:Inbound
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="10.0.0.099-xxzxbangong - Traffic - Ethernet1/0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
AREA:#00CF00:"Inbound" \
GPRINT::LAST:" Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
LINE1:#002A97:"Outbound" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s"
RRDTool Says:
ERROR: parameter '#00CF00' does not represent a number in line AREA:#00CF00:Inbound
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
This one is due to a broken graph/graph template. There's no DEF statement in there referring to any rrd file. Please make sure, the graph/graph template refers to any existing data sourcecujxtm wrote: RRDTool Says:
ERROR: parameter '#00CF00' does not represent a number in line AREA:#00CF00:Inbound
Reinhard
when i changed ucd/net snmp templates,it is ok,but if i use cactid as poller,it return :gandalf wrote:I suppose this one is due to differences between linux flavours and FreeBSD when displaying meminfo. I'd recommend using ucd/net snmp templatescujxtm wrote: # cat poller.log
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
Reinhard
07/31/2007 12:09:53 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
07/31/2007 12:09:53 PM - SYSTEM STATS: Time:292.1384 Method:cactid Processes:1 Threads:10 Hosts:10 HostsPerProcess:10 DataSources:577 RRDsProcessed:0
08/03/2007 10:20:01 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /www/cacti/scripts/linux_memory.pl MemFree:'
08/03/2007 10:20:01 AM - CACTID: Poller[0] Host[1] DS[3] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/03/2007 10:20:01 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /www/cacti/scripts/linux_memory.pl SwapFree:'
08/03/2007 10:20:01 AM - CACTID: Poller[0] Host[1] DS[4] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/03/2007 10:20:11 AM - SYSTEM STATS: Time:10.2786 Method:cactid Processes:2 Threads:1 Hosts:24 HostsPerProcess:12 DataSources:1749 RRDsProcessed:877
the memory usage has graph,but no data is created,why is this ?
08/03/2007 10:20:01 AM - CACTID: Poller[0] Host[1] DS[3] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/03/2007 10:20:01 AM - CACTID: Poller[0] Host[1] ERROR: Empty result [127.0.0.1]: 'perl /www/cacti/scripts/linux_memory.pl SwapFree:'
08/03/2007 10:20:01 AM - CACTID: Poller[0] Host[1] DS[4] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/03/2007 10:20:11 AM - SYSTEM STATS: Time:10.2786 Method:cactid Processes:2 Threads:1 Hosts:24 HostsPerProcess:12 DataSources:1749 RRDsProcessed:877
the memory usage has graph,but no data is created,why is this ?
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
it seems you're using the "Local Linux Machine" host template.
Can you try with the "ucd/net SNMP Host" one ?
it seems you're using the "Local Linux Machine" host template.
Can you try with the "ucd/net SNMP Host" one ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I guess you've made an error, then. Because the ucd/net snmp stat should never call a perl script.cujxtm wrote:it return the same logfmangeant wrote:Hi
it seems you're using the "Local Linux Machine" host template.
Can you try with the "ucd/net SNMP Host" one ?
To resolve the issue with the perl script, you may provide /full/path/to/perl in the Data Input Method; this is required for cactid. Then, please enter cli mode and run php -q rebuild_poller_cache.php to activate that change
Reinhard
Who is online
Users browsing this forum: No registered users and 3 guests