Same template two different output

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

Moderators: Developers, Moderators

Post Reply
catchvjay
Posts: 22
Joined: Tue May 17, 2011 11:39 am

Same template two different output

Post by catchvjay »

Hi Friends,

I have installed Fridh - ucd/net - System Stats data queries on two different servers. Now CPU usage graph generated by this data query is having strange issue. On one server it is generating CPU usage in Percentage (which i want) and on another server it is generating CPU usage in milli seconds (m). I want both graphs to be generated in percentage of CPU usage. How can i change this graph ? I am attaching graphs from both the servers.

Regards,
Vijay
Graph with Percentage CPU usage
Graph with Percentage CPU usage
Server 1.png (32.94 KiB) Viewed 2110 times
Graph with milli second of CPU usage
Graph with milli second of CPU usage
Server 2.png (62.93 KiB) Viewed 2110 times
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Same template two different output

Post by noname »

m = milli = 0.001, and it's not concerned with units (seconds, percentages, etc.).
catchvjay
Posts: 22
Joined: Tue May 17, 2011 11:39 am

Re: Same template two different output

Post by catchvjay »

Yeah but i am reporting screen shot of these graphs to higher managment and it looks odd when one graph is having percentage and one is having milli second. I want that to be converted in percentage. Does any one has idea how can i achive this??

Regards,
Vijay
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Same template two different output

Post by noname »

?
Where is "second" shown in your graph?

If you want Y-axis to show without SI unit (m),
try to set 0 for "Unit Exponent Value" in graph template.

See also: http://forums.cacti.net/viewtopic.php?f=21&t=43637
catchvjay
Posts: 22
Joined: Tue May 17, 2011 11:39 am

Re: Same template two different output

Post by catchvjay »

Thanks dude. It worked fine. I am getting all graphs in uniform manner now.

Thanks all,

Regards,
Vijay
catchvjay
Posts: 22
Joined: Tue May 17, 2011 11:39 am

Re: Same template two different output

Post by catchvjay »

Hi Friends,

I am having some different type of issue on the CPU Utilization graph on other server. This is a newly built server and i haven't installed any application on it but still its CPU utilization in cacti showing around 70%. When i cross checked the same on the server it isn't using that much. I have used same template which i corrected as per above recommendation. I don't know what is the problem with this server? I deleted this server from cacti and reconfigured again but still it is having same problem. I have kept snmp setting on server side same for every server. I am attaching screen cap of the graph.

Regards,
Vijay
Attachments
Server showing High CPU utilization
Server showing High CPU utilization
Pd201.png (78.47 KiB) Viewed 2047 times
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Same template two different output

Post by noname »

Though I'm not sure why your Logical CPUs are shown as 0,
catchvjay wrote: This is a newly built server and i haven't installed any application on it but still its CPU utilization in cacti showing around 70%.
-snip-
I don't know what is the problem with this server?
use top command to investigate that.

(BTW, what is "221.81" at the bottom of your graph?)
catchvjay
Posts: 22
Joined: Tue May 17, 2011 11:39 am

Re: Same template two different output

Post by catchvjay »

Well on server side there is no problem as far as CPU utilization concerned. It is showing 99% idle. Can this be snmp related issue?? Does any one has idea about this??

Regards,
Vijay
jmcdonn1
Posts: 5
Joined: Mon Apr 04, 2011 5:22 am

Re: Same template two different output

Post by jmcdonn1 »

Yes, I am seeing this too.

0.8.7e on old server, 0.8.7g on new server.
Different levels of snmpd
Old server never had clients with more than 16 cores. The new server is working for 8 cores at least.

I suspect something odd in the templates for large numbers of cores. If I find anything I'll post back.
jmcdonn1
Posts: 5
Joined: Mon Apr 04, 2011 5:22 am

Re: Same template two different output

Post by jmcdonn1 »

And something of a clue perhaps, for both of us the Idle number is showing as "nan" even though an snmp query seems to be returning a valid number.
jmcdonn1
Posts: 5
Joined: Mon Apr 04, 2011 5:22 am

Re: Same template two different output

Post by jmcdonn1 »

Hmmm, look at mgothard's post here. http://forums.cacti.net/viewtopic.php?f=12&t=41324

His template does work. I don't quite understand why though.
jmcdonn1
Posts: 5
Joined: Mon Apr 04, 2011 5:22 am

Re: Same template two different output

Post by jmcdonn1 »

OK, I have resolved this. As suspected it's related to the number of cores. In the associated data template the maximum value for each of the data sources was set to 2000, which was perhaps a reasonable sanity check allowing for 20 cpus.

When there are over 20 cores, and any one of the sources would exceed 2000, it's value would be recorded as unknown/nan. For an idle server this would always happen to "idle". When one of the data sources was invalid, the calculation for number of cpus would fail, and the cpu numbers would not get divided by the number of cores.

So, you can either increase the data template max for each source to say 7000, or set it to zero for no maximum, and remember that if any rrd files have been created already they will have the max set already so they should be removed or fixed with rrdtool.

J.
catchvjay
Posts: 22
Joined: Tue May 17, 2011 11:39 am

Re: Same template two different output

Post by catchvjay »

Great job ..It worked fine after setting maximum value to 0 in data source and deleting old rrd files...Thanks for your help and time...

Regards,
Vijay
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests