shinken-solutions / shinken

Flexible and scalable monitoring framework
http://www.shinken-monitoring.org
GNU Affero General Public License v3.0
1.13k stars 336 forks source link

Livestatus mapping issue #1630

Closed floppy84 closed 9 years ago

floppy84 commented 9 years ago

Hi all,

I got an issue on 2.4 shinken and thruk.

the $Key$ value passed in argument work well in shinken web ui

But in thruk i got the service name display like this : Slave SQL running port-$KEY$ in spite of SQL running port-3306

In cat /tmp/shinken_checkconfig_result log i got issue with livestatus mapping ::

/var/lib/shinken/modules/livestatus/mapping.py:45: DeprecationWarning: shinken.schedulerlink is deprecated module path ; schedulerlink must now be imported from shinken.objects.schedulerlink ; please update your code accordingly from shinken.schedulerlink import SchedulerLink /var/lib/shinken/modules/livestatus/mapping.py:46: DeprecationWarning: shinken.reactionnerlink is deprecated module path ; reactionnerlink must now be imported from shinken.objects.reactionnerlink ; please update your code accordingly from shinken.reactionnerlink import ReactionnerLink /var/lib/shinken/modules/livestatus/mapping.py:47: DeprecationWarning: shinken.brokerlink is deprecated module path ; brokerlink must now be imported from shinken.objects.brokerlink ; please update your code accordingly from shinken.brokerlink import BrokerLink /var/lib/shinken/modules/livestatus/mapping.py:48: DeprecationWarning: shinken.receiverlink is deprecated module path ; receiverlink must now be imported from shinken.objects.receiverlink ; please update your code accordingly from shinken.receiverlink import ReceiverLink /var/lib/shinken/modules/livestatus/mapping.py:49: DeprecationWarning: shinken.pollerlink is deprecated module path ; pollerlink must now be imported from shinken.objects.pollerlink ; please update your code accordingly from shinken.pollerlink import PollerLink

I supose that the problem come from this. Any idea ?

image

image

whereas in shinken webui all work fine ::

image

gst commented 9 years ago

In cat /tmp/shinken_checkconfig_result log i got issue with livestatus mapping ::

s/got issue/got warnings/ (DeprecationWarning more precisely) ;)

I supose that the problem come from this.

so nope ;)

floppy84 commented 9 years ago

I changed in mapping.py

shinken.schedulerlink by shinken.objects.schedulerlink and i did the same for other modules. But i still have issue in thruk ui.

floppy84 commented 9 years ago

Hi gst could you say me if this is a bug that you can reproduce or if i am the only one to have this bug ? And how can i fix it ?

oliiivier commented 9 years ago

I have same bug with thruk 1.88-4 and shinken 2.4, have you some patch we could apply to fix this issue?

k0ste commented 9 years ago

Have some bug https://github.com/naparuba/shinken/issues/1635

olivierHa commented 9 years ago

See #1635

You can temporary fix this by editing the livestatus mapping file , just 1 word to change and it should be fine.

2015-05-21 10:18 GMT+02:00 oliiivier notifications@github.com:

I have same bug with thruk 1.88-4 and shinken 2.4, have you some patch we could apply to fix this issue?

— Reply to this email directly or view it on GitHub https://github.com/naparuba/shinken/issues/1630#issuecomment-104174714.

oliiivier commented 9 years ago

perfect, it was what i'm looking for, thanks ;)

olivierHa commented 9 years ago

https://github.com/naparuba/shinken/commit/0cfcc2adcb6f5be0fa351def9f59881bfe2cdbe5

This should fix this issue.