0.8.6g - Still having host and disk problems (w/patches!)
Moderators: Developers, Moderators
0.8.6g - Still having host and disk problems (w/patches!)
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??
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??
-
- Cacti User
- Posts: 146
- Joined: Tue Oct 04, 2005 4:20 pm
- Location: suwanee, ga
- Contact:
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...
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
-
- Cacti User
- Posts: 146
- Joined: Tue Oct 04, 2005 4:20 pm
- Location: suwanee, ga
- Contact:
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Reinstalling yim right now. Don't use it typically.
TheWitness
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?
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?
-
- Cacti User
- Posts: 146
- Joined: Tue Oct 04, 2005 4:20 pm
- Location: suwanee, ga
- Contact:
-
- Cacti User
- Posts: 146
- Joined: Tue Oct 04, 2005 4:20 pm
- Location: suwanee, ga
- Contact:
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
TheWitness
- Attachments
-
- script_server.zip
- (1.09 KiB) Downloaded 349 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?
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 -- 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!
.../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!
-
- Cacti User
- Posts: 146
- Joined: Tue Oct 04, 2005 4:20 pm
- Location: suwanee, ga
- Contact:
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!
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!
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.
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.
-
- Cacti User
- Posts: 146
- Joined: Tue Oct 04, 2005 4:20 pm
- Location: suwanee, ga
- Contact:
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...
-
- Cacti User
- Posts: 146
- Joined: Tue Oct 04, 2005 4:20 pm
- Location: suwanee, ga
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest