Missing data (system load, memory) on OS X install

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

Moderators: Developers, Moderators

Post Reply
rev_maynard3
Posts: 3
Joined: Mon May 01, 2006 11:42 am

Missing data (system load, memory) on OS X install

Post by rev_maynard3 »

Hi All,

I'm running:
OS X Server 10.4.6
Apache 1.3
MySQL 4.1.13a
PHP 4.4.1
RRDTool 1.2.12


I've got Cacti up and running and as of last night it is generating SOME graphs. I get logged on users and # of processes, but so far no system load or memory usage. RRDTool is creating the images, but they're "empty".

I did a little investigation and when I run the "poller" command at the CLI I get the following:

Code: Select all

# php /Library/WebServer/Documents/cacti/poller.php
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
OK u:0.01 s:0.02 r:0.02
OK u:0.01 s:0.02 r:0.02
ERROR: Not enough arguments
OK u:0.01 s:0.02 r:0.02
OK u:0.01 s:0.02 r:0.02
05/01/2006 09:56:04 AM - SYSTEM STATS: Time:1.2582 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5

Indeed /proc/meminfo doesn't exist... I think that's a Linux thing? and I'm not sure what the "ERROR: Not enough arguments" is referring to... Can anyone help?


Thanks!
rev_maynard3
Posts: 3
Joined: Mon May 01, 2006 11:42 am

RE: Missing data (system load, memory) on OS X install

Post by rev_maynard3 »

I should have also included the following:

Code: Select all

# php /Library/WebServer/Documents/cacti/cmd.php
cat: /proc/meminfo: No such file or directory
05/01/2006 10:15:32 AM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid.  Partial Result: 
cat: /proc/meminfo: No such file or directory
05/01/2006 10:15:32 AM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid.  Partial Result: 
05/01/2006 10:15:32 AM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid.  Partial Result: 1min: 5min: 10
05/01/2006 10:15:33 AM - CMDPHP: Poller[0] Time: 0.3630 s, Theads: N/A, Hosts: 1

Similar to the poller.php output, but gives a little more information...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Missing data (system load, memory) on OS X install

Post by gandalf »

rev_maynard3 wrote:... but so far no system load or memory usage. RRDTool is creating the images, but they're "empty".
...
Indeed /proc/meminfo doesn't exist... I think that's a Linux thing? and I'm not sure what the "ERROR: Not enough arguments" is referring to... Can anyone help?
These templates rely on /proc/meminfo (memory usage). System load depends on support for UCDAVIS MIB OIDs. Please try a

Code: Select all

snmpwalk -c <community> -v 1 <target> ucdavis
If this works, cacti should get data.
Reinhard
rev_maynard3
Posts: 3
Joined: Mon May 01, 2006 11:42 am

Re: Missing data (system load, memory) on OS X install

Post by rev_maynard3 »

Although I believe that I've configured SNMP correctly, and likewise I confirmed that snmpd is running and listening (on UDP port 161), I received the following when I ran your suggested query:

Code: Select all

# snmpwalk -c snmp_readwrite -v 1 127.0.0.1 ucdavis
Timeout: No Response from 127.0.0.1
I also tried this with "-v 2c" just to test... same result.


Any additional help would be greatly appreciated.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

As a linux user, I don't know that much about OS X and its SNMP implementation. Perhaps there's a net-snmp port? Then, please try

Code: Select all

snmpwalk -c <community> -v 1 <target> version
UCD-SNMP-MIB::versionIndex.0 = INTEGER: 1
UCD-SNMP-MIB::versionTag.0 = STRING: 5.1.2
UCD-SNMP-MIB::versionDate.0 = STRING: $Date: 2004/02/04 11:25:20 $
UCD-SNMP-MIB::versionCDate.0 = STRING: Mon May  1 21:52:18 2006
UCD-SNMP-MIB::versionIdent.0 = STRING: $Id: versioninfo.c,v 5.1.4.1 2004/02/04 11:25:20 slif Exp $
UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: "'--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--datadir=/usr/share' '--includedir=/usr/include/net-snmp' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-static' '--enable-shared' '--with-cflags=-O2 -g -pipe -m32 -march=i386 -mtune=pentium4' '--with-sys-location=Unknown' '--with-logfile=/var/log/snmpd.log' '--with-persistent-directory=/var/net-snmp' '--with-mib-modules=host agentx smux ucd-snmp/lmSensors' '--with-libwrap=/usr/lib' '--sysconfdir=/etc' '--enable-ipv6' '--enable-ucd-snmp-compatibility' '--with-pic' '--with-sys-contact=root@localhost' 'CFLAGS=-O2 -g -pipe -m32 -march=i386 -mtune=pentium4' 'build_alias=i386-redhat-linux' 'host_alias=i386-redhat-linux' 'target_alias=i386-redhat-linux-gnu'"
UCD-SNMP-MIB::versionClearCache.0 = INTEGER: 0
UCD-SNMP-MIB::versionUpdateConfig.0 = INTEGER: 0
UCD-SNMP-MIB::versionRestartAgent.0 = INTEGER: 0
UCD-SNMP-MIB::versionSavePersistentData.0 = INTEGER: 0
UCD-SNMP-MIB::versionDoDebugging.0 = INTEGER: 0
Support of ucdavis MIB is the task of the SNMP agent implementation for your OS
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests