Post installation configuration SNMP ERROR and php problem

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

Moderators: Developers, Moderators

Post Reply
cacti_novice
Posts: 6
Joined: Fri May 25, 2007 10:12 am

Post installation configuration SNMP ERROR and php problem

Post by cacti_novice »

Hi,

I've just installed cacti-0.8.6 with all the necessary libs, and i can't get it graph any information.

After reading lots of topics in the forum, i didn't find out the answer to my problems.

I'm actually having two visible troubles:
  • SNMP error for my localhost
  • can't execute poller.php manually to see what's wrong:

Code: Select all

php poller.php 
sh: line 1: /usr/local/php/bin/rrdtool: No such file or directory
Here, i can't figure out why is he looking for rrdtool in this path !

Thanks for any help from you !!
cacti_novice
Posts: 6
Joined: Fri May 25, 2007 10:12 am

Post by cacti_novice »

Obviously, there's a problem with the paths... executing cmd.php gives this output:

Code: Select all

php cmd.php 
sh: line 1: /usr/local/php/bin/snmpgetnext: No such file or directory
05/25/2007 04:10:02 PM - CMDPHP: Poller[0] Time: 0.0101 s, Theads: N/A, Hosts: 1
About the snmp configuration, the execution of snmpwalk as follows gives back a lot of information.

Code: Select all

snmpwalk -cpublic -v1 localhost
SNMPv2-MIB::sysDescr.0 = STRING: Linux xxxxxx 2.4.21-20.EL #1 Wed Aug 18 20:58:25 EDT 2004 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (49105) 0:08:11.05
SNMPv2-MIB::sysContact.0 = STRING: "root@someone.com"
SNMPv2-MIB::sysName.0 = STRING: xxxxxx
SNMPv2-MIB::sysLocation.0 = STRING: Something
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (4) 0:00:00.04
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
......
These are further details about my problem :) hope that will help you to help me :)
cacti_novice
Posts: 6
Joined: Fri May 25, 2007 10:12 am

Post by cacti_novice »

Some more information:

Switched to debug mode, i have the following output:

php poller.php:

Code: Select all

05/28/2007 03:46:05 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /usr/local/apache/htdocs/cacti/cmd.php 0 4]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
....
php cmd.php:

Code: Select all

php cmd.php 
sh: line 1: /usr/local/php/bin/snmpgetnext: No such file or directory
05/28/2007 03:46:35 PM - CMDPHP: Poller[0] Host[4] SNMP: Host did not respond to SNMP
05/28/2007 03:46:35 PM - CMDPHP: Poller[0] Time: 0.0148 s, Theads: N/A, Hosts: 1
And still no rrd files created in rra/ :-?

Thanks for your support !
cacti_novice
Posts: 6
Joined: Fri May 25, 2007 10:12 am

Post by cacti_novice »

After creating symbolinc links to the binaries it's looking for in the wrong directories, i get:

php cmd.php

Code: Select all

05/28/2007 03:49:12 PM - CMDPHP: Poller[0] Host[4] SNMP: Host responded to SNMP
05/28/2007 03:49:12 PM - CMDPHP: Poller[0] Host[4] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
05/28/2007 03:49:12 PM - CMDPHP: Poller[0] Host[4] DS[18] CMD: perl /usr/local/apache/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.00 10min:0.00
05/28/2007 03:49:12 PM - CMDPHP: Poller[0] Time: 0.2662 s, Theads: N/A, Hosts: 1
php poller.php

Code: Select all

05/28/2007 03:50:38 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /usr/local/apache/htdocs/cacti/cmd.php 0 4]
Waiting on 1/1 pollers.
05/28/2007 03:50:39 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
05/28/2007 03:50:39 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.00' [map 5min->load_5min]
05/28/2007 03:50:39 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.00' [map 10min->load_15min]
05/28/2007 03:50:39 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.23/bin/rrdtool create /usr/local/apache/htdocs/cacti/rra/10_140_22_214_load_1min_18.rrd   --step 300   DS:load_5min:GAUGE:600:0:500  DS:load_1min:GAUGE:600:0:500  DS:load_15min:GAUGE:600:0:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  
05/28/2007 03:50:39 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.23/bin/rrdtool update /usr/local/apache/htdocs/cacti/rra/10_140_22_214_load_1min_18.rrd --template  N:U
05/28/2007 03:50:39 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.23/bin/rrdtool update /usr/local/apache/htdocs/cacti/rra/10_140_22_214_load_1min_18.rrd --template load_1min:load_5min:load_15min N:0.00:0.00:0.00
OK u:0.00 s:0.00 r:0.00
ERROR: Not enough arguments
OK u:0.00 s:0.00 r:0.00
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
.......
cacti_novice
Posts: 6
Joined: Fri May 25, 2007 10:12 am

Post by cacti_novice »

RRD Files are now generetaed.

Browsing graphs in cacti interface, all data are NaN.
Then i verified if limits were NaN, that was not the case but every collected value is NaN:

/usr/local/rrdtool-1.2.23/bin/rrdtool fetch localhost_proc_24.rrd AVERAGE

Code: Select all

1180282500: nan
1180282800: nan
1180283100: nan
1180283400: nan
1180283700: nan
1180284000: nan
1180284300: nan
1180284600: nan
1180284900: nan
...
Any clue for this trouble ?
Thanks again for reading and maybe helping !
iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

normally one would log into cacti and go to settings, then paths, and make sure the links there actually point to where your executibles are.

ie: /usr/bin/snmpwalk
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
cacti_novice
Posts: 6
Joined: Fri May 25, 2007 10:12 am

Post by cacti_novice »

Paths are correct... when executed manually, i have polling.
But i have to execute cmd.php prior to poller.php... if only poller.php is executed, then i have no data.
iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

use cactid ?
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests