Results 1 to 8 of 8

Thread: [RESOLVED] PNP and wildcards

  1. #1

    [RESOLVED] PNP and wildcards

    Hello,

    I've configure PNP with the help of the other topic. And I'm facing a problem with my configuration for some services.
    I belief it's due to the wildcards
    Code:
    define service {
     service_description  Ssh
     use  generic-service
     check_command  check_ssh
     host_name  *
     servicegroups Ssh
      process_perf_data 1
      action_url ../../pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' target='main' class='tips' rel='../../pnp4nagios/popup?host=$HOSTNAME$&srv=$SERVICEDESC$
    }
    Is it possible to use the * with PNP ?

    Thanks in advance

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

    Re: PNP and wildcards

    You mean for the host_name property? I should not have an effect for PNP, because it will just "create" X same services for Thruk, like if you really wrote theses X services one by one.

    What is missing in your PNP and make you think you got a problem exactly?
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3

    Re: PNP and wildcards

    I'm fetching some graph from PNP, but some of them are missing. No graph for the host, neither for the ssh service, https-certificate(could be normal due to the format of the check's return).

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

    Re: PNP and wildcards

    Do you have and example of the output return for theses plugins?
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5

    Re: PNP and wildcards

    host :
    Code:
    Host State Information
    Host Status: 	
     UP 
     (for 0d 17h 7m 16s)
    Status Information: 	Host assumed to be UP
    Host assumed to be UP
    Performance Data: 	
    Current Attempt: 	1/2 (HARD state)
    Last Check Time: 	15:36:45
    Check Type: 	ACTIVE
    Check Latency / Duration: 	0.202 / 0.000 seconds
    Next Scheduled Active Check:  	15:37:47
    Last State Change: 	2011-10-12 22:29:58
    Last Notification: 	2011-10-12 22:29:58 (notification 0)
    Is This Host Flapping? 	
     NO 
     (0.00% state change)
    In Scheduled Downtime? 	
     NO 
    Last Update: 	15:37:14 ( 0d 0h 0m 0s ago)
    Modified Attributes
    Ssh :
    Code:
    Service State Information
    Current Status: 	
     OK 
     (for 0d 17h 8m 19s)
    Status Information: 	SSH OK - OpenSSH_5.5p1 Debian-6+squeeze1 (protocol 2.0)
    Performance Data: 	
    Current Attempt: 	1/2 (HARD state)
    Last Check Time: 	15:36:31
    Check Type: 	ACTIVE
    Check Latency / Duration: 	0.000 /0.019 seconds
    Next Scheduled Check:  	15:41:34
    Last State Change: 	2011-10-12 22:29:58
    Last Notification: 	2011-10-12 22:29:58 (notification 0)
    Is This Service Flapping? 	
     NO 
     (0.00% state change)
    In Scheduled Downtime? 	
     NO 
    Last Update: 	15:38:17 ( 0d 0h 0m 0s ago)
    Modified Attributes
    and on ftp ; it's working ; output :
    Code:
    Current Status: 	
     OK 
     (for 0d 17h 9m 21s)
    Status Information: 	FTP OK - 4.538 second response time on port 21 [220 Inactivity timer = 120 seconds. Use 'site]
    Performance Data: 	time=4.537566s;;;0.000000;10.000000
    Current Attempt: 	1/2 (HARD state)
    Last Check Time: 	15:34:17
    Check Type: 	ACTIVE
    Check Latency / Duration: 	2.000 /4.618 seconds
    Next Scheduled Check:  	15:39:24
    Last State Change: 	2011-10-12 22:29:58
    Last Notification: 	2011-10-12 22:29:58 (notification 0)
    Is This Service Flapping? 	
     NO 
     (0.00% state change)
    In Scheduled Downtime? 	
     NO 
    Last Update: 	15:39:19 ( 0d 0h 0m 0s ago)
    Modified Attributes
    And I would like to have a graph with the host latency and another with the ssh_check latency.

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

    Re: PNP and wildcards

    for both host and ssh checks, the plugin do not output perf_data. What plugins are you using for the check_ssh exactly? Ther must be an option to add to get perf_data output (like a -f or something like that).
    No direct support by personal message. Please open a thread so everyone can see the solution

  7. #7

    Re: PNP and wildcards

    I was using check_ssh ; and I didn't found options for perf_data , so I've moved to check_tcp -H $HOSTADDRESS$ -p 22 ; and I get perf_data. for the host ; I've add to my host definition
    Code:
    check_command check_host_alive
    It's seems to work.

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

    Re: PNP and wildcards

    Great, it will do the trick ;D
    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
  •