Centreon Forum  

Go Back   Centreon Forum > Centreon Devel > Centreon 2.x

Centreon 2.x For centralising all questions and suggestions about centreon 2.

Reply
 
Thread Tools Display Modes
  #1  
Old 13th October 2009
foobar foobar is offline
Junior Member
Oreonistes
 
Join Date: May 2009
Posts: 8
Default Stack Graphs in 2.1

see:
http://forum.centreon.com/f33/patch-...eon-rc8-t7109/
for details ...
Reply With Quote
  #2  
Old 13th October 2009
foobar foobar is offline
Junior Member
Oreonistes
 
Join Date: May 2009
Posts: 8
Default

patch is attached
Attached Files
File Type: zip foo.zip (8.6 KB, 23 views)
Reply With Quote
  #3  
Old 16th October 2009
gueutzilla gueutzilla is offline
Senior Member
Habituated
 
Join Date: Jan 2009
Posts: 109
Default

Hi,

I have try your patch but receive an error when I want to apply it...

Quote:
root@ubuntu:/usr/local/centreon# patch -p1< centreon_2.1_stack.patch
can't find file to patch at input line 2
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r www/include/views/graphs/componentTemplates/DB-Func.php ori_www/include/views/graphs/componentTemplates/DB-Func.php
--------------------------
File to patch: ^C
root@ubuntu:/usr/local/centreon#
Any idea??

Thanks a lot for your help
Reply With Quote
  #4  
Old 16th October 2009
gueutzilla gueutzilla is offline
Senior Member
Habituated
 
Join Date: Jan 2009
Posts: 109
Default

I really need counter and stack patch for my graph!!!


Thanks a lot...

Last edited by gueutzilla; 16th October 2009 at 14:01.
Reply With Quote
  #5  
Old 23rd October 2009
gueutzilla gueutzilla is offline
Senior Member
Habituated
 
Join Date: Jan 2009
Posts: 109
Default

any news about that?

patch doesn't work for me
Reply With Quote
  #6  
Old 5th December 2009
gueutzilla gueutzilla is offline
Senior Member
Habituated
 
Join Date: Jan 2009
Posts: 109
Default

Hi,

Do you have any news about that??


Thanks a lot
Reply With Quote
  #7  
Old 15th December 2009
nfilus nfilus is offline
Member
Newbie
 
Join Date: Jun 2008
Posts: 30
Default

The textfile "patch" in the archive is in very bad shape - could you rebase it on 2.1.x and use unified diff next time - it makes reviewing much easier .... if done so, I may consider it for a merge

nfilus
Reply With Quote
  #8  
Old 6th January 2010
gueutzilla gueutzilla is offline
Senior Member
Habituated
 
Join Date: Jan 2009
Posts: 109
Default

Hello,

Do you have any news about this patch???

I think this fonction must be nativ in future version of centreon
Reply With Quote
  #9  
Old 21st January 2010
BigMonitor BigMonitor is offline
Junior Member
Newbie
 
Join Date: Jun 2008
Posts: 27
Default

How is this feature not already included in centreon? I need to have counter types for my graphs. I can't upgrade from my current version without it.
Reply With Quote
  #10  
Old 10th February 2010
talirk81 talirk81 is offline
Junior Member
Oreonistes
 
Join Date: Feb 2010
Posts: 8
Cool 2.1.4 Stack Patch

Can someone please review this and check this in, this really just be a standard feature in 2.1.4+.




ENGLISH:

To apply this patch extact the zip and copy patch to /usr/local/centreon.

Then run:
#> patch -p1 < 2.1.4_Stack.patch.txt

Then run:
* Be sure to replace centreon with your centron DB name, and use -u -p if required for alter access *
mysql centreon -e "ALTER TABLE `giv_components_template` ADD `host_id` INT( 11 ) NULL AFTER `compo_id`";
mysql centreon -e "ALTER TABLE `giv_components_template` ADD `service_id` INT( 11 ) NULL AFTER `host_id`";
mysql centreon -e "ALTER TABLE `giv_components_template` ADD `ds_stack` ENUM( '0', '1' ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `name`";


French:

Pour appliquer ce patch extact le zip et le patch copier dans /usr/local/centreon .

Ensuite, exécutez:
#> patch -p1 <2.1.4_Stack.patch.txt

Ensuite, exécutez:
* N'oubliez pas de remplacer centreon avec votre nom DB centron, et utiliser-u-p s'il est requis pour modifier l'accès *
mysql centreon -e "ALTER TABLE `giv_components_template` ADD `HOST_ID` INT (11) NULL AFTER `compo_id`";
mysql centreon -e "ALTER TABLE `giv_components_template` ADD `service_id` INT (11) NULL AFTER `HOST_ID`";
mysql centreon -e "ALTER TABLE `giv_components_template` ADD `ds_stack` ENUM ('0 ', '1') CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `name` ";
Attached Files
File Type: zip 2.1.4_Stack.patch.v2(FIXED).zip (8.7 KB, 5 views)

Last edited by talirk81; 10th February 2010 at 21:51.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:12.