PDA

View Full Version : Graphing and other issues


HawkeVIPER
21-12-2005, 17:22
Hi Guys,

First post, but I've been lurking and searching these forums for a while. I've just hit a stumbling block in trying to roll out zabbix; my graphs are now not displaying data below a 4h time frame:

(Apologies for the use of screenshots)

http://www.wefixtech.co.uk/zabbix/screenconfig.gif

As you can see above, although it is seeing the data, it isn't rendering it at all. This *was* working last night, so I'm not sure what changed, aside from more data in the db.

I also checked the main screens page - just in case anyone asks whether it works there:

http://www.wefixtech.co.uk/zabbix/screens.gif

At 4 hours, I can get it to display processor load, however, it will not display the number of running processes, and the graph also looks very low quality, and as if data is missing, or it isn't averaging points that it doesn't have in the db:

http://www.wefixtech.co.uk/zabbix/screen4hr.gif

At 5 hours, it is the same, 6 hours isn't possible to select anymore (why?), 7 hours has a partial amount of running process data graphed next to the left Y axis, but nothing usable. 8 hours is the winner, graphing both load and running processes correctly:

http://www.wefixtech.co.uk/zabbix/screen8hr.gif

So, really, my first question is, does anyone know why this is happening, and how can I get the 1-4 hour graphs working? (This is an issue for me both when viewing individual graphs, and also screens) I'd like to have a 1 hour zabbix screen blasted on my wall to show off any boxes with issues, however, in it's current state, it's pretty useless.


My second question, I've read numerous posts about, but have never seen a valid resolution, or at least, nothing has resolved it for me.

Within Monitoring -> Latest Data, all Disk Usage statistics are being represented as MB (instead of GB) - I have the unit set to B in the item, and the multiplier set to 1024. That is to say, Latest Data is printing 3.2MB instead of 3.2GB. If I then click on the graph, it will show GB. However , if I then set up a trigger say {Host.FOO:diskfree[/tmp].last(0)}<1G, and set an action, it will then spam me as it sees it as MB again. This is pretty annoying, as I swear during testing, it displayed GB, and even once it began displaying MB incorrectly on Latest Data, it would still alert correctly. Any ideas?

---Information about my zabbix install that might be useful---

This is a completely fresh install of 1.1beta4.

ZABBIX server is running Yes
Number of values stored 1977466
Number of trends stored 43499
Number of alarms 834
Number of alerts 392
Number of triggers (enabled/disabled) 1070(1070/0)
Number of items (active/trapper/not active/not supported) 3190(3190/0/0/0)
Number of users 2
Number of hosts (monitored/not monitored/templates/deleted) 97(69/28/2/0)

I've got the following parameters set for the CPU item:

Type: Zabbix Agent
Key: system[procload]
Units:
Use Multiplier: Do not use
Update interval (in sec): 5
Keep history (in days): 7
Keep trends (in days): 365
Status: Monitored
Type of information: Numeric
Store value: As is

and Running Processes is:

Type: Zabbix Agent
Key: system[procrunning]
Units:
Use Multiplier: Do not use
Update interval (in sec): 30
Keep history (in days): 7
Keep trends (in days): 365
Status: Monitored
Type of information: Numeric
Store value: As is

---------

Thanks in advance.

Tony

HawkeVIPER
22-12-2005, 16:32
Definately seems to be something weird going on here. 1 hour graphing is working again, however, something is definately happening. At the point where graphing began working again, the graphs changed color to a darker shade of red:

http://www.wefixtech.co.uk/zabbix/graphchange.gif

Below is a one hour graph view, as you can see, the timings of the graphs starting in 1hour almost completely match that of the color change.

http://www.wefixtech.co.uk/zabbix/graphstart.gif

Any ideas?

Tony

pdwalker
22-12-2005, 20:25
What are your sample rates?

When I set my sample rates below 30 seconds, I find the graphs start having different problems when displaying, some similar to yours.

At a guess, I would say that the chart drawing library is having problems with certain data sets over certain periods of time.

I've either adjusted my sample rates, or choose to view the graphs at a different time interval.

- Paul

Edit: I see one of your sample rates is 5 seconds.. that is far too fast.

pdwalker
22-12-2005, 20:31
See here for a discussion on units and how zabbix automatically scales them

http://www.zabbix.com/forum/showthread.php?t=1769

Basically, by putting in a 'B', Zabbix will want to automatically scale the number properly for you (displaying KB, MB, GB appropriately)

You shouldnt need to use the scale at all.

- Paul

PS: having said that, there might still be a bug in displaying the disk space properly. I would need to test further to be sure.