PDA

View Full Version : Centreon 2.0 Graphs/Views


whistler81
06-04-2008, 10:18 AM
Hi,
Can't get the graphs to work. I have both centstorage and centcore running.. Is there something that needs to be configured?
The Nagios Statistics graphs are generated though.. but not for any services.

This is from the censtorage.log:
1212561855 - Starting ODS engine...
1212561855 - PID : 10363
1212562455 - Begin MySQL Purge...
1212562455 - End of MySQL Purge...
1212563055 - Begin MySQL Purge...
1212563055 - End of MySQL Purge...

jsl123
06-09-2008, 11:54 PM
I've installed centreon beta 2 latest version and have the same problem. Everything works but i get no graphs. I've checked the process_performance_data stuff but no resuts.

OS is ubuntu hardy with nagios3 installed from source

falc410
06-10-2008, 10:18 AM
Same here, but are you sure you have services / plugins that gather performance data? I'm not sure but the ping plugin might not collect performance data (the native nagios ping plugin does not, you have to use the icmp plugin in order to get graphs).

whistler81
06-10-2008, 10:39 AM
In Centreon 1.4 i use check_centreon_nt to get graphs of disk usage/cpu/memory. I'm trying to use the same plugin in 2.0. (The one supplied with 2.0)

Strange.. on my other centreon test server the graphs work. Only difference is that I did not import the nagios cfg files (from nagios 2.0 cent 1.4) on test server 2... :/

jsl123
06-10-2008, 10:53 AM
Same here, but are you sure you have services / plugins that gather performance data? I'm not sure but the ping plugin might not collect performance data (the native nagios ping plugin does not, you have to use the icmp plugin in order to get graphs).

centstorage is running, i'm using the centreon version of the plugins to collect data so there is perf data. Looking at the source to centstorage, it checks a table called index_data (which in my case is empty) to decide whether to generate the graphs.

Quickly scanning the php source i can't see where entries are created in this table - it looks like there should be a "add graph to service" function - i've filled in the "extended service info" section. but surely it should be automatic.

Also if i goto /admin/centstorage/manage - the list of rrd data is empty (i'm guessing this corresponds to the index_data table as the columns match). how do i add something here?



Also this is done on a clean ubuntu box, with fresh installs of all nagios/centreon related stuff from source.

jsl123
06-10-2008, 11:33 AM
Ok, manually entered some data into the index_data table and it generated some rrd files (it also automatically extracted the keys and their values - metrics - from the perf data so there must be a predefined format somewhere?)

However if i now hover over the graph icon in the services display, a graph appears, but if i click on it nothing happens. It takes me to a screen to choose the graph period, but i get no graphs? any reason...

Secondly, how should i go about entering data into the table using the GUI? Is it added automatically if i create a new service? Is this just a case of the installer being broken and not picking up the default services?

jsl123
06-11-2008, 09:19 PM
OK, i've just added a new host/service and it seems that this has correctly set up the database to show the graphs. I now get a graph on the main services summary screen and clicking on the icon brings up the graph page allowing me to adjust the settings. I need to verify this works for everything.

So to me this looks like an installer problem... I'm guessing it either copies existing services/hosts into the db but doesn't fully set up the storage tables or it creates a default initial host and again doesn't setup the storage tables

Can anyone confirm this before i file a bug?

--

Ok, suspect this is me... I set up NDO before exporting the centreon nagios configuration which uploaded the original nagios details. Got graphs working now..