Announcement

Collapse
No announcement yet.

Problem with the monitoring panel

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

  • Problem with the monitoring panel

    Hi all!

    I have a problem with the monitoring list.

    This is my situation:
    My plugin, performs its check, then produces a log file and returns a string in this form :

    <a href="/logs/mylog.log">CRITICAL STATUS MESSAGE</a>

    so that the user can download the file containing some useful information.

    The first time I load the page, everything works. As soon as the page refreshes (or as soon as I click the refresh icon) I the following behaviour:
    • with Firefox: The status information column becames empty
    • With Internet Explorer: In the status information column I see a 'null' string


    If I look through the page source, I see my string (<a href"......)

    Do you know any workaround? I really need to show the link so that the user can download the file...

    Many thanks in advance,
    Massimiliano Ziccardi

  • #2
    Problem solved - Here is the solution

    Finally I've solved the problem. I'm quite disappointed, 'couse, after 2 months, NO-ONE did even try to help me (no people, no centreon developer).

    The problem was in the file ajaxMonitoring.js: the Javascript read the value of the element containing the plugin_output with the following code:

    line.getElementsByTagName("plugin_output")[0].firstChild.nodeValue;

    But, if the output of the plugin is a link, the line.getElementsByTagName("plugin_output")[0] is not the plugin output, but is the <A> tag.

    Attached you'll find the fixed JAVASCRIPT (just unzip it).
    Attached Files
    Last edited by mzicc; 19 December 2007, 15:08.

    Comment


    • #3
      GG !!!

      Hope developper will be interested to integrate this modifications for next release of centreon.
      Then it'll not be necessary to modify this piece of code a second time.
      Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
      Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
      Fedora Core 5 - 2.6.20-1.2320

      Comment


      • #4
        Hi,

        Could you open a bug request on bugs.centreon.com ?

        Thanks for this contrib
        Centreon 2.x

        Comment


        • #5
          Done.
          The bug is the FS#457.

          I've been away for a while, so I couldn't do it before.

          Attached you'll find an updated ajaxMonitoring.js that fixes a problem with Internet explorer.

          Regards,
          Massimiliano Ziccardi
          Attached Files

          Comment


          • #6
            It's ok on 1.4.2.2 I think...
            Julien Mathis
            Centreon Project Leader
            www.merethis.com |

            Comment

            Working...
            X