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

Thread: Passive Monitoring with NSCA

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    15

    Passive Monitoring with NSCA

    Hallo,

    I tried to make passiv monitoring but without access.

    I didn't find a helpfully instruction for that.

    Can somebody roughly tell me how to make that? Step by Step

    What I have made:

    in nagios.cfg
    Code:
    accept_passive_service_checks=1
    accept_passive_host_checks=1
    in shinken-specific.cfg
    Code:
    define receiver {
     :
     modules NSCA
     :
    }
    
    define module {
     encryption_method 1
     host *
     module_type nsca_server
     module_name NSCA
     password helloworld
     port 5667
    }
    i added a host.cfg
    Code:
     define host{
       use      		 linux
       host_name   	 shinken-test
       address    	 shinken-testsys.test.....
       passive_checks_enabled	 1
     }
    How can I test it from a host?
    What should been done on the host?
    What are the command to send somehting to nsca?

    Help me please. :'(

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

    Re: Passive Monitoring with NSCAP

    Maybe you should look instead at WS_Arbiter module. It's a pure web service, so a simple curl command will be ok for sending commands. For NSCA, you will need the send_nsca command.
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3
    Junior Member
    Join Date
    Sep 2012
    Posts
    15

    Re: Passive Monitoring with NSCA

    Sorry, but I need to do it with NSCA :'(

    Now I installed NSCA and I added the following service:

    Code:
    define service {
     service_description  Disk_Space
     use  		generic-service
     check_command  	check_dummy
     host_name 		shinken-test
     passive_checks_enabled     1            
     active_checks_enabled      0
    }
    Then I make a test on the same PC where shinken is running with the following command:
    Code:
    printf "shinken-test\tDisk_Space\t4\ttest shinken\n" | /usr/sbin/send_nsca -H 10.40.25.176 -c /etc/send_nsca.cfg
    with the result: 1 data packet(s) sent to host successfully.

    But there is no change in the service?
    :


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

    Re: Passive Monitoring with NSCA

    Look at your arbiter log to see if the packet was really ok.
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5
    Junior Member
    Join Date
    Sep 2012
    Posts
    15

    Re: Passive Monitoring with NSCA

    Yes I have done yeappie. ;D ;D ;D ;D

    But it only works from the PC where Shinken is installed not from the remote one : : :
    hhhmmmm

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

    Re: Passive Monitoring with NSCA

    Look at a netstat to see if the NSCA module is opening something else than localhost.
    No direct support by personal message. Please open a thread so everyone can see the solution

  7. #7
    Junior Member
    Join Date
    Sep 2012
    Posts
    15

    Re: Passive Monitoring with NSCA

    I have following fron netstat:

    Code:
    tcp    0   0 0.0.0.0:5667      0.0.0.0:*        LISTEN

  8. #8
    Junior Member
    Join Date
    Sep 2012
    Posts
    15

    Re: Passive Monitoring with NSCA

    Now I have done another command with following result:

    Code:
    root@shinken-testsys:~# netstat -lpn | grep 5667
    tcp    0   0 0.0.0.0:5667      0.0.0.0:*        LISTEN   30544/python
    I think there shouldn't be python but nsca?
    How can I change this?

  9. #9
    Junior Member
    Join Date
    Sep 2012
    Posts
    15

    Re: Passive Monitoring with NSCA

    It works.

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

    Re: Passive Monitoring with NSCA

    How?
    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
  •