From arosen@oleh.com Wed Jun 24 08:15:04 2026 From: arosen@oleh.com To: xymon@xymon.com Subject: custom script help Date: Thu, 02 Aug 2007 16:17:41 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4562016815490905681==" --===============4562016815490905681== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, I'm writing a custom script that parses a mailbox and sends the contents to the hobbit server. The problem is some emails are large, so I would like the status page to show a list of email subjects which, when one is clicked, would display the contents of that message. Is that possible? If so, how would I go about sending the body of each message and generating a link in the status page. Thanx. Avi R. --===============4562016815490905681==-- From ralphmitchell@gmail.com Wed Jun 24 08:15:04 2026 From: ralphmitchell@gmail.com To: xymon@xymon.com Subject: [hobbit] custom script help Date: Thu, 02 Aug 2007 15:35:45 -0500 Message-ID: <997a524e0708021335x3dcb31a4hacaf9733b69399e9@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2154812114863525450==" --===============2154812114863525450== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 8/2/07, Avi Rosenblatt wrote: > Hi, > I'm writing a custom script that parses a mailbox and sends the > contents to the hobbit server. The problem is some emails are large, > so I would like the status page to show a list of email subjects > which, when one is clicked, would display the contents of that > message. Is that possible? If so, how would I go about sending the > body of each message and generating a link in the status page. If your script assembles a message something like this: LINE="status $MACHINE.$TEST $COLOR `date` subject of message 1 subject of message 2" and then sends that to Hobbit using: $BB $BBDISP "$LINE" you should get a detail page with clickable links. $MACHINE should be the machine name with commas instead of dots. $TEST should be the name of the column you want to report. Ralph Mitchell --===============2154812114863525450==-- From arosen@oleh.com Wed Jun 24 08:15:04 2026 From: arosen@oleh.com To: xymon@xymon.com Subject: [hobbit] custom script help Date: Thu, 02 Aug 2007 16:43:07 -0400 Message-ID: In-Reply-To: <997a524e0708021335x3dcb31a4hacaf9733b69399e9@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6244449896223372914==" --===============6244449896223372914== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit thanx. I would prefer the message bodies were sent to the hobbit server. Is there a way of doing that? Also, would the text appear in the hobbit template or just as a regular text page? Thanx. Avi R. On 2-Aug-07, at 4:35 PM, Ralph Mitchell wrote: > On 8/2/07, Avi Rosenblatt wrote: >> Hi, >> I'm writing a custom script that parses a mailbox and sends the >> contents to the hobbit server. The problem is some emails are large, >> so I would like the status page to show a list of email subjects >> which, when one is clicked, would display the contents of that >> message. Is that possible? If so, how would I go about sending the >> body of each message and generating a link in the status page. > > If your script assembles a message something like this: > > LINE="status $MACHINE.$TEST $COLOR `date` > subject of message 1 > subject of message 2" > > and then sends that to Hobbit using: > > $BB $BBDISP "$LINE" > > you should get a detail page with clickable links. > > $MACHINE should be the machine name with commas instead of dots. > $TEST should be the name of the column you want to report. > > Ralph Mitchell > > To unsubscribe from the hobbit list, send an e-mail to > hobbit-unsubscribe at hswn.dk > > --===============6244449896223372914==-- From ralphmitchell@gmail.com Wed Jun 24 08:15:04 2026 From: ralphmitchell@gmail.com To: xymon@xymon.com Subject: [hobbit] custom script help Date: Thu, 02 Aug 2007 15:54:28 -0500 Message-ID: <997a524e0708021354h558c37ncf7c431f7ffa4a34@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1940382476031009430==" --===============1940382476031009430== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 8/2/07, Avi Rosenblatt wrote: > thanx. > I would prefer the message bodies were sent to the hobbit server. Is > there a way of doing that? Also, would the text appear in the hobbit > template or just as a regular text page? The message you send can contain whatever you like, though there are some limitations, given that what you send is embedded inside a web page. You might be able to do some fancy stuff with stylesheets to make things appear and disappear, but I wouldn't want to bet on it that working. Especially if the mail could contain html tags that would interfere with the format. Whatever message you send is what shows up in the detail page when you click through the colored dot that corresponds to $MACHINE & $TEST. Ralph Mitchell --===============1940382476031009430==-- From haertig@avaya.com Wed Jun 24 08:15:04 2026 From: haertig@avaya.com To: xymon@xymon.com Subject: [hobbit] custom script help Date: Thu, 02 Aug 2007 15:08:09 -0600 Message-ID: <9836EA7D7FDAE34099AED87A2D9C3A8D5CFA55@306181ANEX2.global.avaya.com> In-Reply-To: <997a524e0708021354h558c37ncf7c431f7ffa4a34@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6887800959924456165==" --===============6887800959924456165== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit HTML in status messages works for the most part, but remember that Hobbit confines your messages INTO A TABLE CELL when it lays out the webpages. This may be unnoticeable to you, or it may be a terrible limitation. For example, if you are trying to use stylesheets and javascript to show/hide div's, this won't work within table cells. Admittedly, that's a fairly sophisticated thing to try in a hobbit status message! It would be nice if Hobbit did not use tables for layout, and went pure stylesheets instead. -----Original Message----- From: Ralph Mitchell [mailto:ralphmitchell at gmail.com] Sent: Thursday, August 02, 2007 2:54 PM To: hobbit at hswn.dk Subject: Re: [hobbit] custom script help On 8/2/07, Avi Rosenblatt wrote: > thanx. > I would prefer the message bodies were sent to the hobbit server. Is > there a way of doing that? Also, would the text appear in the hobbit > template or just as a regular text page? The message you send can contain whatever you like, though there are some limitations, given that what you send is embedded inside a web page. You might be able to do some fancy stuff with stylesheets to make things appear and disappear, but I wouldn't want to bet on it that working. Especially if the mail could contain html tags that would interfere with the format. Whatever message you send is what shows up in the detail page when you click through the colored dot that corresponds to $MACHINE & $TEST. Ralph Mitchell To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk --===============6887800959924456165==-- From arosen@oleh.com Wed Jun 24 08:15:04 2026 From: arosen@oleh.com To: xymon@xymon.com Subject: [hobbit] custom script help Date: Thu, 02 Aug 2007 18:25:31 -0400 Message-ID: In-Reply-To: <997a524e0708021354h558c37ncf7c431f7ffa4a34@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7259836476958764756==" --===============7259836476958764756== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit the problem is each message body has to be sent separately outside of the status message since each message could easily be over 1MB. I prefer to do this through hobbit though. Is there a way to upload a large chunk of text into a file on the server that can be linked to in the status message? Thanx. On 2-Aug-07, at 4:54 PM, Ralph Mitchell wrote: > On 8/2/07, Avi Rosenblatt wrote: >> thanx. >> I would prefer the message bodies were sent to the hobbit server. Is >> there a way of doing that? Also, would the text appear in the hobbit >> template or just as a regular text page? > > > The message you send can contain whatever you like, though there are > some limitations, given that what you send is embedded inside a web > page. You might be able to do some fancy stuff with stylesheets to > make things appear and disappear, but I wouldn't want to bet on it > that working. Especially if the mail could contain html tags that > would interfere with the format. > > Whatever message you send is what shows up in the detail page when you > click through the colored dot that corresponds to $MACHINE & $TEST. > > Ralph Mitchell > > To unsubscribe from the hobbit list, send an e-mail to > hobbit-unsubscribe at hswn.dk > > --===============7259836476958764756==-- From ralphmitchell@gmail.com Wed Jun 24 08:15:04 2026 From: ralphmitchell@gmail.com To: xymon@xymon.com Subject: [hobbit] custom script help Date: Thu, 02 Aug 2007 22:12:24 -0500 Message-ID: <997a524e0708022012m1042555ja159dbb4a5ad962c@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2704759466179689681==" --===============2704759466179689681== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 8/2/07, Avi Rosenblatt wrote: > the problem is each message body has to be sent separately outside of > the status message since each message could easily be over 1MB. I > prefer to do this through hobbit though. > Is there a way to upload a large chunk of text into a file on the > server that can be linked to in the status message? The Hobbit server must have some kind of web server running, for the display. Why not upload the email files into some place in the web server docs tree using something like 'scp', then send a Hobbit status message with the links to http://localhost/my/mail/file.XXX, for however many messages there are? Ralph Mitchell --===============2704759466179689681==-- From haertig@avaya.com Wed Jun 24 08:15:04 2026 From: haertig@avaya.com To: xymon@xymon.com Subject: [hobbit] custom script help Date: Thu, 02 Aug 2007 22:21:23 -0600 Message-ID: <9836EA7D7FDAE34099AED87A2D9C3A8D5CFC6A@306181ANEX2.global.avaya.com> In-Reply-To: <997a524e0708022012m1042555ja159dbb4a5ad962c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8589679752658256276==" --===============8589679752658256276== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit You can use 'data' messages rather than 'status' messages, but I don't know if/what max size limit they have -----Original Message----- From: Ralph Mitchell [mailto:ralphmitchell at gmail.com] Sent: Thursday, August 02, 2007 9:12 PM To: hobbit at hswn.dk Subject: Re: [hobbit] custom script help On 8/2/07, Avi Rosenblatt wrote: > the problem is each message body has to be sent separately outside of > the status message since each message could easily be over 1MB. I > prefer to do this through hobbit though. > Is there a way to upload a large chunk of text into a file on the > server that can be linked to in the status message? The Hobbit server must have some kind of web server running, for the display. Why not upload the email files into some place in the web server docs tree using something like 'scp', then send a Hobbit status message with the links to http://localhost/my/mail/file.XXX, for however many messages there are? Ralph Mitchell To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk --===============8589679752658256276==-- From arosen@oleh.com Wed Jun 24 08:15:04 2026 From: arosen@oleh.com To: xymon@xymon.com Subject: [hobbit] custom script help Date: Fri, 03 Aug 2007 11:30:31 -0400 Message-ID: In-Reply-To: <997a524e0708022012m1042555ja159dbb4a5ad962c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1842298342848552005==" --===============1842298342848552005== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Thanx. That's an idea, but I would need to generate keys to avoid requiring login. That sounds best so far as I won't have to limit the size of the message. Would there be a way to get the linked file to appear within the hobbit template or would that be asking too much? Thanx. On 2-Aug-07, at 11:12 PM, Ralph Mitchell wrote: > On 8/2/07, Avi Rosenblatt wrote: >> the problem is each message body has to be sent separately outside of >> the status message since each message could easily be over 1MB. I >> prefer to do this through hobbit though. >> Is there a way to upload a large chunk of text into a file on the >> server that can be linked to in the status message? > > The Hobbit server must have some kind of web server running, for the > display. Why not upload the email files into some place in the web > server docs tree using something like 'scp', then send a Hobbit status > message with the links to http://localhost/my/mail/file.XXX, for > however many messages there are? > > Ralph Mitchell > > To unsubscribe from the hobbit list, send an e-mail to > hobbit-unsubscribe at hswn.dk > > --===============1842298342848552005==-- From Thomas.Kern@hq.doe.gov Wed Jun 24 08:15:04 2026 From: Thomas.Kern@hq.doe.gov To: xymon@xymon.com Subject: [hobbit] custom script help Date: Fri, 03 Aug 2007 11:36:14 -0400 Message-ID: <87C763EA83D0234E9BEF12A8C6C8BB73027688C5@HQGTNEX5.doe.local> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6545226491435895484==" --===============6545226491435895484== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit It would be nice if you could get your data files to the hobbit server as simply text files and use a hobbit CGI to display an arbitrary datafile within a hobbit looking template (look&feel is important to managers). So then your URL in the 'status' message could me something like: 'http://your.hobbit.server/hobbit-cgi/bb-showfile.cgi?datafile.0001' /Thomas Kern /301-903-2211 > -----Original Message----- > From: Avi Rosenblatt [mailto:arosen at oleh.com] > Sent: Friday, August 03, 2007 11:31 AM > To: hobbit at hswn.dk > Subject: Re: [hobbit] custom script help > > Thanx. That's an idea, but I would need to generate keys to avoid > requiring login. > That sounds best so far as I won't have to limit the size of the > message. > Would there be a way to get the linked file to appear within the > hobbit template or would that be asking too much? > > Thanx. --===============6545226491435895484==--