0.8.6g - Still having host and disk problems (w/patches!)

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

Moderators: Developers, Moderators

User avatar
imsmarc
Posts: 4
Joined: Fri Sep 30, 2005 8:40 pm
Location: Southern California
Contact:

0.8.6g - Still having host and disk problems (w/patches!)

Post by imsmarc »

HELP!

I'm running 0.8.6g, with the Host and CPU patches, but my processor info and mounted partitions queries are still failing (0 items, rows for both). I'm trying to graph Windows 2k3 servers. Note that SNMP is successful; I am able to graph network interfaces and successfully query the System type..

I'm running Fedora 4, NetSNMP 5.1.3.1, RRD 1.0.50, PHP 4.4.0.

Below is the debug for "get processor information" (note that the SNMP RO and Domains were changed to XXXX). The debug for "get mounted partitions" is very similar.

+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/data/www/cacti-0.8.6g/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/local/bin/php -q /data/www/cacti-0.8.6g/scripts/ss_host_cpu.php imsweb2.XXXX.com 12 2:161:500:XXXX:::MD5::[None] index'
+ Executing script query '/usr/local/bin/php -q /data/www/cacti-0.8.6g/scripts/ss_host_cpu.php imsweb2.XXXX.com 12 2:161:500:XXXX:::MD5::[None] query index'
+ Found data query XML file at '/data/www/cacti-0.8.6g/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/data/www/cacti-0.8.6g/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/data/www/cacti-0.8.6g/resource/script_server/host_cpu.xml'


Any Suggestions??
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

FYI, I seem to be seeing the same type problems. I can not get a successfull data query for CPU or Partitions using the Get Script Server Data (Indexed) input method. I am seeing similar verbose query replies but I am able to run the commands (apparently anyway) from the shell and get successfull replies back from the SNMP agent. I have applied all patches as well. Man, I am just at a loss...:(
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ok,

Debugging for Script Server:

1) Goto your poller cache, look for "action 2"
2) Copy the line starting with "php script..."
3) Open a shell
4) CD to <webroot>/Cacti
5) run "php script_server.php" (You should get no warnings)
6) paste the text from line 2) and hit enter (You should receive a value)
7) type "quit"

If you get errors, you know where to begin at least, or at least have more information to go on.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

sorry to chime in again... I am not even seeing an action2 in my poller cache. which leads me to believe that the script server is never even running the data query commands...? Any ideas
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Reinstalling yim right now. Don't use it typically.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

appreciate the effort, sorry i missed you...
User avatar
imsmarc
Posts: 4
Joined: Fri Sep 30, 2005 8:40 pm
Location: Southern California
Contact:

Post by imsmarc »

Been out of the office this week, so I haven't been able to work on this problem. TheWitness, kbartoletta -- if you are able to identify a solution privately, could you post it here so I can give it a try when I return to the office?

Thanks!
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

unfortunately, I have been unable to get this issue resolved - have you had a chance to work on it again? I am considering blowing away and starting from scratch.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Unbelievable. I just checked the patches directory on the web server and it's missing the XML files that are stored in <path_cacti>/resource/script_server. Take the two files attached and place them there and you should be back in business.

TheWitness
Attachments
script_server.zip
(1.09 KiB) Downloaded 348 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Post by JJX »

thats why cpu monitoring wasnt working ;)
User avatar
imsmarc
Posts: 4
Joined: Fri Sep 30, 2005 8:40 pm
Location: Southern California
Contact:

Post by imsmarc »

kbartoletta -- I have already blown cacti away and started from scratch. Alas, my efforts were fruitless. Also, I verified that the files included in the script_server.zip file were already in place in the appropriate directory. The files i am referring to are:
.../cacti-0.8.6g/resource/script_server/host_cpu.xml
.../cacti-0.8.6g/resource/script_server/host_disk.xml

The first problem for me is that the SNMP Get Mounted Partitions and Get Processor Information are returning Zero results (see verbose query in first post of this topic). Without those queries working, cacti has nothing to poll or graph. The Interface Statistics data query, however, works perfectly.

Furthermore, I am also not able to find any "Action: 2" in my poller cache. I do have "Action: 1" and "Action: 0". I am guessing that this action does not appear in the poller cache because Cacti is unable to discover any disks or cpus to poll.

Any other troubleshooting ideas?

Thanks!
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

I know what you are going through... i had the same exact symptoms, no action2, nothing returned by data query. I finally blew the box away and started from scratch and it is working like a champ now! This is what I reloaded my box with.

1. Fedora Core 2 - shotgun intallation (installed everything) - I was using fedora core 4 the first go around.

2. Ran yum update to update everything.

3. Loaded rrdtool 1.0.48 - no problems during configure;make;make install

4. loaded latest cacti version - being carefull to follow the installation procedures to a T.

5. One other change that I made from the first installation was that I WAS running the poller in the system crontab (i.e >crontab -e ) while logged in as root. In the new installation - I edited /etc/crontab while logged in as root and specified it to run as the cactiuser

It has been running great! Good Luck!
User avatar
imsmarc
Posts: 4
Joined: Fri Sep 30, 2005 8:40 pm
Location: Southern California
Contact:

Post by imsmarc »

DOH!

Turns out that my Cacti installation was working normally. My problem was that I was using a $ (dollar sign) in my SNMP string, which for some reason screws up the scripts. I took the $ out of my SNMP string, and everything started to work great.

So now everything is working fine on my Fedora Core 4 box (also on the new RHEL box I built).

Many thanks to TheWitness for catching the problem.
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

Thats strange, you definately had better luck than i did, i cant get core 4 to work for anything. I am seeing the same exact symptoms on my core 4 box while using public as the snmp community string. Other queries run as normal but the script server queries do not work - return 0 rows, 0 items... oh well...
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

If you dont mind me asking....

what version of rrdtool did you install and how did you install it? rpm, compile, yum, etc?

I am trying to compile it but keep getting two different errors during the make complaining about some functions missing.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest