Not getting Graphs & not Text display

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

kdsm
Posts: 41
Joined: Thu Mar 17, 2005 5:00 pm

Not getting Graphs & not Text display

Post by kdsm »

I'm having a problem getting my graphs to show up in all cases. I can look at the router and of the 4 graphs I ask it to display maybe only two will show.
So in an effort to fix this I loaded RRD 1.2.9. (This is when I lost the text display). So I found a post dealing with the no text issue but have not gotten it to fix my problems. In the post it states that I need to setup a path to a windows font that I did but not to the font that's listed in the post. So I must have some other issues. Where would be a good starting point to find my problem? Shall I roll back to the previous version of RRD and try to resolve the missing graph issue or push onward on the path I'm currently on.

Thanks for any assistance
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) If you go back to rrdtool 1.0.x, do the graphs appear fine?
2) Did you set the RRD_DEFAULT_FONT variable?
3) Did you specify the full path to the font in Cacti?
4) What cacti version? Did you apply the rrdtool 1.2 patch?
kdsm
Posts: 41
Joined: Thu Mar 17, 2005 5:00 pm

Post by kdsm »

I managed to get the text on the graphs to show now. But I'm still not getting all of the graphs to build. Should I install the patches?
And If so how do I load it? I tried running the command wget from the command line but it can't find the command wget. Is that a perl command?
Thanks for answering my post.
kdsm
Posts: 41
Joined: Thu Mar 17, 2005 5:00 pm

Post by kdsm »

This is what I'm running
W2k
IIS
MYSQL 4.1.12a
Cactid 0.8.6d
Cacti 0.8.6d
net-snmp 5.2.1
php-4.3.10
Perl 5.8.3.809
RDDtool 1.2.9.

Also some of the routers I'm monitoring give me all the screens I asked for and some don't.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

BSOD,

This sounds very familiar. I have seen other users who's IIS config is just not working as it should with some devices. Can't explain it at all. Graph Debug just locks up from Graph Management as well. That said, the only server platform that I have seen it on is W2003 server and not W2K.

Oh, by the way, you seemed to have gained a new Title in life. Congrats!!!

Larry
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?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

kdsm: wget is part of cygwin. Run the setup and look for the component to install. Alternatively, you can install the precompiled patches too. http://www.cacti.net/downloads/patches/ ... e-patched/

Turn on logging of Web RRD Graph Syntax temporarily. Then view the graph(s) which do not work. Look in the log file for what the syntax cacti was trying to send to rrdtool. Manually run the same command; does it work? When it does not work with Cacti, does the CPU usage jump up?

Does going back to graphing with rrdtool 1.0.49 work (it won't if the rrd files where initially created with rrdtool 1.2.x) ?


TheWitness: gracias senor ;-) I'm working in different states on the weekends now, so not around as much...
kdsm
Posts: 41
Joined: Thu Mar 17, 2005 5:00 pm

Post by kdsm »

Thanks for your input.
I decieded to delete all the data input and build one new just to make sure that the graphs were created under the same versions.
Nothing changed there. So, I installed the patches and I get this error message when I try logging in.

Warning: main(c:\inetpub\wwwroot\cacti\include/config_settings.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\cacti\include\config.php on line 108

Warning: main(): Failed opening 'c:\inetpub\wwwroot\cacti\include/config_settings.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\cacti\include\config.php on line 108

There's also an error when I run the polling from a command line.
It reads

C:\Inetpub\wwwroot\cacti>c:\php\php.exe c:\inetpub\wwwroot\cacti\poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.10

<br />
<b>Warning</b>: main(c:\inetpub\wwwroot\cacti\include/config_settings.php): failed
to open stream: No such file or directory in <b>c:\inetpub\wwwroot\cacti\include\c
onfig.php</b> on line <b>109</b><br />
<br />
<b>Warning</b>: main(): Failed opening 'c:\inetpub\wwwroot\cacti\include/config_se
ttings.php' for inclusion (include_path='.;c:\php4\pear') in <b>c:\inetpub\wwwroot\
cacti\include\config.php</b> on line <b>109</b><br />
There are no items in your poller cache or polling is disabled. Make sure you have
at least one data source created. If you do, go to 'Utilities', and select 'Clear Poller Cache'.

I think I may roll the patches back and do your idea about turning on logging. But, could you tell me what I did wrong on the patches?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

How did you install the patches? Which ones did you attempt to install? Used the pre-patched files and overwrote your existing ones? Used the wget method (I would suggest this method)?
The new files have the correct user permissions?

Rolling back to original cacti 0.8.6d files, do the error messages go away?
kdsm
Posts: 41
Joined: Thu Mar 17, 2005 5:00 pm

Post by kdsm »

If I roll back the error messages do go away.
The way I did it was cut a past the text off the download web site to a text file on my server. Rename it to the php extension and moved them into there respetive diretories. The files I copied in were cmd.php, config_settings.php poller.php & rrd.php.
I would be happy to try wget if there's a document I can read to show me what is needed and how to do it.

OH, and the secury is granted at the folder level so the files should have the needed permissions.

Thanks for hanging in there with me on this one.
kdsm
Posts: 41
Joined: Thu Mar 17, 2005 5:00 pm

Post by kdsm »

Wait.
Never mined about the question on how to use wget. I found the web site.
I'll get the downloads using wget and let you know what I results I find.

Thanks.....
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ahh, so you didn't properly patch the files. The .patch file is not the complete file, just the additional lines that need to be added/removed. wget can be found in the cygwin setup. I believe you'll need another program too.
kdsm
Posts: 41
Joined: Thu Mar 17, 2005 5:00 pm

Post by kdsm »

But isn't the files at http://www.cacti.net/downloads/patches/ ... e-patched/ the complete file? That's what I tried copying to my server.
Anyway I loaded just wget off there web page and have tried to download those files from the download site but it just ends with a failed message.
We are behind a firewall but I've configured the wgetrc file (config) to allow for that. Will cygwin offer more to this process?


Lost in the cacti maze.....
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yes, the files from that portion of the site are the full thing.

Yes, you must use the wget and patch, from cygwin. The standard binarys from any linux distro will not work.

Fire up cygwin setup. Change the view to Full. Install patch and wget. Then try the instructions on http://www.cacti.net/download_patches.p ... ion=0.8.6d.

One could bypass all this patching with just upgrading to cacti 0.8.6e too...
kdsm
Posts: 41
Joined: Thu Mar 17, 2005 5:00 pm

Post by kdsm »

I'm always happy to try the shortcut.
I've done the upgrade on my box and are waiting for the results.
Report back soon
kdsm
Posts: 41
Joined: Thu Mar 17, 2005 5:00 pm

Post by kdsm »

I made the update to 0.8.6e without any major issues. But, I'm still not getting graphs generated for traffic.
I did find this message in the log file
06/24/2005 09:07:09 AM - SYSTEM STATS: Time: 8.1730 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 101, RRDs Processed 53
06/24/2005 09:12:01 AM - CMDPHP: Poller[0] Host[34] DS[901] WARNING: Result from SNMP not valid. Partial Result:
06/24/2005 09:12:01 AM - CMDPHP: Poller[0] Host[34] DS[901] WARNING: Result from SNMP not valid. Partial Result:
06/24/2005 09:12:01 AM - CMDPHP: Poller[0] Host[34] DS[902] WARNING: Result from SNMP not valid. Partial Result:
06/24/2005 09:12:01 AM - CMDPHP: Poller[0] Host[34] DS[902] WARNING: Result from SNMP not valid. Partial Result:
06/24/2005 09:12:01 AM - CMDPHP: Poller[0] Host[34] DS[906] WARNING: Result from SNMP not valid. Partial Result:
06/24/2005 09:12:01 AM - CMDPHP: Poller[0] Host[34] DS[906] WARNING: Result from SNMP not valid. Partial Result:
06/24/2005 09:12:01 AM - CMDPHP: Poller[0] Host[34] DS[907] WARNING: Result from SNMP not valid. Partial Result:
06/24/2005 09:12:01 AM - CMDPHP: Poller[0] Host[34] DS[907] WARNING: Result from SNMP not valid. Partial Result:
06/24/2005 09:12:04 AM - SYSTEM STATS: Time: 4.1463 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 101, RRDs Processed 53

So I guess the snmp is not getting everyting it needs.
I'm using net-snmp 5.2.1 and have the path set up as follow in settings.
c:\net-snmp\bin\snmpwalk.exe
c:\net-snmp\bin\snmpget.exe
What elses should I look at to resolve this last issue?

thanks for your help
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests