Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Activate shinken in omdistro?

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Activate shinken in omdistro?

    Hi all,

    [first version was in German, sorry - not enough coffeine...]

    I have been using Nagios for a couple of years now and have recently startet to use omdistro here at work. After upgrade to 0.48 we want to take a closer look at shinken, especially because we want to use distributed monitoring.

    I vaguely remember having read, that all you need to do is changing the core in "omd config ...". However it seems to easy - is that really all that I need to do to get a running shinken backend?

    I did some google research but did not find an answer to this. And by chance - is there any tutorial covering shinken usage in omdistro?

    Kind Regards from Munich!
    Maik

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

    Re: Activate shinken in omdistro?

    Hi yes, and it's quite easy

    Code:
    su - <site>
    omd stop
    omd config set CORE shinken
    omd start
    And it's done :-*

    Regards,


    Jean
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3

    Re: Activate shinken in omdistro?

    Hi Maik,
    yes, it's not more than a stop;switch;start sequence. Alas, the shinken integration into OMD does not exploit the full range of possibilities. By default you get a single-node Shinken system with all the processes on one machine. With the OMD config commands (nor with the text-based OMD-gui) it is not possible to setup for example a poller-only node. Maybe in a future version.

    The manual steps require:
    On the poller-node create a omd-site.
    Switch it's core to shinken.
    Edit etc/init.d/shinken (variable AVAIL_MODULES) and change the list of processes to start. Only poller.
    omd start. Now you should have a poller process listening on port 7771

    On the central node (your existing installation which you migrated to shinken), have a look at etc/shinken/shinken-specific.d/poller.cfg
    Copy this file to poller-remote.cfg and edit it.
    Change ###SITE###-poller to remote-poller (for example. You can give it any name you want)
    Change localhost to the hostname/ip-address of the remote poller-node.

    IMO this should be all there is to do.

    Gerhard

  4. #4
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Re: Activate shinken in omdistro?

    Hi Gerhard,

    thanks for the reply. We will probably set up shinken on the satellite system manually.

    One thing that puzzles me, is that after changing the core to shinken all hosts, that are not in the same network as the monitoring server have gone "red" but are reachable and still being checked. I wonder if shinken is using traceroute here instead of a simple ping. Due to firewall restrictions traceroutes are not allowed but ping is...

    Kind Regards
    Maik

  5. #5
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Re: Activate shinken in omdistro?

    Hi all,

    forget about my question about traceroute. After changing the host-alive-check (the one from check_mk) to check_icmp -n2 ... all Hosts went green. Maybe some nasty firewall or router blocks the way check_icmp is checking the hosts - 5 requests went out but only 2 replies came back all the time...

    Kind Regards
    Maik

  6. #6
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Re: Activate shinken in omdistro?

    Now I do see increasing Load on the omdistro VM (vmware server) and the check_mk checks return UNKNOWN quite often. I thought shinken as a backend would be more efficient than nagios!?!

    Any ideas?

    Kind Regards,
    Maik

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

    Re: Activate shinken in omdistro?

    What is your check latency? Was Nagios with a low latency ? Can you provide us a top output?
    No direct support by personal message. Please open a thread so everyone can see the solution

  8. #8
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Re: Activate shinken in omdistro?

    I did not change anything about latency so it should be whatever omdistro defaults to. (Will take a look at config files in a minute)

    top looks like this:

    Code:
    top - 09:52:00 up 16 min, 1 user, load average: 2.28, 3.20, 2.37
    Tasks: 99 total,  3 running, 96 sleeping,  0 stopped,  0 zombie
    Cpu(s): 0.7%us, 0.0%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem:  1036092k total,  524784k used,  511308k free,  69028k buffers
    Swap:  409616k total,  25872k used,  383744k free,  83612k cached
    
     PID USER   PR NI VIRT RES SHR S %CPU %MEM  TIME+ COMMAND                       
     6395 muc    18 -2 45432 40m 2148 S 0.7 4.0  0:30.30 python                        
     6432 muc    18 -2 28868 23m 1696 S 0.7 2.3  0:02.92 python                        
     6509 muc    18 -2 43960 22m 1688 R 0.7 2.2  0:16.74 python                        
     6403 muc    18 -2 36992 24m 2224 S 0.3 2.4  0:04.25 python                        
      1 root   20  0 2104 288 264 S 0.0 0.0  0:02.22 init                         
      2 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 kthreadd                       
      3 root   RT -5   0  0  0 S 0.0 0.0  0:00.00 migration/0                     
      4 root   15 -5   0  0  0 S 0.0 0.0  0:00.14 ksoftirqd/0                     
      5 root   RT -5   0  0  0 S 0.0 0.0  0:00.00 watchdog/0                      
      6 root   15 -5   0  0  0 S 0.0 0.0  0:00.04 events/0                       
      7 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 khelper                       
      39 root   15 -5   0  0  0 S 0.0 0.0  0:02.08 kblockd/0                      
      41 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 kacpid                        
      42 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 kacpi_notify                     
     170 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 kseriod                       
     208 root   20  0   0  0  0 S 0.0 0.0  0:00.10 pdflush                       
     209 root   20  0   0  0  0 S 0.0 0.0  0:00.46 pdflush                       
     210 root   15 -5   0  0  0 S 0.0 0.0  0:04.58 kswapd0                       
     211 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 aio/0                        
     925 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 scsi_eh_0                      
     933 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 ata/0                        
     934 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 ata_aux                       
     1024 root   15 -5   0  0  0 S 0.0 0.0  0:11.22 kjournald                      
     1097 root   16 -4 2288 264 260 S 0.0 0.0  0:00.06 udevd                        
     1558 root   15 -5   0  0  0 S 0.0 0.0  0:00.00 kpsmoused

    And another thing I noticed: When I click "Alerts", "Notifications" or "Event Log" in thruk (1.0.4) there is a python process eating up memory until I get a "internal server error" in thruk and "omd restart" says that it failed to stop the broker.


  9. #9
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Re: Activate shinken in omdistro?

    [quote author=naparuba link=topic=18.msg32#msg32 date=1307519212]
    What is your check latency? Was Nagios with a low latency ? Can you provide us a top output?
    [/quote]

    I probably misunderstood your question. You meant the Latency as given by the performance Info Section in the Web UI?

    Service Check Latency with Nagios is "Check Latency: 0.05 sec 0.62 sec 0.311 sec" (min / max / avg)

    Host Check Latency with Nagios is "Check Latency: 0.05 sec 0.48 sec 0.292 sec" (min / max / avg)

    After a few minutes Latencies with shinken are:

    Service Check Latency: 0.00 sec 8.00 sec 2.411 sec
    Host Check Latency: 0.90 sec 11.42 sec 4.101 sec
    (again min/max/avg)

    Looks like something is not running as it should within this installation?

    Kind Regards
    Maik



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

    Re: Activate shinken in omdistro?

    It's normal sue to Shinken queue way of workingto get a latency near 2sec. But the maximum at 8 is high. For the log query, it should be the livestatus module. Can you try to get another top output when there is load and if possible with command name (type "c" during the top) ? (here there is no working process).

    Thanks,
    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
  •