centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
574 stars 240 forks source link

Status information/output including "\n" #563

Closed centreon closed 9 years ago

centreon commented 11 years ago

Author Name: martin lunze (martin lunze) Original Redmine Issue: 4373, https://forge.centreon.com/issues/4373 Original Date: 2013-04-08


Hi,

i am using Centreon 2.4.1 and Centreon-Broker 2.4.3.

At the end of all my Service-Outputs is an "\n" appended. And the extended output separatet by an "\n" is shown in the normal status information.

Here some examples: NETAPP OK - Current status of the NVRAM battery or batteries: ok\nMIB-description: An indication of the current status of the NVRAM battery or batteries. Batteries which are fully or partially discharged may not fully protect the system during a crash. The end-of-life status values are based on the manufacturer's recommended life for the batteries.\n

Disk CRITICAL - / TOTAL: 26.303GB USED: 23.741GB (90%) FREE: 2.562GB (10%)\n

If i manually change the "\n", which is separating the extended output, in the database (via phpMyAdmin) with a newline (pressing enter) the status information is correctly shown.

I think this is a new bug (maybe appeared after solving the issues: 4159?)

centreon commented 11 years ago

Original Redmine Comment Author Name: martin lunze (martin lunze) Original Date: 2013-04-12T11:27:12Z


i have updated centreon to 2.4.2 and the problem still exists. is there maybe a problem with centreon-broker? is it normal that a "\n" is written in the database?

centreon commented 11 years ago

Original Redmine Comment Author Name: Anonyme (Anonyme) Original Date: 2013-04-15T11:24:51Z


Hi,

this is a Centreon Broker issue. It should be fixed into the next version. (2.4.4)

Regards.

centreon commented 11 years ago

Original Redmine Comment Author Name: Matthieu Kermagoret (Matthieu Kermagoret) Original Date: 2013-05-10T07:32:40Z


I just tried to reproduce this issue with Centreon 2.4.2 / Centreon Broker 2.4.3 but failed to do so. Could you provide a dump of the SQL table services from the _centreonstorage database (with no manual modification) ?

centreon commented 11 years ago

Original Redmine Comment Author Name: martin lunze (martin lunze) Original Date: 2013-05-13T06:48:52Z


I have updated to Centreon 2.4.2 but no changes happen. A Dump of the table would be really big.

Sometimes there is no \n and sometimes there are \n or \n at the end of a line. The Plugin-Output is correct, so there is no mistake.

Here some examples (without any manual modification):

TCP OK - 0,024 second response time on port 3302

PING OK - Packet loss = 0%, RTA = 95.97 ms\n

NETAPP OK - 5 volumes checked. Most occupied volume: NFS_Datastore05 (6.6%)\nNFS_Datastore05: 6.6% (OK), NFS_Inf_SEC_02: 1.7% (OK), vol0: 0.4% (OK), vf_esx04_root: 0.2% (OK), Klausi_50TB_bis_Juni: 0.0% (OK)

OMP OK: No holes or warnings\nGSM_Host: gsm.zih.tu-dresden.de:9390\nOMP_User: centreon\nTarget: idp2.tu-dresden.de\n

centreon commented 11 years ago

Original Redmine Comment Author Name: Matthieu Kermagoret (Matthieu Kermagoret) Original Date: 2013-05-14T11:49:25Z


This is indeed an issue from Centreon Web. This ticket should be moved by a manager soon.

centreon commented 11 years ago

Original Redmine Comment Author Name: martin lunze (martin lunze) Original Date: 2013-05-24T10:59:35Z


are there some news about the problem?

i have also checks, where no newline is shown in the centreon web-gui, but there is a newline in the database. so all the text is shown on one line!