Announcement

Collapse
No announcement yet.

"check_load_average " giving "Warning thresh

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

  • "check_load_average " giving "Warning thresh

    Hi team
    I had made some services for some hosts using the check commands , some are giving results , while some are not
    the servioces using the check commands "check_load_average" and "check_swap" are not giving the desired results , the message shown are

    Load Average (check_load_average) :-- ""Warning threshold must be float or float triplet!""

    Swap Check (check_swap) :- "" Warning threshold must be integer or percentage!"

    Please Guide me
    Thanks
    Joseph John
    Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
    my stupid notes , you can find at
    http://geocities.com/jjk_saji/

  • #2
    Hello,

    what is your command arguments ? It seems to have some errors with threshold values..
    StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
    Dons Paypal

    Comment


    • #3
      chek_load_average , check_swap

      Hi
      Thanks for the mail ,
      My command arguments are this

      check_load_average
      $USER1$/check_load $HOSTADDRESS$ -w $ARG1$ -c $ARG2$

      check_swap
      $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
      This parameter were there when I was making the service corresponding to the check_commands , other parameters like host -alive works , while this is not working
      Thanks
      Joseph John
      Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
      my stupid notes , you can find at
      http://geocities.com/jjk_saji/

      Comment


      • #4
        try this syntax (exemple) :
        ./check_load -w 5,0:15,0:30,0 -c 10:20:50
        or
        ./check_load -w 5:15:30 -c 10:20:50
        StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
        Dons Paypal

        Comment


        • #5
          it worsk on comand mode , not with services "check_comm

          Hi Wistof
          Thanks for the mail , I tried out the command , I am getting results from the command mode ,
          [[email protected] libexec]# ./check_load -w 5,0:15,0:30,0 -c 10:20:50 WARNING - load average: 0.00, 0.23, 0.36|load1=0.000;5.000;10.000;0; load5=0.230;0.000;20.000;0; load15=0.360;15.000;50.000;0;
          [[email protected] libexec]# ./check_load -w 5:15:30 -c 10:20:50 OK - load average: 0.95, 0.44, 0.42|load1=0.950;5.000;10.000;0; load5=0.440;15.000;20.000;0; load15=0.420;30.000;50.000;0;


          But when I edit the services and add this command , I get error when i give it on “Check_command_arguments “
          I get the following errors while generating the cfg
          Error: Service check command 'check_load_average$USER1$/check_load -w 5:15:30 -c 10:20:50' specified in service 'load average' for host 'Apsdev' not defined anywhere!
          Checked 18 services.
          I am using RHEL 4, oreon-1.2.2-RC3/ and nagios-1.2/
          Please Guide me where I had gone wrong
          Joseph John
          Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
          my stupid notes , you can find at
          http://geocities.com/jjk_saji/

          Comment


          • #6
            if you edit yout checkcommand.cfg, that is command_line for check_load_average ?
            StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
            Dons Paypal

            Comment


            • #7
              Hi
              I had tried editing the "checkcommand.cfg" , but that does'nt help me , in the service definition it is not getting reflected through ' check_command _arguments' , I assume we need to change some information on the database itslef , I think on 'command' table
              I would also like to know from other users , whether they faced this problem
              Thanks
              Joseph John
              Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
              my stupid notes , you can find at
              http://geocities.com/jjk_saji/

              Comment


              • #8
                you don't need to modify database directly

                in services.cfg, that's about 'load average'
                StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
                Dons Paypal

                Comment


                • #9
                  Hi
                  Thanks for the reply
                  My experience with “oreon “ is that even if u modify the cfg files , it will get over write the ../etc/*.cfg file , when u generate the nagios file from oreon
                  In this case , there is no a solution , by editing services.cfg , this is my humble opinion
                  Thanks
                  Joseph John
                  Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
                  my stupid notes , you can find at
                  http://geocities.com/jjk_saji/

                  Comment


                  • #10
                    exact, Oreon overwrite .cfg of nagios.

                    when i say edit 'services.cfg', it is just for looking informations...

                    at home : checkcommands.cfg
                    # 'check_local_load' command definition 27
                    define command{
                    command_name check_local_load
                    command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
                    }
                    services.cfg :
                    # 'load' service definition 54
                    #
                    #
                    #service_id 100
                    define service{
                    service_description load
                    host_name localhost
                    check_command check_local_load!10:20:50!20:40:70
                    max_check_attempts 3
                    normal_check_interval 5
                    retry_check_interval 2
                    check_period 24x7
                    freshness_threshold 0
                    low_flap_threshold 0
                    high_flap_threshold 0
                    notification_interval 30
                    notification_period none
                    notification_options w
                    notifications_enabled 0
                    contact_groups supa_admins
                    }
                    what's about your files ?
                    StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
                    Dons Paypal

                    Comment


                    • #11
                      My services.cfg for load_average is

                      # 'load average' service definition 50
                      #
                      #
                      #service_id 5
                      define service{
                      service_description load average
                      host_name Apsdev
                      check_command check_load_average
                      max_check_attempts 5
                      normal_check_interval 5
                      retry_check_interval 5
                      active_checks_enabled 1
                      passive_checks_enabled 1
                      check_period 24x7
                      parallelize_check 1
                      obsess_over_service 1
                      check_freshness 1
                      freshness_threshold 5
                      event_handler_enabled 1
                      low_flap_threshold 0
                      high_flap_threshold 0
                      flap_detection_enabled 1
                      process_perf_data 1
                      retain_status_information 1
                      retain_nonstatus_information 1
                      notification_interval 5
                      notification_period 24x7
                      notification_options w,u,c,r
                      notifications_enabled 1
                      contact_groups IT-Support
                      stalking_options o,w,u,c
                      }
                      and my
                      checkcommands.cfg show

                      # 'check_local_load' command definition 21
                      define command{
                      command_name check_local_load
                      command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
                      }
                      Thanks
                      Joseph John
                      Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
                      my stupid notes , you can find at
                      http://geocities.com/jjk_saji/

                      Comment


                      • #12
                        you need to define check_command_argument in your service
                        for example :
                        !10:20:50!20:40:70
                        StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
                        Dons Paypal

                        Comment


                        • #13
                          Thanks , It worked

                          Thanks Wistof
                          It worked , it shows

                          load average Service State Informations Re-schedule an imediate check of this service
                          OK 2005/09/03 12:33:00 6 m, 19 s 1/5 OK - load average: 0.48, 0.49, 0.40


                          Thanks
                          Joseph John
                          Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
                          my stupid notes , you can find at
                          http://geocities.com/jjk_saji/

                          Comment

                          Working...
                          X