No CPU graphs after new install.

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

Moderators: Developers, Moderators

spunk
Posts: 10
Joined: Wed Apr 13, 2005 8:50 am
Location: Sweden

No CPU graphs after new install.

Post by spunk »

Hi,

After I reinstalled cacti today the CPU graphs don't show.
All other graphs are showing from the same host.

Running on FreeBSD 4.11
Checked the /rra dir and there are no rrd's related to CPU.
Where should I start look next?

TIA
sPunk
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Make sure that your host is setup to allow CPU quering. Or more so, UCD/NET SNMP load average.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
spunk
Posts: 10
Joined: Wed Apr 13, 2005 8:50 am
Location: Sweden

Post by spunk »

No change is made on any server I try to monitor.
All servers are MS Win2k or Win2k3.

I had like cacti 0.8.4 or something running and graphing, then reinstalled/upgraded cacti and the result are that all mashines GRAPH fine exept CPU graphs....

Anyone now the OID for CPU?
I'll try to snmpget manually to see what it returns....

sPunk
spunk
Posts: 10
Joined: Wed Apr 13, 2005 8:50 am
Location: Sweden

Post by spunk »

Guess it .1.3.6.1.2.1.25.3.3.1.2
Witch reports back "right" values for CPU load.
But why does it not create the .rrd files?

sPunk
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, this was after an upgrade... Let's do some cleaning.

Make sure that the poller is NO running and run the following command on the cacti database in the mysql client:

Code: Select all

delete from poller_output;
Then from the web interface run the System Utilities->Clear Poller Cache. This is named wrong, it's going to clear it then rebuild it. It will show you the results, check the output, you should see that CPU OID for the host you are monitoring. If not, then there is probably a template issue.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
spunk
Posts: 10
Joined: Wed Apr 13, 2005 8:50 am
Location: Sweden

Post by spunk »

OK,

Stopped the poller and ran the SQL command.
Response back was: Query OK, 0 rows affected (0.00 sec)

Snip from poller cache:
Action: 2, Script: /usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
What does that mean?

And no, the CPU rrd's for the CPU's wasn't created after this fix either.
Any other hints or sugestions?

Thanks
sPunk
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Action: 2, Script: /usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
That means the poller is going to poll the data. Next, I need to see one polling cycle of your poller.php in debug mode. Goto Settings->General->Poller Logging Level and set it to Debug. Then clear the log/cacti.log file and post the cacti.log from one polling cycle. Do not post the STDOUT of the poller.php, I need to see the log.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
spunk
Posts: 10
Joined: Wed Apr 13, 2005 8:50 am
Location: Sweden

Post by spunk »

Just wanna say thanks for the help so far!
And thanks for a great application.

I gonna post the log in a few hours, i'm not at work right now.

TIA
sPunk
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Helping everyone helps me to write better code and proceedures. And because I'm rewriting the documentation, it help me to figure out common questions, so I know what to focus on with the new documentation.

:D
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
spunk
Posts: 10
Joined: Wed Apr 13, 2005 8:50 am
Location: Sweden

Post by spunk »

Sorry for the late response. The weekend just flew away...

Anyways here's the cacti log.
Attachments
cacti.zip
(2.17 KiB) Downloaded 97 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You should be able to open a shell and run this command and get a legit response with no warnings. If you don't, then we have to look at the error:

Code: Select all

/usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
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?
spunk
Posts: 10
Joined: Wed Apr 13, 2005 8:50 am
Location: Sweden

Post by spunk »

If I run:

Code: Select all

/usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
I get:
/usr/local/share/cacti/scripts/ss_host_cpu.php: cannot open ?php: no such file

But if I run:

Code: Select all

/usr/local/bin/php /usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
it returns without any error or any output at all.
Last edited by spunk on Tue Apr 19, 2005 6:24 am, edited 3 times in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

my bad, your right. This is good news. The next path I would like you to go down is the following:

run the following:

Code: Select all

<php_binary_path>/php <cacti_web_path>/script_server.php
You should receive, without warning, something to the affect:

Code: Select all

Script Server Started
Then type the following:

Code: Select all

/usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
You should receive your output. Then type:

Code: Select all

quit
This will stop the script server.

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?
spunk
Posts: 10
Joined: Wed Apr 13, 2005 8:50 am
Location: Sweden

Post by spunk »

Done all that and it returns a number, like 50 witch match the cpu usage on the target server.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What does your debug output look like for that particular script? If different than "U", then I would suspect either a corrupt template or a damaged RRD file.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest