PDA

View Full Version : No images in statusmap since Centreon v1.4.2.2


Jogarem
01-09-2008, 05:07 PM
Hi,

as mentioned here:

http://forum.oreon-project.org/showpost.php?p=33093&postcount=40

And also my Host Pictures aren't displayed in the module Nagios Statusmap anymore ...
The old one yes but when I create new hosts with a picture then the questionmark picture appears only..

I have a problem with my icons/pictures in the nagios statusmap..
They aren't displayed as selected (i choose firewall.png and it displays
a question mark pict.).

Any ideas?

:-(

mc23
01-10-2008, 03:58 PM
Same problem here. Could you try the attached patch ?

apply it with this command:
cd <centreon_install_root>/www/include/common
patch -p0 < /tmp/patch-....

mc23
01-11-2008, 01:22 PM
Hi,

New patch for this problem, better than the one I've posted yesterday.

apply it on version 1.4.2.2 common-Func.php

This patch changes:
- drop the useless function return_sub_image_list
- function return_image_list is now recursive
- add a new parameter, origin_path, to return_image_list
- make return_image_list much simpler

Jogarem
01-11-2008, 04:01 PM
Hi,

New patch for this problem, better than the one I've posted yesterday.


Hi and thanks for your help, but it is asking for a file when I try to patch?

/usr/local/oreon/www/include/common# patch -p0 < /data/install/patch-www_include_common_common-Func.php.txt
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|n-Func.php 2008-01-11 10:19:37.000000000 +0100
|+++ common-Func.php.new 2008-01-11 12:13:19.000000000 +0100
--------------------------
File to patch:




Maybe I have understand you wrong..?

:(

WAtt
01-11-2008, 04:16 PM
hi,

caution, is a big big path... MC23, have you contact centreon dev before publish this patch ?

I'm use Nagios Status Map with Image and I don't have a problem. Can you check your images directory on nagios config file ? (OPTION->NAGIOS->NAGIOS CFG)

And just for information, you have a problem on head of file. Patch can't identify a valid file to patch

Jogarem
01-11-2008, 04:26 PM
And just for information, you have a problem on head of file. Patch can't identify a valid file to patch

yes thats what I said.

I'm use Nagios Status Map with Image and I don't have a problem. Can you check your images directory on nagios config file ? (OPTION->NAGIOS->NAGIOS CFG)

the path is correct. The path is
/usr/local/nagios/share/images/l o g o s/ (the forum software delete the word "l o g o" so I write it with spaces)

The images are in a subdirectory of this path. This works perfectly until version 1.4.2 !! :(

mc23
01-11-2008, 04:50 PM
Hi and thanks for your help, but it is asking for a file when I try to patch?

/usr/local/oreon/www/include/common# patch -p0 < /data/install/patch-www_include_common_common-Func.php.txt
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|n-Func.php 2008-01-11 10:19:37.000000000 +0100
|+++ common-Func.php.new 2008-01-11 12:13:19.000000000 +0100
--------------------------
File to patch:








your patch file seems corrupted: "n-Func.php" is wrong, should be "--- common-Func.php ..."

I just tried downloading the patch from the forum, applying it, and everything is ok.

WAtt
01-11-2008, 04:54 PM
It's very strange because I have just tested to apply this patch and all is ok


~/projet/Centreon/temp/centreon-1.4.2.2/www/include/common$ patch -p0 --verbose < ../../../../patch-www_include_common_common-Func.php.txt
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- common-Func.php 2008-01-11 10:19:37.000000000 +0100
|+++ common-Func.php.new 2008-01-11 12:13:19.000000000 +0100
--------------------------
Patching file common-Func.php using Plan A...
Hunk #1 succeeded at 938.
Hunk #2 succeeded at 1022.
done


Can you paste the head of patch file please ?

WAtt

mc23
01-11-2008, 05:01 PM
hi,

caution, is a big big path... MC23, have you contact centreon dev before publish this patch ?


Yes, it's a big patch. But everything seems ok.
My first post was http://forum.oreon-project.org/showthread.php?t=5029
I've not subscribed to Trac or flyspray. Should i subscribe to Trac to submit this patch ?


I'm use Nagios Status Map with Image and I don't have a problem. Can you check
your images directory on nagios config file ? (OPTION->NAGIOS->NAGIOS CFG)


Yes: with a fresh install of Nagios2/Centreon 1.4.2.2 on Ubuntu Server 7.10, the images path is "/usr/share/nagios2/htdocs/images/l o g o s".
Everything was ok with Centreon 1.4.1, not with 1.4.2.2

Jogarem
01-11-2008, 05:09 PM
your patch file seems corrupted: "n-Func.php" is wrong, should be "--- common-Func.php ..."

I just tried downloading the patch from the forum, applying it, and everything is ok.

Ok I download it again now it works.. :)

And it works as expected!!

Thanks!! Can you write Julio that they apply this to a new Centreon release please???

WAtt
01-11-2008, 05:36 PM
Yes, it's a big patch. But everything seems ok.
My first post was http://forum.oreon-project.org/showthread.php?t=5029
I've not subscribed to Trac or flyspray. Should i subscribe to Trac to submit this patch ?


On flyspray only :). I have contacted Julio to indicate this post.

mc23
01-11-2008, 06:05 PM
On flyspray only :). I have contacted Julio to indicate this post.

http://bugs.centreon.com/?do=details&id=458