Ticket #298 (accepted defect)

Opened 2 months ago

Last modified 4 weeks ago

make media and icons more robust

Reported by: nfilus Owned by: watt
Priority: minor Milestone: Centreon-2.0
Component: CentCore Version: 2.0
Keywords: Cc: nfilus@…

Description

1. Add directory:

there is NO information regarding the function or format of a directory. First try was to add logos as /usr/local/nagios/share/images/logos/. Please add info about the creation of a new directory in /usr/local/centreon/www/img/media/ as www-data

2. On Nagios export + Restart:

Warning: mkdir() [function.mkdir]: Permission denied in /usr/local/centreon/www/include/configuration/configGenerate/formGenerateFiles.php on line 194

Warning: copy(/usr/local/nagios/share/images/logos//emoticons/278.gif) [function.copy]: failed to open stream: No such file or directory in /usr/local/centreon/www/include/configuration/configGenerate/formGenerateFiles.php on line 195

Please add check and chown to configuration, that /usr/local/nagios/share/images and subdirectories has to be writeable by www-data

Change History

Changed 2 months ago by watt

  • owner set to watt
  • status changed from new to accepted

Hi

Can you try with this change (r6976) ?

Changed 2 months ago by nfilus

1. unsolved - maybe rename "name" into "description" (allows spaces) and rename "directory on the system" simply to "directory name" ("system" sounds to much like a real path).

2. solved

NEW:
3. I added a 2nd directory and added 1 already existing image from the directory screen. This image doesn't exist in this directory, but in the other one. The following copy into NAGIOS_IMG fails.

Changed 7 weeks ago by watt

One people could test and valid that change ?

Changed 5 weeks ago by nfilus

  • cc nfilus@… added

Changed 4 weeks ago by nfilus

  • version changed from RC6 to 2.0

Ping!
Anyone working on this?
Part 1 and Part3 are still not resolved in RC8:

Warning: copy(/usr/local/centreon/www/img/media/test/278.gif) [function.copy]: failed to open stream: No such file or directory in /usr/local/centreon/www/include/configuration/configGenerate/formGenerateFiles.php on line 210

Changed 4 weeks ago by jmathis

can launch that ?

$> ls -la /usr/local/centreon/www/img/

Note: See TracTickets for help on using tickets.