Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: service dependencies in nagvis?

  1. #1

    service dependencies in nagvis?

    Hi,

    how can service dependencies be visualized with nagvis?

    Thanks,
    Timo

  2. #2
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: service dependencies in nagvis?

    I'm not sure it's possible in NagVis (maybe but I never see it), but they will be in the WebUI depedency graph.
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3

    Re: service dependencies in nagvis?

    Hello naparuba,

    thank you for your reply. As far as I have seen it yet, it is only possible to visualize host dependenies with nagvis NOT service dependencies. Because it depends on the "parents" statement in the host config. Also this graph shows only the view of the monitoring software, not a general view.

    My boss would really like to have such graphs like the ones on the this wiki page http://www.shinken-monitoring.org/wi...ies_in_shinken but for service dependencies too.

    Where can I find the dependency graph in WebUI? Could you please point me to a doc or a description where I can read about how it works? I found the docs about how you configure service dependencies in shinken but I haven't found a describtion about the WebUI.

    Regards,
    Timo

  4. #4
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: service dependencies in nagvis?

    The WebUI is launched by default in the 1.0.1 and will "inherit" from the host/service dep that you defined in your conf (so no new configuration, if you change your conf, the WebUI will changed too).

    It need a valid contact to connect (the rule is webui user=contact), and a password. You can try the default password way, by adding "password secret" to your contact definition and try to connect at http://yourserver:7767

    There are other password modules (and graph modules like for PNP4Nagios to see the graphs in the WebUI) but first try the simple "password in contact" way to test the WebUI

    The in the WebUI, click on a host/service, and in the detail page, you will have a button "see impact graph". It will be this graph

    Then you can customize the items icons if you want, like in navgis
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5

    Re: service dependencies in nagvis?

    Ok, WebUI is running but it seems that I am not able to get the service dependencies showing in the impact map.

    I want to define a depenency for e-mail submission (smtp auth) to an ldap server which is doing the real authentication.

    I've got the following definitions:

    Code:
    define service {
      service_description    smtp587
      host_name         mx08
      #hostgroup_name      mx-out-servers
      check_command       check_smtp587
      use            generic-zdv-service
      service_dependencies   ldap
    }
    
    define service {
      service_description    ldap
      use            generic-zdv-service
      #hostgroup_name      ldap-servers
      host_name         u-003-sldap01
      check_command       check_ldap3
    }
    The WebUI should show a service dependency when I click on the service entry "smtp587" and there on "show impact map", shouldn't it?

    Well, it doesn't do it on my setup, so I assume I am doing something wrong. But I don't know where.

    Can you elaborate?

    More questions:

    At the moment there is no check_ldap3 in the plugin dir, so the test fails. Shouldn't the service "smtp587" become red too but I just don't get a notification?

    Can I use hostgroups together with service dependencies?

    Thanks,
    Timo


  6. #6
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: service dependencies in nagvis?

    Hi, there is an error here :
    Code:
    service_dependencies   ldap
    It miss the hostname before ldap, like :
    Code:
    u-003-sldap01,ldap
    For smtp, I don't know, it depend of the true link between smtp and ldap. The test will be launched, and if it's ok, it will be green. If not, and the dependencie is ok, it will be "hide" in the WebUI, and you will only see the root problem, ldap.
    No direct support by personal message. Please open a thread so everyone can see the solution

  7. #7

    Re: service dependencies in nagvis?

    Ah, ok. I missed that. Thank you!

    It's working, when I correct it like you said.

    I assume that advanced service dependencies are being displayed in the WebUI, too right?

    I think I missed something here also, because I don't see the service dependency in the impact map.
    Here is my config:

    Code:
    define service {
      service_description    smtp587
      host_name         mx08
      check_command       check_smtp587
      use            generic-zdv-service
      #service_dependencies   u-003-sldap01,ldap
    }
    
    define service {
      service_description    ldap
      use            generic-zdv-service
      host_name         u-003-sldap01
      check_command       check_ldap3
    }
    
    define service_dependency {
      service_description      ldap
      host_name           u-003-sldap01
      dependent_host_name      mx08
      dependent_service_description smtp587
      execution_failure_criteria   c,u
      notification_failure_criteria w,c,u
    }
    Thanks,
    Timo

  8. #8
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: service dependencies in nagvis?

    Hum sounds strange, because internally, it will generate the same object

    Is the arbiter raising a warning or something like it?
    No direct support by personal message. Please open a thread so everyone can see the solution

  9. #9

    Re: service dependencies in nagvis?

    I don't see any warning from the arbiter. Here is a snippet from the arbiter log after a restart (only arbiter restart):

    Code:
    2012-05-04 12:11:44,697 [1336126304] Stopping all modules
    
    2012-05-04 12:11:44,697 [1336126304] I'm stopping module 'NamedPipe-Autogenerated' process pid:7061 
    
    2012-05-04 12:11:45,694 [1336126305] Using the local log file '/var/log/shinken/arbiterd.log'
    
    2012-05-04 12:11:45,752 [1336126305] Trying to init module : NamedPipe-Autogenerated
    
    2012-05-04 12:11:45,759 [1336126305] Info : Starting external module NamedPipe-Autogenerated
    
    2012-05-04 12:11:45,760 [1336126305] Starting external process for instance NamedPipe-Autogenerated
    
    2012-05-04 12:11:45,763 [1336126305] NamedPipe-Autogenerated is now started ; pid=8991
    
    2012-05-04 12:11:45,767 [1336126305] And arbiter is launched with the hostname:myserver from an arbiter point of view of addr :myserver.mydom.de
    
    2012-05-04 12:11:45,767 [1336126305] Begin to dispatch configurations to satellites
    
    2012-05-04 12:11:45,784 [1336126305] Dispatching Realm All
    
    2012-05-04 12:11:45,784 [1336126305] [All] Dispatching 1/1 configurations
    
    2012-05-04 12:11:45,785 [1336126305] [All] Schedulers order : scheduler-1
    
    2012-05-04 12:11:45,785 [1336126305] [All] Dispatching configuration 0
    
    2012-05-04 12:11:45,785 [1336126305] [All] Trying to send conf 0 to scheduler scheduler-1
    
    2012-05-04 12:11:45,803 [1336126305] [All] Dispatch OK of conf in scheduler scheduler-1
    
    2012-05-04 12:11:45,804 [1336126305] OK, all schedulers configurations are dispatched :)
    
    2012-05-04 12:11:45,804 [1336126305] [All] Dispatching reactionner satellite with order : reactionner-1 (spare:False), 
    
    2012-05-04 12:11:45,804 [1336126305] [All] Trying to send configuration to reactionner reactionner-1
    
    2012-05-04 12:11:45,805 [1336126305] [All] Dispatch OK of configuration 0 to reactionner reactionner-1
    
    2012-05-04 12:11:45,806 [1336126305] [All] OK, no more reactionner sent need
    
    2012-05-04 12:11:45,806 [1336126305] [All] Dispatching poller satellite with order : poller-1 (spare:False), 
    
    2012-05-04 12:11:45,806 [1336126305] [All] Trying to send configuration to poller poller-1
    
    2012-05-04 12:11:45,808 [1336126305] [All] Dispatch OK of configuration 0 to poller poller-1
    
    2012-05-04 12:11:45,808 [1336126305] [All] OK, no more poller sent need
    
    2012-05-04 12:11:45,808 [1336126305] [All] Dispatching broker satellite with order : broker-1 (spare:False), broker-1 (spare:False), 
    
    2012-05-04 12:11:45,808 [1336126305] [All] Trying to send configuration to broker broker-1
    
    2012-05-04 12:11:45,814 [1336126305] [All] Dispatch OK of configuration 0 to broker broker-1
    
    2012-05-04 12:11:45,814 [1336126305] [All] OK, no more broker sent need
    
    2012-05-04 12:11:45,815 [1336126305] [All] Trying to send configuration to receiver receiver-1
    
    2012-05-04 12:11:45,815 [1336126305] [All] Dispatch OK of configuration to receiver receiver-1
    
    2012-05-04 12:11:46,817 [1336126306] TIMEPERIOD TRANSITION: 24x7;-1;1
    
    2012-05-04 12:11:46,817 [1336126306] TIMEPERIOD TRANSITION: workhours;-1;1
    
    2012-05-04 12:11:46,817 [1336126306] TIMEPERIOD TRANSITION: none;-1;0
    
    2012-05-04 12:11:46,818 [1336126306] TIMEPERIOD TRANSITION: us-holidays;-1;0
    
    2012-05-04 12:11:46,818 [1336126306] TIMEPERIOD TRANSITION: 24x7_sans_holidays;-1;1

    Thanks,
    timo

  10. #10
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: service dependencies in nagvis?

    It's more about the "check" phase in fact.
    No direct support by personal message. Please open a thread so everyone can see the solution

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •