Bug #1731
Issue in acknowledging services.
| Status: | Closed | Start date: | 05/03/2010 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | - | |||
| Target version: | Centreon-2.1.9 | |||
| Resolution: | worksforme |
Description
I noticed that I cannot seem to acknowledge some services when in the service's name there is a / character.
[1272880523] EXTERNAL COMMAND: ACKNOWLEDGE_SVC_PROBLEM;MACHINE;Partition //tmp;2;0;1;user;Acknowledged by user
it seems to add an extra slash whenever there is one slash specified in the service's name.
I tried to remove the slash from the name and I could then acknowledge the service.
Thanks!
Matteo
History
#1
Updated by matteo cerutti about 3 years ago
It also does not work when trying to disable notifications:
[1272967261] EXTERNAL COMMAND: DISABLE_SVC_NOTIFICATIONS;MACHINE;;1272967258
[1272967278] EXTERNAL COMMAND: DISABLE_SVC_NOTIFICATIONS;MACHINE;Partition //tmp
[1272967313] EXTERNAL COMMAND: DISABLE_SVC_NOTIFICATIONS;MACHINE;CPU Usage
[1272967332] EXTERNAL COMMAND: DISABLE_SVC_NOTIFICATIONS;MACHINE;Partition //opt
[1272967369] EXTERNAL COMMAND: DISABLE_SVC_NOTIFICATIONS;MACHINE;Partition //tmp
For CPU Usage it did work, but not for the other services.
#2
Updated by matteo cerutti about 3 years ago
I also noticed that if I try to enable notifications from the service details page this is what I get in nagios.log
[1272967477] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;MACHINE;;1272967474
[1272967513] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;MACHINE;;1272967512
and the service has still notifications disabled. Otherwise, if I check the service in the services list and use the drop down menu to enable notification, this works fine and in fact I see the following under nagios.log
[1272967527] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;MACHINE;CPU Usage
No idea why.
#3
Updated by Julien Mathis about 3 years ago
- Target version changed from Centreon-2.1.7 to Centreon-2.1.8
Which version ??
with 2.1.6 I have this :
[1273158331] EXTERNAL COMMAND: ACKNOWLEDGE_SVC_PROBLEM;server-reporting;Disk-/;2;0;1;jmathis;Acknowledged by jmathis
[1273158412] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;server-reporting;Disk-/
[1273158449] EXTERNAL COMMAND: ENABLE_SVC_CHECK;server-reporting;disk-io-/
Regards
#4
Updated by matteo cerutti about 3 years ago
In 2.1.6 I experience those issues. Could it be a php version problem? I currently run 5.2.5.
Matteo
#5
Updated by Julien Mathis about 3 years ago
realy close version...
PHP 5.2.6-1+lenny8 with Suhosin-Patch 0.9.6.2 (cli) (built: Mar 14 2010 08:14:04)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
#6
Updated by matteo cerutti about 3 years ago
[1272967477] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;MACHINE;;1272967474
[1272967513] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;MACHINE;;1272967512
No idea why then, it's very weird, what could possibly cause the add of an extra slash?
And in the example above, I get those numbers instead of the service's name just when I issue the command from the service details page, not from the services list by using the action drop-down :(
#7
Updated by Julien Mathis almost 3 years ago
- Target version changed from Centreon-2.1.8 to Centreon-2.1.9
#8
Updated by Julien Mathis almost 3 years ago
- Status changed from New to Closed
- Resolution set to worksforme
I think it's not due to centreon. Check PHP parameters.
#9
Updated by Tom McLaughlin almost 3 years ago
- File php.ini
added
I'm experiencing this same issue with Centreon 2.1.8 and PHP 5.1.6 on CentOS 5 with regard to enabling and disabling checks or notifications of a service on the service's page. If from a services overview page, when I check off a service and then select "Services: Disable Notification" I see this in the nagios.log:
EXTERNAL COMMAND: DISABLE_SVC_NOTIFICATIONS;meditechad2.meditech.com;AD Password
If I click "Disable Notifications for this service" on the service's page I see:
EXTERNAL COMMAND: DISABLE_SVC_NOTIFICATIONS;meditechad2.meditech.com;;1276888069
I don't fully understand the log lines but I did notice one thing. In the last example there is a ";;" in the log line. The first example there is not. Also, while testing I noticed when disabling host notifications on a host's page it again only uses a single semi-colon.
[1276887387] EXTERNAL COMMAND: DISABLE_HOST_NOTIFICATIONS;bridgehead1.meditech.com;1276887386
Could it just be a typo somewhere? I've attached my php.ini as well.
#10
Updated by romain vrignaud almost 3 years ago
Hello,
This problem seems to come from centcore.
In version 2.1.8, line 301 we can find : "$cmd =~ s/\//\/\//g;"
I think that bug has been corrected : http://svn.centreon.com/branches/centreon-2.1/bin/centcore
You can find this : "$cmd =~ s/\\/\\\\/g;"
Regards