Errors in freebsd

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
dexinou
Posts: 4
Joined: Mon Feb 11, 2008 3:19 am

Errors in freebsd

Post by dexinou »

Hi,
I'have errors when updating graphs in freebsd6.2:

Code: Select all

root@bsd #: /usr/local/bin/php /usr/local/www/html/www/cacti/poller.php
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

are you using the "Local Linux Machine" host template ?

If yes, please use the "ucd/net SNMP" host template, as the first one is made for Linux only.
[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]
dexinou
Posts: 4
Joined: Mon Feb 11, 2008 3:19 am

Post by dexinou »

Hi, I'm using first the local linux machine and I tried both.

With ucd/net snmp:

Code: Select all

[14:13:18][cacti@bsd:~] # /usr/local/bin/php /usr/local/www/html/www/cacti/poller.php
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.02
02/11/2008 02:13:32 PM - SYSTEM STATS: Time:3.1285 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:19 RRDsProcessed:2
With Local linux machine:

Code: Select all

[14:14:47][cacti@bsd:~] # /usr/local/bin/php /usr/local/www/html/www/cacti/poller.php
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
ERROR: Not enough arguments
OK u:0.00 s:0.01 r:1.02
OK u:0.00 s:0.01 r:1.03
OK u:0.00 s:0.01 r:1.03
OK u:0.00 s:0.02 r:1.03
OK u:0.00 s:0.02 r:1.03
OK u:0.00 s:0.02 r:2.14
ERROR: illegal attempt to update using time 1202735758 when last update time is 1202735758 (minimum one second step)
ERROR: illegal attempt to update using time 1202735758 when last update time is 1202735758 (minimum one second step)
ERROR: illegal attempt to update using time 1202735758 when last update time is 1202735758 (minimum one second step)
02/11/2008 02:16:01 PM - SYSTEM STATS: Time:3.2309 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:19 RRDsProcessed:12
ERROR: illegal attempt to update using time 1202735758 when last update time is 1202735758 (minimum one second step)
ERROR: illegal attempt to update using time 1202735758 when last update time is 1202735758 (minimum one second step)
On cacti.log:

Code: Select all

02/11/2008 02:20:16 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid.  Partial Result: 
02/11/2008 02:20:17 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid.  Partial Result: 
02/11/2008 02:20:17 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid.  Partial Result: 1min: 5min: 10
02/11/2008 02:20:17 PM - SYSTEM STATS: Time:14.5400 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:19 RRDsProcessed:22
02/11/2008 02:20:18 PM - SYSTEM STATS: Time:2.1950 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:19 RRDsProcessed:0
02/11/2008 02:20:18 PM - SYSTEM STATS: Time:14.7403 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:19 RRDsProcessed:2
02/11/2008 02:21:09 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid.  Partial Result: 
02/11/2008 02:21:09 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid.  Partial Result: 
02/11/2008 02:21:09 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid.  Partial Result: 1min: 5min: 10
02/11/2008 02:21:10 PM - SYSTEM STATS: Time:2.1220 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:19 RRDsProcessed:12
[EDIT]
All graphs is now ok but memory usage don't work

Code: Select all

cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
Where can I change this path (/proc/meminfo)??
I try to put the freebsd path to meminfo.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

This graph template is meant to be used only with Linux hosts.

Have you tried the "ucd/net SNMP - Memory usage" template ?
[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]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest