Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shinken+Nagvis does not works for Servicegroup and Hostgroup #38

Closed
Azef1 opened this issue Mar 4, 2016 · 1 comment
Closed

Shinken+Nagvis does not works for Servicegroup and Hostgroup #38

Azef1 opened this issue Mar 4, 2016 · 1 comment

Comments

@Azef1
Copy link

Azef1 commented Mar 4, 2016

Hi,

I have Shinken monitoring tools with the module livestatus ( tcp:127.0.0.1:50000).
In Nagvis when i add a host or a service i have the current state (green) but not for Servicegroup and Hostgroup.
I have this error: Problem (Backend: live_1): The object ... doesn't exist
nagvis
Do you know where are the logs of Nagvis ?

I using Nagvis 1.9b4.

@Azef1
Copy link
Author

Azef1 commented Mar 4, 2016

It's fixed !!!
It's not a error from Nagvis but from Shinken livestatus module .
To fix it:
Edit this file var/lib/shinken/modules/livestatus/mapping.py and add

    'staleness': {
        'description': 'FIXME',
        'function': lambda item, req: 0,
    },

for host and service.

--- var/lib/shinken/modules/livestatus/mapping.py.orig  2015-11-30 15:16:42.829682487 +0100
+++ var/lib/shinken/modules/livestatus/mapping.py       2015-11-30 15:38:01.415712971 +0100
@@ -682,6 +682,10 @@
             'function': lambda item, req: [get_livestatus_full_name(i, req) for i in item.source_problems],  # REPAIRME MAYBE (separators in python and csv)
             'datatype': list,
         },
+        'staleness': {
+            'description': 'FIXME',
+            'function': lambda item, req: 0,
+        },
         'state': {
             'description': 'The current state of the host (0: up, 1: down, 2: unreachable)',
             'function': lambda item, req: item.state_id,
@@ -1466,6 +1470,10 @@
             'function': lambda item, req: "",  # REPAIRME
             'datatype': list,
         },
+        'staleness': {
+            'description': 'FIXME',
+            'function': lambda item, req: 0,
+        },
         'state': {
             'description': 'The current state of the service (0: OK, 1: WARN, 2: CRITICAL, 3: UNKNOWN)',
             'function': lambda item, req: item.state_id,

See shinken-monitoring/mod-livestatus#15

@Azef1 Azef1 closed this as completed Mar 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant