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
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 < Rolands at logicaltech.com.au> 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****
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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: sholmes42 at gmail.com [mailto:sholmes42 at gmail.com] 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 <Rolands at logicaltech.com.au<mailto:Rolands at logicaltech.com.au>> 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
Xymon mailing list Xymon at xymon.com<mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
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
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 <maik at vegasystems.com> 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 mailing list Xymon at xymon.com http://lists.xymon.com/**mailman/listinfo/xymon<http://lists.xymon.com/mailman/listinfo/xymon>
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 <maik at vegasystems.com <mailto:maik at vegasystems.com>> 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 mailing list Xymon at xymon.com <mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
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 <maik at vegasystems.com> 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 <maik at vegasystems.com>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 mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Interesting, it gives me back the wrong certificate!?
depth=0 /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/emailAddress=root at localhost.localdomain 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: 0586-71-3903 <callto://0586-71-3903> FAX: 0586-71-4071 <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 <maik at vegasystems.com <mailto:maik at vegasystems.com>> 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 <maik at vegasystems.com <mailto:maik at vegasystems.com>> 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 mailing list Xymon at xymon.com <mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon_______________________________________________ Xymon mailing list Xymon at xymon.com <mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
Ok, got it solved. Wrong settings at the apache vhost config.
Maik
.............................. .............................. ...... Heinelt Maik | Software Developer ????? ??? ????????2-2-22 ???? ??????? TEL: 0586-71-3903 <callto://0586-71-3903> FAX: 0586-71-4071 <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=root at localhost.localdomain 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: 0586-71-3903 <callto://0586-71-3903> FAX: 0586-71-4071 <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 <maik at vegasystems.com <mailto:maik at vegasystems.com>> 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 <maik at vegasystems.com <mailto:maik at vegasystems.com>> 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 mailing list Xymon at xymon.com <mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon_______________________________________________ Xymon mailing list Xymon at xymon.com <mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Yes! That works perfectly. Thanks! Steve
On Tue, Sep 11, 2012 at 6:44 PM, Roland Soderstrom < Rolands at logicaltech.com.au> 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:* sholmes42 at gmail.com [mailto:sholmes42 at gmail.com] *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 < Rolands at logicaltech.com.au> 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****
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon****
-- 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)
participants (4)
-
lebarber@gmail.com
-
maik@vegasystems.com
-
Rolands@logicaltech.com.au
-
sholmes42@mac.com