No CPU graphs after new install.
Moderators: Developers, Moderators
No CPU graphs after new install.
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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:
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.
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;
[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]
[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]
OK,
Stopped the poller and ran the SQL command.
Response back was: Query OK, 0 rows affected (0.00 sec)
Snip from poller cache:
And no, the CPU rrd's for the CPU's wasn't created after this fix either.
Any other hints or sugestions?
Thanks
sPunk
Stopped the poller and ran the SQL command.
Response back was: Query OK, 0 rows affected (0.00 sec)
Snip from poller cache:
What does that mean?Action: 2, Script: /usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
And no, the CPU rrd's for the CPU's wasn't created after this fix either.
Any other hints or sugestions?
Thanks
sPunk
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.Action: 2, Script: /usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
[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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
[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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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:
TheWitness
Code: Select all
/usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
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?
If I run:
I get:
/usr/local/share/cacti/scripts/ss_host_cpu.php: cannot open ?php: no such file
But if I run:
it returns without any error or any output at all.
Code: Select all
/usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
/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
Last edited by spunk on Tue Apr 19, 2005 6:24 am, edited 3 times in total.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
my bad, your right. This is good news. The next path I would like you to go down is the following:
run the following:
You should receive, without warning, something to the affect:
Then type the following:
You should receive your output. Then type:
This will stop the script server.
TheWitness
run the following:
Code: Select all
<php_binary_path>/php <cacti_web_path>/script_server.php
Code: Select all
Script Server Started
Code: Select all
/usr/local/share/cacti/scripts/ss_host_cpu.php ss_host_cpu webserver.domain.com public 1 get usage 1
Code: Select all
quit
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
Who is online
Users browsing this forum: No registered users and 1 guest