Announcement

Collapse
No announcement yet.

check_graph_ping

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • check_graph_ping

    I have Oreon 1.2.2 installed and am unable to get check_graph_ping to work except from the command line. If I su to nagios and run ./check_graph_ping -H 172.18.100.1 -n 2 -g -S 2 it works and creates the rrd file. However from the Oreon, the service that I created reports back "no output". I used Babelfish to view the French forums and found a couple of things to look at but nothing that helped solve the issue. Any ideas?

    # 'check_graph_ping' command definition 9
    define command{
    command_name check_graph_ping
    command_line $USER1$/check_graph_ping.pl -H $HOSTADDRESS$ -w 200,20% -c 500,40% -n $ARG1$ -g -S $ARG2$

    # 'Check Ping' service definition 1
    #
    #
    #service_id 2
    define service{
    service_description Check Ping
    host_name NocSBS
    is_volatile 0
    check_command check_graph_ping!2!2
    max_check_attempts 3
    normal_check_interval 5
    retry_check_interval 1
    check_period 24x7
    freshness_threshold 0
    low_flap_threshold 0
    high_flap_threshold 0
    notification_interval 5
    notification_period 24x7
    notification_options w,u,c,r
    contact_groups NocContactGroup
    }

  • #2
    you must change the check command:
    $USER1$/check_graph_ping.pl -H $HOSTADDRESS$ -w 200,20% -c 500,40% -g -S $ARG1$

    after that, it's good (so I think ) :lol:
    Ubuntu 8.04
    Nagios 3.2 + nagios-plugins-1.4.14
    ndoutils-1.4b9
    Centreon 2.1.8
    centreon-syslog-frontend-1.2.1 + centreon-syslog-server-1.1

    Comment


    • #3
      Re: check_graph_ping

      Originally posted by chammond
      command_line $USER1$/check_graph_ping.pl -H $HOSTADDRESS$ -w 200,20% -c 500,40% -n $ARG1$ -g -S $ARG2$

      check_command check_graph_ping!2!2
      you don't need to specify $ARG2$, oreon do it for you
      StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
      Dons Paypal

      Comment


      • #4
        check_graph_ping

        It is still not working. Here is the information, let me know what I have done wrong. I am
        sure I am missing something stupid. ops:

        Service "Check Ping"
        Host name : NocSBS
        Description : Check Ping
        Is Volatile : No
        # Service Groups : NOCLinuxServiceGroup
        Check_command : check_graph_ping
        Check_command_arguments :
        Max_check_attempts : 3
        Normal_check_interval : 5 * 60 secondes
        Retry_check_interval : 1 * 60 secondes
        Active_checks_enabled : Nothing
        Passive_checks_enabled : Nothing
        Check_period : 24x7
        Parallelize_check : Nothing
        Obsess_over_service : Nothing
        Check_freshness : Nothing
        Freshness treshold : 0 secondes
        Event_handler :
        Event_handler_arguments :
        Event_handler enabled : Nothing
        Low flap treshold : 0 %
        High flap treshold : 0 %
        Flap_detection_enabled : Nothing
        Process_perf_data : Nothing
        Retain_status_information : Nothing
        Retain_nonstatus_information : Nothing
        Notification_interval : 5 * 60 secondes
        Notification_period : 24x7
        Notification_options : w,u,c,r
        Notification_enabled : Nothing
        # Contact Groups : NocContactGroup
        Stalking_options :
        Status : Enabled

        # 'check_graph_ping' command definition 9
        define command{
        command_name check_graph_ping
        command_line $USER1$/check_graph_ping.pl -H $HOSTADDRESS$ -w 200,20% -c 500,40% -g -S $ARG1$

        # 'Check Ping' service definition 1
        #
        #
        #service_id 2
        define service{
        service_description Check Ping
        host_name NocSBS
        is_volatile 0
        check_command check_graph_ping!2
        max_check_attempts 3
        normal_check_interval 5
        retry_check_interval 1
        check_period 24x7
        freshness_threshold 0
        low_flap_threshold 0
        high_flap_threshold 0
        notification_interval 5
        notification_period 24x7
        notification_options w,u,c,r
        contact_groups NocContactGroup
        }

        Comment


        • #5
          it seems correct (for me)

          if plugin output (no ouput)... there is something wrong with plugin code.

          with user nagios, launch plugin with full path :
          /usr/local/nagios/libexec/check_graph_ping.pl .......

          Do you have generate your 'oreon.conf' in 'Options > Plugins' ?
          StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
          Dons Paypal

          Comment


          • #6
            check_graph_ping

            [[email protected] /]# su nagios
            sh-3.00$ /usr/lib/nagios/plugins/check_graph_ping.pl -H 172.18.100.1 -g -S 2
            GPING OK - rtt min/avg/max/mdev = 0.226/0.226/0.226/0.000 ms, pipe 2

            The rrd is properly updated as well.

            As for the oreon.conf, yes. I had and just did it again to make sure.

            Things that make you go, hmmmmmmmmm......

            Thanks for the assistance
            Chris

            Comment


            • #7
              check_graph_ping

              Is there any way to make nagios log "everything" including the command to run the plugin and the output of the plugin in the nagios log? I am looking but don't see anything though like always I could have overlooked it.

              I have been accused of being sharp as a beack ball. :?

              Comment


              • #8
                check_graph_ping

                Ok, I have tried 2 other check_graph plugins and they all report the same "no output". The last one was the check_graph_traffic and I used the info in a post from one of the Oreon team that worked for the other person but I get "no output". So I don't think it is Oreon, the plugin or Nagios but more likely some supporting app is the problem. Would any of the supporting apps being broken cause the plugin to fail when Nagios calls it but not when run by hand?

                Thanks
                Chris

                Comment


                • #9
                  Check_graph plugins

                  BTW, here is the information that is in the status.log

                  [1127137584] SERVICE;Oreon;Check_Graph_Traffic;CRITICAL;3/3;HARD;1127137539;
                  1127137839;ACTIVE;1;1;0;1126899178;0;CRITICAL;120; 0;0;238061;1127137118;67;1;0; 0;0;0;0.00;0;1;1;0;(No output!)

                  Thanks
                  Chris

                  Comment


                  • #10
                    Re: check_graph_ping

                    Originally posted by chammond
                    Ok, I have tried 2 other check_graph plugins and they all report the same "no output". The last one was the check_graph_traffic and I used the info in a post from one of the Oreon team that worked for the other person but I get "no output". So I don't think it is Oreon, the plugin or Nagios but more likely some supporting app is the problem. Would any of the supporting apps being broken cause the plugin to fail when Nagios calls it but not when run by hand?

                    Thanks
                    Chris
                    - rename check_graph_ping.pl into check_graph_ping.pl.old
                    - create a new check_graph_ping
                    - add this lines into the new check_graph_ping
                    #!/bin/sh
                    /usr/local/nagios/libexec/check_graph_ping.pl.old $* > /usr/local/nagios/libexec/debug.log 2>&1
                    StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
                    Dons Paypal

                    Comment


                    • #11
                      Debug info

                      Ok, this is from the check_graph_traffic.pl which is the last one I setup. After renaming the original plugin and creating the new one, Nagios no longer claims it is critical. It now says that it is okay but it still reports no output. Below is the info reported in the debug.log.

                      Traffic: 1022.94 B/s (0.0%) in, 2.50 kB/s (0.0%) out - Total RX Bytes: 8.73 MB, Total TX
                      Bytes: 12.78 MB

                      Thanks
                      Chris

                      Comment


                      • #12
                        Check_graph plugins

                        Oh, the rrd is being created and populated.

                        Chris

                        Comment


                        • #13
                          Check_graph plugins

                          Dag gonnit!! Now it shows unknown and the graph has stopped receiving data. :?

                          Comment


                          • #14
                            :? :? :? that's wrong with your installation.....
                            StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
                            Dons Paypal

                            Comment


                            • #15
                              Check_graph plugins

                              Me!!!!! I just realized I made a change to rights and screwed it up. It is now working again with the exception of the status information for the service reporting no output. The heart of things appear to be working.

                              Check_Graph_Traffic OK 2005/09/19 12:27:25 12 m, 20 s 1/3 (No output!)

                              Thanks
                              Chris

                              Comment

                              Working...
                              X