Xymon Mailing List Archive search

bbnote_editor

10 messages in this thread

list Roland Soderstrom · Tue, 4 Sep 2012 00:22:30 +0000 ·
I solved a problem with the excellent bbnote_edit by Galen Johnson

In 4.3.5 it works fine.
In 4.3.10 the menus doesn't work, I'm guessing it is because the menu javascripts are gone.

A simple change in the bbnote_editor.cgi solved the issue.
I'm not a good perl programmer so I consider this more of a hack...

Included my notes_header for 4.3  (a few typos)
and bbnote_editor.cgi for 4.3


-          Roland
Attachments (2)
list Steve Holmes · Tue, 11 Sep 2012 17:01:43 -0400 ·
Ok, I still have trouble with the menus when using this script, but first a
few corrections:

I had to remove the string "file:" from the line defining XYMONBODYHEADER
and then remove an extra comma in two lines referencing MENUITEMS.

***************
*** 52,63 ****
  }

  sub print_menuitems {
!
$ENV{'XYMONBODYHEADER'}='file:/usr/local/xymon/server/etc/xymonmenu.cfg';
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I can't
read from XYMONBODYHEADER");
!     while (<MENUITEMS,>) {
          print;
      }
!     close MENUITEMS,;
  }

  sub print_notesdata {
--- 52,63 ----
  }

  sub print_menuitems {
!     $ENV{'XYMONBODYHEADER'}='/usr/local/xymon/server/etc/xymonmenu.cfg';
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I can't
read from $ENV{'XYMONBODYHEADER'}");
!     while (<MENUITEMS>) {
          print;
      }
!     close MENUITEMS;
  }

  sub print_notesdata {


But still, the Views menu doesn't work (none of the other menus are right
either). It looks good, but when you select either Main View or All
Non-green View the URL that is built is wrong. E.g.:

https://xymonservername/xymon-seccgi/$XYMONSERVERWWWURL/xymon.html

The "xymon-seccgi" shouldn't be there and the $XYMONSERVERWWWURL should be
replaced with the actual path component from the variable by the same name.

I.e. for my server it should be:

https://xymonservername/xymon/xymon.html

I've verified that the environment hash is built ok, but have not figured
out what I need to do to get the value into the URL for the menu to use.

Has anyone else worked on this?

Thanks,
Steve

On Mon, Sep 3, 2012 at 8:22 PM, Roland Soderstrom <
quoted from Roland Soderstrom
user-0cec9512a49f@xymon.invalid> wrote:
 I solved a problem with the excellent bbnote_edit by Galen Johnson****

** **

In 4.3.5 it works fine.****

In 4.3.10 the menus doesn’t work, I’m guessing it is because the menu
javascripts are gone.****

** **

A simple change in the bbnote_editor.cgi solved the issue.****

I’m not a good perl programmer so I consider this more of a hack…****

** **

Included my notes_header for 4.3  (a few typos)****

and bbnote_editor.cgi for 4.3****

** **

**-          **Roland****

list Roland Soderstrom · Tue, 11 Sep 2012 22:44:13 +0000 ·
I discovered that last week, it worked somehow but was dependent on old notes.html already created. New ones didn't work.
As I'm not a good perl programmer I hacked a bit more and this one seems to work better, surely more bugs to show up!
( I just sort of just steal code and modify, no clue on how it really works...)

I didn't realize that the cgi actually built the edit notes pages on the fly so I changed the menu sub to edit it.
You have to edit the notes editor page with the menu as well as the notes.html page it creates.
The new sub does this for me at least, please try and report if it works.


-          Roland
quoted from Steve Holmes

From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] On Behalf Of Steve Holmes
Sent: Wednesday, 12 September 2012 7:02 AM
To: Roland Soderstrom
Cc: xymon at xymon.com
Subject: Re: [Xymon] bbnote_editor

Ok, I still have trouble with the menus when using this script, but first a few corrections:

I had to remove the string "file:" from the line defining XYMONBODYHEADER and then remove an extra comma in two lines referencing MENUITEMS.

***************
*** 52,63 ****
  }

  sub print_menuitems {
!     $ENV{'XYMONBODYHEADER'}='file:/usr/local/xymon/server/etc/xymonmenu.cfg';
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I can't read from XYMONBODYHEADER");
!     while (<MENUITEMS,>) {
          print;
      }
!     close MENUITEMS,;
  }

  sub print_notesdata {
--- 52,63 ----
  }

  sub print_menuitems {
!     $ENV{'XYMONBODYHEADER'}='/usr/local/xymon/server/etc/xymonmenu.cfg';
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I can't read from $ENV{'XYMONBODYHEADER'}");
!     while (<MENUITEMS>) {
          print;
      }
!     close MENUITEMS;
  }

  sub print_notesdata {


But still, the Views menu doesn't work (none of the other menus are right either). It looks good, but when you select either Main View or All Non-green View the URL that is built is wrong. E.g.:

https://xymonservername/xymon-seccgi/$XYMONSERVERWWWURL/xymon.html

The "xymon-seccgi" shouldn't be there and the $XYMONSERVERWWWURL should be replaced with the actual path component from the variable by the same name.

I.e. for my server it should be:

https://xymonservername/xymon/xymon.html

I've verified that the environment hash is built ok, but have not figured out what I need to do to get the value into the URL for the menu to use.

Has anyone else worked on this?

Thanks,
Steve
On Mon, Sep 3, 2012 at 8:22 PM, Roland Soderstrom <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> wrote:
I solved a problem with the excellent bbnote_edit by Galen Johnson

In 4.3.5 it works fine.
In 4.3.10 the menus doesn't work, I'm guessing it is because the menu javascripts are gone.

A simple change in the bbnote_editor.cgi solved the issue.
I'm not a good perl programmer so I consider this more of a hack...

Included my notes_header for 4.3  (a few typos)
and bbnote_editor.cgi for 4.3


-          Roland
Attachments (1)
list Maik Heinelt · Wed, 12 Sep 2012 08:23:58 +0900 ·
We use Xymon for testing a couple SSL certificates.
For most of our pages, the test shows the right certificate, but for 4-5 
pages, the test shows the localhost at localdomain certificate.
For sure, if we check the page online, it uses the correct certificate.

Any idea, why this happen only just for some of the pages?

The host.conf entry looks same for all pages.

XXX.XXX.XXX.XXX   https://mypage.com

Maik
list Larry Barber · Tue, 11 Sep 2012 21:27:43 -0500 ·
Is the page a redirect from another server? Xymon only returns the HTML
headers for the first server it hits.

Thanks,
Larry Barber
quoted from Maik Heinelt

On Tue, Sep 11, 2012 at 6:23 PM, Maik Heinelt <user-4ab5eb34adb2@xymon.invalid> wrote:
We use Xymon for testing a couple SSL certificates.
For most of our pages, the test shows the right certificate, but for 4-5
pages, the test shows the localhost at localdomain certificate.
For sure, if we check the page online, it uses the correct certificate.

Any idea, why this happen only just for some of the pages?

The host.conf entry looks same for all pages.

XXX.XXX.XXX.XXX   https://mypage.com

Maik
______________________________**

Xymon at xymon.com<
list Maik Heinelt · Wed, 12 Sep 2012 15:59:11 +0900 ·
No, it is a virtual host configured apache and no redirection.

Thanks

Maik Heinelt
quoted from Larry Barber

On 2012/09/12 11:27, Larry Barber wrote:
Is the page a redirect from another server? Xymon only returns the 
HTML headers for the first server it hits.

Thanks,
Larry Barber

On Tue, Sep 11, 2012 at 6:23 PM, Maik Heinelt <user-4ab5eb34adb2@xymon.invalid 
<mailto:user-4ab5eb34adb2@xymon.invalid>> wrote:

    We use Xymon for testing a couple SSL certificates.
    For most of our pages, the test shows the right certificate, but
    for 4-5 pages, the test shows the localhost at localdomain certificate.
    For sure, if we check the page online, it uses the correct
    certificate.

    Any idea, why this happen only just for some of the pages?

    The host.conf entry looks same for all pages.

    XXX.XXX.XXX.XXX https://mypage.com

    Maik
    
list Steve Holmes · Wed, 12 Sep 2012 10:14:40 -0400 ·
Yes! That works perfectly.
Thanks!
Steve

On Tue, Sep 11, 2012 at 6:44 PM, Roland Soderstrom <
quoted from Roland Soderstrom
user-0cec9512a49f@xymon.invalid> wrote:
 I discovered that last week, it worked somehow but was dependent on old
notes.html already created. New ones didn’t work.****

As I’m not a good perl programmer I hacked a bit more and this one seems
to work better, surely more bugs to show up!****

( I just sort of just steal code and modify, no clue on how it really
works…)****

** **

I didn’t realize that the cgi actually built the edit notes pages on the
fly so I changed the menu sub to edit it.****

You have to edit the notes editor page with the menu as well as the
notes.html page it creates.****

The new sub does this for me at least, please try and report if it works.*
***

** **

**-          **Roland****

** **

*From:* user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] *On Behalf Of *Steve
Holmes
*Sent:* Wednesday, 12 September 2012 7:02 AM
*To:* Roland Soderstrom
*Cc:* xymon at xymon.com
*Subject:* Re: [Xymon] bbnote_editor****

** **

Ok, I still have trouble with the menus when using this script, but first
a few corrections:

I had to remove the string "file:" from the line defining XYMONBODYHEADER
and then remove an extra comma in two lines referencing MENUITEMS.

***************
*** 52,63 ****
  }

  sub print_menuitems {
!
$ENV{'XYMONBODYHEADER'}='file:/usr/local/xymon/server/etc/xymonmenu.cfg';
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I
can't read from XYMONBODYHEADER");
!     while (<MENUITEMS,>) {
          print;
      }
!     close MENUITEMS,;
  }

  sub print_notesdata {
--- 52,63 ----
  }

  sub print_menuitems {
!     $ENV{'XYMONBODYHEADER'}='/usr/local/xymon/server/etc/xymonmenu.cfg';
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I
can't read from $ENV{'XYMONBODYHEADER'}");
!     while (<MENUITEMS>) {
          print;
      }
!     close MENUITEMS;
  }

  sub print_notesdata {


But still, the Views menu doesn't work (none of the other menus are right
either). It looks good, but when you select either Main View or All
Non-green View the URL that is built is wrong. E.g.:

https://xymonservername/xymon-seccgi/$XYMONSERVERWWWURL/xymon.html

The "xymon-seccgi" shouldn't be there and the $XYMONSERVERWWWURL should be
replaced with the actual path component from the variable by the same name.

I.e. for my server it should be:

https://xymonservername/xymon/xymon.html

I've verified that the environment hash is built ok, but have not figured
out what I need to do to get the value into the URL for the menu to use.

Has anyone else worked on this?

Thanks,
Steve****

On Mon, Sep 3, 2012 at 8:22 PM, Roland Soderstrom <
user-0cec9512a49f@xymon.invalid> wrote:****

I solved a problem with the excellent bbnote_edit by Galen Johnson****

 ****

In 4.3.5 it works fine.****

In 4.3.10 the menus doesn’t work, I’m guessing it is because the menu
javascripts are gone.****

 ****

A simple change in the bbnote_editor.cgi solved the issue.****

I’m not a good perl programmer so I consider this more of a hack…****

 ****

Included my notes_header for 4.3  (a few typos)****

and bbnote_editor.cgi for 4.3****

 ****

-          Roland****


** **
-- 

If they give you ruled paper, write the other way. -Juan Ramon Jimenez,
poet, Nobel Prize in literature (1881-1958)

I prayed for freedom for twenty years, but received no answer until I
prayed with my legs. -Frederick Douglass, Former slave, abolitionist,
editor, and orator (1817-1895)
list Larry Barber · Wed, 12 Sep 2012 09:34:36 -0500 ·
Try running this command:

/usr/bin/openssl s_client -showcerts -connect <hostname>:443

It will return the entire certificate chaing for the given host.

Thanks,
Larry Barber
quoted from Maik Heinelt


On Wed, Sep 12, 2012 at 1:59 AM, Maik Heinelt <user-4ab5eb34adb2@xymon.invalid> wrote:
 No, it is a virtual host configured apache and no redirection.

Thanks

Maik Heinelt


 On 2012/09/12 11:27, Larry Barber wrote:

Is the page a redirect from another server? Xymon only returns the HTML
headers for the first server it hits.

Thanks,
Larry Barber

On Tue, Sep 11, 2012 at 6:23 PM, Maik Heinelt <user-4ab5eb34adb2@xymon.invalid>wrote:
We use Xymon for testing a couple SSL certificates.
For most of our pages, the test shows the right certificate, but for 4-5
pages, the test shows the localhost at localdomain certificate.
For sure, if we check the page online, it uses the correct certificate.

Any idea, why this happen only just for some of the pages?

The host.conf entry looks same for all pages.

XXX.XXX.XXX.XXX   https://mypage.com

Maik

list Maik Heinelt · Thu, 13 Sep 2012 12:58:11 +0900 ·
Interesting, it gives me back the wrong certificate!?

depth=0 
/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/emailAddress=user-98a72fc74827@xymon.invalid
verify error:num=18:self signed certificate verify return:1

How can we check the right certificate ?
Again, if we check the page via browser, the correct certificate will be 
used.

Thank you for your help!


Maik

.............................. .............................. ......
Heinelt Maik | Software Developer
????? ???
????????2-2-22
???? ???????
TEL: XXXX-XX-XXXX <callto://0586-71-3903> FAX: XXXX-XX-XXXX 
<callto://0586-71-4071>
http://www.vegasystems.com
Skype ID: daliose
.............................. .............................. ......
DISCLAIMER: This information is confidential and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, please disregard and destroy this
email and its content. Thank you
quoted from Larry Barber
On 2012/09/12 23:34, Larry Barber wrote:
Try running this command:

/usr/bin/openssl s_client -showcerts -connect <hostname>:443

It will return the entire certificate chaing for the given host.

Thanks,
Larry Barber


On Wed, Sep 12, 2012 at 1:59 AM, Maik Heinelt <user-4ab5eb34adb2@xymon.invalid 
<mailto:user-4ab5eb34adb2@xymon.invalid>> wrote:

    No, it is a virtual host configured apache and no redirection.

    Thanks

    Maik Heinelt


    On 2012/09/12 11:27, Larry Barber wrote:
    Is the page a redirect from another server? Xymon only returns
    the HTML headers for the first server it hits.

    Thanks,
    Larry Barber

    On Tue, Sep 11, 2012 at 6:23 PM, Maik Heinelt
    <user-4ab5eb34adb2@xymon.invalid <mailto:user-4ab5eb34adb2@xymon.invalid>> wrote:

        We use Xymon for testing a couple SSL certificates.
        For most of our pages, the test shows the right certificate,
        but for 4-5 pages, the test shows the localhost at localdomain
        certificate.
        For sure, if we check the page online, it uses the correct
        certificate.

        Any idea, why this happen only just for some of the pages?

        The host.conf entry looks same for all pages.

        XXX.XXX.XXX.XXX https://mypage.com

        Maik
        
list Maik Heinelt · Thu, 13 Sep 2012 14:22:58 +0900 ·
Ok, got it solved.
Wrong settings at the apache vhost config.
quoted from Maik Heinelt


Maik


.............................. .............................. ......
Heinelt Maik | Software Developer
????? ???
????????2-2-22
???? ???????
TEL: XXXX-XX-XXXX <callto://0586-71-3903> FAX: XXXX-XX-XXXX 
<callto://0586-71-4071>
http://www.vegasystems.com
Skype ID: daliose
.............................. .............................. ......
DISCLAIMER: This information is confidential and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, please disregard and destroy this
email and its content. Thank you
On 2012/09/13 12:58, Maik Heinelt wrote:
Interesting, it gives me back the wrong certificate!?

depth=0 
/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/emailAddress=user-98a72fc74827@xymon.invalid
verify error:num=18:self signed certificate verify return:1

How can we check the right certificate ?
Again, if we check the page via browser, the correct certificate will 
be used.

Thank you for your help!


Maik

.............................. .............................. ......
Heinelt Maik | Software Developer
????? ???
????????2-2-22
???? ???????
TEL: XXXX-XX-XXXX <callto://0586-71-3903> FAX: XXXX-XX-XXXX 
<callto://0586-71-4071>
http://www.vegasystems.com
Skype ID: daliose
.............................. .............................. ......
DISCLAIMER: This information is confidential and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, please disregard and destroy this
email and its content. Thank you
On 2012/09/12 23:34, Larry Barber wrote:
Try running this command:

/usr/bin/openssl s_client -showcerts -connect <hostname>:443

It will return the entire certificate chaing for the given host.

Thanks,
Larry Barber


On Wed, Sep 12, 2012 at 1:59 AM, Maik Heinelt <user-4ab5eb34adb2@xymon.invalid 
<mailto:user-4ab5eb34adb2@xymon.invalid>> wrote:

    No, it is a virtual host configured apache and no redirection.

    Thanks

    Maik Heinelt


    On 2012/09/12 11:27, Larry Barber wrote:
    Is the page a redirect from another server? Xymon only returns
    the HTML headers for the first server it hits.

    Thanks,
    Larry Barber

    On Tue, Sep 11, 2012 at 6:23 PM, Maik Heinelt
    <user-4ab5eb34adb2@xymon.invalid <mailto:user-4ab5eb34adb2@xymon.invalid>> wrote:

        We use Xymon for testing a couple SSL certificates.
        For most of our pages, the test shows the right certificate,
        but for 4-5 pages, the test shows the localhost at localdomain
        certificate.
        For sure, if we check the page online, it uses the correct
        certificate.

        Any idea, why this happen only just for some of the pages?

        The host.conf entry looks same for all pages.

        XXX.XXX.XXX.XXX https://mypage.com

        Maik