FREE BSD CPU not correct values...

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
appodictic
Posts: 44
Joined: Thu Jul 10, 2008 4:46 pm

FREE BSD CPU not correct values...

Post by appodictic »

I have a fairly large cacti deployment and everything is working well. I have a huge problem with the CPU Usage graph on my BSD machines.

It is not even close to what top is reporting. My graphs will show 100% usage when the system is only at 30% CPU.

Trying to troubleshoot this has me thumbing through articles like...

http://silent-ion.blogspot.com/2008/03/freebsd-top.html

Linux machines are reporting perfectly. So does anyone have a two cent answer to explain what is going on? I have this issue across free bsd 6 &7 systems

Thanks.
junkmail
Posts: 7
Joined: Wed Nov 19, 2008 11:26 am

Post by junkmail »

What are you using to monitor CPU? I haven't checked out any of the scripts but I do observe that CPU usage via top is quite dynamic from second to second and and any series of 5 minute readings could be quite meaningless. Just wherever it happened to catch it.

The load average (1min 5min 15min) using the stock script (loadavg_multi.pl) might be a better choice. It works quite well, matches top and uptime and looks quite striking in it's multi-color display,
appodictic
Posts: 44
Joined: Thu Jul 10, 2008 4:46 pm

Post by appodictic »

I am using the standard UDC/SNMP cpu monitor. The load average is not what I am looking at. As i said its not even close. I am using the cacti real time plugin, it shows 80% while the system is at about 30%
cdgtcc
Posts: 10
Joined: Wed Dec 10, 2008 12:59 pm

Post by cdgtcc »

A little off topic but what did you do to get cacti working under freebsd? I've had much sucess with it under Linux distro's, but have been unsucessfull with FreeBSD7. Maybe you can PM with anything specific you mightve done? I've tried 2 ways to install cacti, from ports, and from sources for everything needed. No matter what, end result is the same, the poller never runs via cron.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

cdgtcc wrote:A little off topic but what did you do to get cacti working under freebsd? I've had much sucess with it under Linux distro's, but have been unsucessfull with FreeBSD7. Maybe you can PM with anything specific you mightve done? I've tried 2 ways to install cacti, from ports, and from sources for everything needed. No matter what, end result is the same, the poller never runs via cron.
Works for me, from ports or hand-installed.

Do you put the full path to php in the cron entry? /usr/local/bin isn't in cron's PATH by default, I don't think...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
cdgtcc
Posts: 10
Joined: Wed Dec 10, 2008 12:59 pm

Post by cdgtcc »

*/5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1

Is my crontab file. I've tried changing it numerous ways to see what would happen. Nothing streams to the logs unless I run the poller.php manually.
junkmail
Posts: 7
Joined: Wed Nov 19, 2008 11:26 am

Post by junkmail »

FreeBSD installation from ports was fairly straightforward. Your problem may be with permissions but you can get a lot of information in the log by turning on DEBUG for one interval.

Also su to your cactiuser and run the entry in crontab from the command line without the redirection and see what you can learn from the output. You may have to vipw your cactiuser first.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests