Announcement

Collapse
No announcement yet.

Wrong value for duration

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

  • Wrong value for duration

    Hi,

    on my ./oreon.php?p=303&o=sp I get values like '01:13:28' (after 1 sec '01:13:29' etc.) for the duration of a state (which changed for example within the last 5 minutes).
    In ./oreon.php?p=303&o=s it's displayed correctly.

    Is this a known problem?


    Thx.
    /peter

  • #2
    Hmm, the Values for 'Current State Duration' in 'Service State Information' don't change anymore.

    Comment


    • #3
      It seems the value rotates in a specific range. A few minutes ago I saw '01:13:28' now it's ' 01:05:16'.

      Comment


      • #4
        Hi,

        Don't you have more than one nagios instance started? See: http://www.nagios.org/faqs/viewfaq.p...showdesc=false

        Try:
        Code:
        /etc/init.d/nagios stop
        sleep 5
        ps aux | grep nagios
        killall nagios

        Comment


        • #5
          Hi,

          thank you for your answer, but there is only one instance running.


          /peter

          Comment


          • #6
            Hello,

            it sounds like a bug

            in file 'include/status/service_probleme.php'

            after line 19, add
            require_once './class/other.class.php';
            replace line 62 by
            echo "<td bgcolor='". return_color($i, $s->get_status()) ."' align='center' class='text9'> ". Duration::toString(time() - $s->get_last_change()) ."</td>";
            it's will be corrected in next release
            StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
            Dons Paypal

            Comment


            • #7
              Great, it works.
              Thank you.


              What's about the problem I described in my secound posting?
              Any ideas?

              Originally posted by Prometheus
              Hmm, the Values for 'Current State Duration' in 'Service State Information' don't change anymore.

              thx
              /peter

              Comment


              • #8
                I've corrected and put update on CVS . I've also added a short link for all services in services problems pages.

                ++
                Julien Mathis
                Centreon Project Leader
                www.merethis.com |

                Comment

                Working...
                X