Thanks for your work on this Galen. I started my response the next day, but I've been too busy to finish it until now.
Here's two fixes in one line for Xymon 4.3 (adding SECURE and with the change of name for the cgi script): <a class="inner" href="$XYMONSERVERSECURECGIURL/xymnote_editor.cgi">Edit Notes</a><span class="invis"> | </span>
Also in order to get the host link to display in the main Xymon page, with the latest terabithia RPM installed, I had to: $ cd /etc/xymon/data $ sudo ln -s /usr/share/xymon/www/notes notes
I have to admit I tried to get your notes editor installed so I could take a look at it as there were no screenshots on Xymonton. I was disappointed that there was no toolbar for formatting text. I'm sure this is just a minor thing, but it means I'm inclined to try this solution instead: http://www.it-eckert.com/blog/2014/how-to-integrate-xymon-with-a-documentati...
I also note that the templates only apply when saving notes pages, so any change to the template does not take effect until resaving the note page for a host. Slightly disappointing too, but to be expected I suppose given the location of the template.
That said, I have it all working now, so that's great.
Thanks again and kind regards,
SebA
On 5 December 2017 at 06:14, Galen Johnson <solitaryr at gmail.com> wrote:
Ok...I found several things that needed some love. It's not perfect but it does at least run for me. The instructions could use a bit of improvement as well. I'm not 100% sure which code notes path is legit...may take a little playing. The new code is on github ( https://github.com/solitaryr/xymon_notes). If I can find the time, I'll see what I can do to improve it...especially in regards to better integration into the Xymon ecosystem. I may even see what it might take to integrate directly into Xymon instead of an add-on...but C is a distant memory...
=G=
On Mon, Dec 4, 2017 at 3:48 PM, Galen Johnson <solitaryr at gmail.com> wrote:
Ahhh...this is one of the few scripts I rescued from Deadcat since I had made use of it a while ago...hopefully, it's compatible with the Terabithia rpms. I'll need to try it locally to see if I can rep what you see.
=G=
On Mon, Dec 4, 2017 at 3:41 PM, Galen Johnson <solitaryr at gmail.com> wrote:
It's been a while since I even looked at that code. Let me refresh myself on it (and push it to github as well.
=G=
On Mon, Dec 4, 2017 at 12:30 PM, SebA <spah at syntec.co.uk> wrote:
Hi Galen,
I have been trying to get your Xymon Notes Editor working. I have fixed a number of issues in the code or with your instructions, but I'm stuck on probably the last issue.
Most of the issues may be caused by your code getting munged when you uploaded it to Xymonton - I'm not sure. For example I needed to add a few carriage returns: Line 24 and before 'HTML': Can't find string terminator "HTML" anywhere before EOF at /usr/share/xymon/cgi-secure/bbnote_editor.cgi line 161 As well as somewhere around: Unmatched right curly bracket at /usr/share/xymon/cgi-secure/bbnote_editor.cgi line 46, at end of line
But I still have this error and I'm not sure where the issue really is because this is the end of the file: Missing right curly or square bracket at /usr/share/xymon/cgi-secure/bbnote_editor.cgi line 234, at end of line
With the instructions, there should have been instructions to install perl-CGI and create the www/notes directory.
Can you help with EOF right clurly or square bracket error please? And / or try re-uploading to Xymon, or posting a copy of the code for download either from this list or from somewhere else. A download saves time if anyone else wants to use this too.
Many thanks, SebA
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon