Host Notes
list Charles Jones
Do you plan on adding a cgi to enable live editing of "notes" (www/notes/hostname) files? I saw in the manpage for bb-gen mention of a script on dead-cat that gives that functionality, but I would like to eventually see something that builds a "nice looking" notes page that has the same background and font color etc as the rest of the Hobbit pages. Currently if you just put something in a notes file you get a big ugly white screen with the raw text. Maybe a header/footer for the notes page would solve that? -Charles
list Asif Iqbal
▸
On 7/27/06, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
Do you plan on adding a cgi to enable live editing of "notes" (www/notes/hostname) files? I saw in the manpage for bb-gen mention of a script on dead-cat that gives that functionality, but I would like to eventually see something that builds a "nice looking" notes page that has the same background and font color etc as the rest of the Hobbit pages. Currently if you just put something in a notes file you get a big ugly white screen with the raw text.
I would love that too
Maybe a header/footer for the notes page would solve that? -Charles
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Henrik Størner
▸
On Thu, Jul 27, 2006 at 07:05:04PM -0700, Charles Jones wrote:
Do you plan on adding a cgi to enable live editing of "notes" (www/notes/hostname) files? I saw in the manpage for bb-gen mention of a script on dead-cat that gives that functionality, but I would like to eventually see something that builds a "nice looking" notes page that has the same background and font color etc as the rest of the Hobbit pages. Currently if you just put something in a notes file you get a big ugly white screen with the raw text. Maybe a header/footer for the notes page would solve that?
Here's a simple solution for viewing the host notes, using mostly the tools you already have: * a notes_header and notes_footer file, mostly cloned from the existing bb_header and bb_footer files. These go in your ~hobbit/server/web/ directory. * a simple CGI using the bb_webpage utility. This goes in your ~hobbit/cgi-bin/ directory. Testing this revealed a bug in bb_webpage, so there's a patch for it as well. To use this, add "--docurl=$CGIBINURL/hostnotes.sh?HOST=%s" to BBGENOPTS in hobbitserver.c and restart Hobbit. The CGI shell-script currently looks only for files named .../notes/HOSTNAME - you can probably figure out how to change this if you want to look for HOSTNAME.html, HOSTNAME.txt or whatever you like. Regards, Henrik
Attachments (1)
list Charles Jones
Henrik, Forgive me, as I am not thinking clearly today (it is Monday afterall). You give a patch for bb-webpage.c, but I am unclear as to whether I am supposed to replace the orig bb-webpage with this new one, or rename patched version to "hostnotes", and craft a "hostnotes.sh" to go in the cgi directory that calls it? I understand that using the header and footer file will give the notes the standard hobbit look, which will be nice. Please tell me again in different terms how I should do this (or maybe I should just read it tommorrow when I'm thinking better haha). Thanks, -Charles
▸
On Thu, Jul 27, 2006 at 07:05:04PM -0700, Charles Jones wrote:Do you plan on adding a cgi to enable live editing of "notes" (www/notes/hostname) files? I saw in the manpage for bb-gen mention of a script on dead-cat that gives that functionality, but I would like to eventually see something that builds a "nice looking" notes page that has the same background and font color etc as the rest of the Hobbit pages. Currently if you just put something in a notes file you get a big ugly white screen with the raw text. Maybe a header/footer for the notes page would solve that?
Here's a simple solution for viewing the host notes, using mostly the tools you already have: * a notes_header and notes_footer file, mostly cloned from the existing bb_header and bb_footer files. These go in your ~hobbit/server/web/ directory. * a simple CGI using the bb_webpage utility. This goes in your ~hobbit/cgi-bin/ directory. Testing this revealed a bug in bb_webpage, so there's a patch for it as well. To use this, add "--docurl=$CGIBINURL/hostnotes.sh?HOST=%s" to BBGENOPTS in hobbitserver.c and restart Hobbit. The CGI shell-script currently looks only for files named .../notes/HOSTNAME - you can probably figure out how to change this if you want to look for HOSTNAME.html, HOSTNAME.txt or whatever you like. Regards, Henrik
--- web/bb-webpage.c 2006/05/03 21:12:33 1.8 +++ web/bb-webpage.c 2006/07/28 07:12:09 @@ -12,7 +12,7 @@ /* */ /*----------------------------------------------------------------------------*/ -static char rcsid[] = "$Id: bb-webpage.c,v 1.8 2006/05/03 21:12:33 henrik Exp $"; +static char rcsid[] = "$Id: bb-webpage.c,v 1.9 2006/07/28 07:12:00 henrik Exp $"; #include <stdio.h> #include <string.h> @@ -63,8 +63,8 @@ headfoot(stdout, hffile, "", "header", bgcolor); do { - n = fread(inbuf, sizeof(inbuf), 1, stdin); - if (n > 0) fwrite(inbuf, n, 1, stdout); + n = fread(inbuf, 1, sizeof(inbuf), stdin); + if (n > 0) fwrite(inbuf, 1, n, stdout); } while (n == sizeof(inbuf)); headfoot(stdout, hffile, "", "footer", bgcolor); <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META HTTP-EQUIV="REFRESH" CONTENT="60"> <META HTTP-EQUIV="EXPIRES" CONTENT="Sat, 01 Jan 2001 00:00:00 GMT"> <TITLE>&BBBACKGROUND : Hobbit - Host notes for &HOSTNAME</TITLE> <!-- Styles for the menu bar --> <link rel="stylesheet" type="text/css" href="&BBMENUSKIN/menu.css"> <!-- The favicon image --> <link rel="shortcut icon" href="&BBSKIN/favicon-&BBBACKGROUND.ico"> </HEAD> <BODY BGCOLOR="&BBBACKGROUND" BACKGROUND="&BBSKIN/bkg-&BBBACKGROUND.gif" TEXT="#D8D8BF" LINK="#00FFAA" VLINK="#FFFF44"> <TABLE SUMMARY="Topline" WIDTH="100%"> <TR><TD HEIGHT=16> </TD></TR> <!-- For the menu bar --> <TR> <TD VALIGN=MIDDLE ALIGN=LEFT WIDTH="30%"> <FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B>&HOBBITLOGO</B></FONT> </TD> <TD VALIGN=MIDDLE ALIGN=CENTER WIDTH="40%"> <CENTER><FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B>Host notes - &HOSTNAME</B></FONT></CENTER> </TD> <TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH="30%"> <FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B>&BBDATE</B></FONT> </TD> </TR> <TR> <TD COLSPAN=3> <HR WIDTH="100%"> </TD> </TR> </TABLE> <BR> <CENTER> <FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"> </CENTER> </FONT> <BR><BR> <TABLE SUMMARY="Bottomline" WIDTH="100%"> <TR> <TD> <HR WIDTH="100%"> </TD> </TR> <TR> <TD ALIGN=RIGHT><FONT FACE="Arial, Helvetica" SIZE="-2" COLOR="silver"><B><A HREF="http://hobbitmon.sourceforge.net/"; <http://hobbitmon.sourceforge.net/%22>;; style="text-decoration: none">Hobbit Monitor &HOBBITDREL</A></B></FONT></TD> </TR> </TABLE> <!-- menu script itself. you should not modify this file --> <script type="text/javascript" language="JavaScript" src="&BBMENUSKIN/menu.js"></script> <!-- items structure. menu hierarchy and links are stored there --> <script type="text/javascript" language="JavaScript" src="&BBMENUSKIN/menu_items.js"></script> <!-- files with geometry and styles structures --> <script type="text/javascript" language="JavaScript" src="&BBMENUSKIN/menu_tpl.js"></script> <script type="text/javascript" language="JavaScript"> new menu (MENU_ITEMS, MENU_POS); </script> </BODY> </HTML>
list Henrik Størner
▸
On Mon, Jul 31, 2006 at 02:51:01PM -0700, Charles Jones wrote:
Forgive me, as I am not thinking clearly today (it is Monday afterall). You give a patch for bb-webpage.c, but I am unclear as to whether I am supposed to replace the orig bb-webpage with this new one.
Yes. When you patch bb-webpage with the patch I attached, you'll get a new bb-webpage - just copy that one over to your ~hobbit/server/bin/ directory. The current version is buggy.
and craft a "hostnotes.sh" to go in the cgi directory that calls it?
Exactly. I've attached the one I used for testing. Regards, Henrik
list Frédéric Mangeant
Hi Henrik how are we supposed to use the hobbit-notesedit.sh CGI ? Thanks in advance. -- Frédéric Mangeant Steria EDC Sophia-Antipolis
list Henrik Størner
On Tue, Aug 01, 2006 at 02:49:44PM +0200, Frédéric Mangeant wrote:
how are we supposed to use the hobbit-notesedit.sh CGI ?
Can't hide anything from you, eh? It's "work in progress". Regards, Henrik
list Beau Olivier
Hi henrik, it is possible to have an option for not having a href for columns ? (for now, i've hacked bbgen.c...) oliviver
list Charles Jones
Darn, it seems to be gone from the latest snapshot...I want it :-) Did you abandon or is it just on the backburner now? -Charles
▸
Henrik wrote: Can't hide anything from you, eh? It's "work in progress".
On Tue, Aug 01, 2006 at 02:49:44PM +0200, Frédéric Mangeant wrote:how are we supposed to use the hobbit-notesedit.sh CGI ?
list Henrik Størner
▸
On Mon, Aug 14, 2006 at 12:59:10PM -0700, Charles Jones wrote:
Darn, it seems to be gone from the latest snapshot...I want it :-) Did you abandon or is it just on the backburner now?
Not abandoned, just postponed until the 4.2 release was out. This week looks busy, but I'll probably do some work on it next week. I expect it to be in 4.2.1, which will probably happen in a months time or so as a wrap-up for any bugs that pop up with the 4.2.0 release. Adding a couple of harmless goodies helps to get you all to upgrade :-) Regards, Henrik
list Charles Jones
Heh okay. I have over 100 hosts that I want to add notes to, so if you need someone to help you beta test it, I'm there :) -Charles
▸
Henrik Stoerner wrote:On Mon, Aug 14, 2006 at 12:59:10PM -0700, Charles Jones wrote:Darn, it seems to be gone from the latest snapshot...I want it :-) Did you abandon or is it just on the backburner now?Not abandoned, just postponed until the 4.2 release was out. This week looks busy, but I'll probably do some work on it next week. I expect it to be in 4.2.1, which will probably happen in a months time or so as a wrap-up for any bugs that pop up with the 4.2.0 release. Adding a couple of harmless goodies helps to get you all to upgrade :-)
list Francesco Duranti
Just some idea for some little feature that can go in 4.2.1 :P Well before starting the list I've to say that the 4.2.0 realease is really fantastic :D With the possibility of client update directly from the server it will take just some hour to update all client or also to change the extention used or some configuration file... Thanks for the really good work !!! 1) the client Class in the info page (also some other info that just you can get on the bb-hosts and put on the info page like if the client is a pulldata client or na normal client and things like that) 2) on the status page the "Status message received from 10.202.1.201:19" is trunkated and don't show the complete port number 3) inode checking with disk check (well it should be easy and there's already the code to do the graphs) 4) the possibility for client that are not hobbit-client at this moment to send some kind of information to put on the info page (for example the version and some thing like that, useful for script that monitor storage system or oracle database to send information regarding the version of what they're monitoring) 5) in the info page the notes appear only if there's a html file in the notes directory, it should be nice to edit notes from there if there's a script to do the editing.... 6) another thing regarding notes, it should be nice if the notes system will allow the user to put also some kind of web links on the notes pages of hosts so that one can put links to real documentation of that host or generic documentation regarding for example network infrastructure into the network objects monitored). It should be also nice if the documentation itself is saved in some kind of xml or text file and if a html file exist in the notes directory a link to it is visible on the notes pages... I don't know how clear this one is :P but just to explain I'm starting to deploy cfg2html on every machine because we need a full documentation of what's on every machine but it would be really nice to have a) a Notes pages with some host related information like what the host is dedicated to, people responsible for application on that machine, telephone number and so on b) some generic link (for example grouped with CLASS definition) c) some specific link for that host d) if a hostname.html or hostname.txt is present in the notes directory a link to it (this can be usefull for cfg2html files that can be copied directly into the notes directory from some scripts). e) make the possibility to choose from the configuration if those link can be opened directly in the same page or into a new page... 7) The possibility to put one or two web page documentation link on the info page (well if the notes is done well i think there's no need for this one :P) 8) a kind of template definition for the classes ... I think i'll end to have about 10 different client setup and about 10-15 kind of file monitoring (used mostly to check the remote nfs mount point instead changing the hobbit-client shell) different template and not everytime they'll be the same so I will mix monitoring and update and I think I'll mostly end with at least 30-40 different CLASS definition... It should be nice to create a kind of template for the class definition to include file monitoring or clientversion update... 9) .... It's possible to have some more "w" directly on the ps command in the hobbit client? Something like ps -www ... Some long java commands are not displaying and the check on them is a bit difficult to do ... 10) the possibility to add some more checks to the metric page (for example I'm getting graphs for weblogic server, oracle database and netapp server and they'll not get there (I think I'll have to put some more definition on the hobbitgraphs.cfg file ... I'll check on how to do them ...) Well ... :P i've done just some requests :D Thanks for the real good work again!! Francesco
▸
-----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Monday, August 14, 2006 10:21 PM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Host Notes On Mon, Aug 14, 2006 at 12:59:10PM -0700, Charles Jones wrote:Darn, it seems to be gone from the latest snapshot...I want it :-) Did you abandon or is it just on the backburner now?Not abandoned, just postponed until the 4.2 release was out. This week looks busy, but I'll probably do some work on it next week. I expect it to be in 4.2.1, which will probably happen in a months time or so as a wrap-up for any bugs that pop up with the 4.2.0 release. Adding a couple of harmless goodies helps to get you all to upgrade :-) Regards, Henrik
list Charles Jones
▸
9) .... It's possible to have some more "w" directly on the ps command in the hobbit client? Something like ps -www ... Some long java commands are not displaying and the check on them is a bit difficult to do ...
I needed this as well, I changed the client ps command in hobbitclient-linux.sh to "ps -Awwm". The extra w gave me the width I needed, and the m allows me to make a "TRACK" graph of how many java threads are spawned. I don't think this should be the default though, as I also ended up having to increase my MAXMSG_STATUS and MAXMSG_DATA lengths because of the increased output generated by ps with those options. -Charles
list Francesco Duranti
The -m will generate really much data but i think that 1 or 2 more "w"
can be good to get all the process names ... (last update on the first
client where i was checking for process names I had 30 minutes trying to
understand why one of my qmail process was not running :D)
It could be nice to have them as some kind of configuration that can be
done at configuration time or for example with the logfetch method (like
the filenames or log files to check).... Can be also nice to have to
choose to do network disk check with df or only local disks...
This is the difference on a machine with some javavm running of the ps
[bb at ITROMAS27 bb]$ ps -Aw -o
pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd |wc
183 2789 20249
[bb at ITROMAS27 bb]$ ps -Awww -o
pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd |wc
183 2801 20981
[bb at ITROMAS27 bb]$ ps -Awwwm -o
pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd |wc
981 20468 289819
So i think for 700 bytes we can put 2 more "w" the "m" can be
problematic ....
▸
-----Original Message----- From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid] Sent: Tuesday, August 15, 2006 12:28 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Host Notes9) .... It's possible to have some more "w" directly on the ps command > in the hobbit client? Something like ps -www ... Some long java > commands are not displaying and the check on them is a bit difficult to do ... I needed this as well, I changed the client ps command in hobbitclient-linux.sh to "ps -Awwm". The extra w gave me the width I needed, and the m allows me to make a "TRACK" graph of how many java threads are spawned.I don't think this should be the default though, as I also ended up having to increase my MAXMSG_STATUS and MAXMSG_DATA lengths because of the increased output generated by ps with those options. -Charles
list Matthew Epp
▸
6) another thing regarding notes, it should be nice if the notes system will allow the user to put also some kind of web links on the notes pages of hosts so that one can put links to real documentation of that host or generic documentation regarding for example network infrastructure into the network objects monitored). It should be also nice if the documentation itself is saved in some kind of xml or text file and if a html file exist in the notes directory a link to it is visible on the notes pages... I don't know how clear this one is :P but just to explain I'm starting to deploy cfg2html on every machine because we need a full documentation of what's on every machine but it would be really nice to have
Since there seems to be a real need for some easily configured notes system,
I decided to go ahead and create a patch file for the mod that I made. I
call it "Comments" but feel free to implement it however you wish. You only
need to patch one source file and recompile. This will put your notes at the
bottom of every bb-hostsvc.sh page. Some of you may not want this, but I
wrote this for Big Brother when there wasn't any formal notes system. If
someone would like to adjust this for appearing in a different area, please
do.
Add these lines to the etc/hobbitserver.cfg file:
BBCOMMENTS="$BBHOME/comments" # The location of the
textfiles for service comments
BBCOMMCONF="$BBCOMMENTS/comments.conf" # The name of the Comments
configuration file
Create the $BBHOME/comments directory, and then a comments.conf file in
there. Here's a sample starter file:
---[SNIP]---
# This is the configuration file for the Special Instructions section on
# all alert pages. To create a new alert message, put whatever
# text you want into a new file, call it anything you like, but try to
# stick to the convention of CI.service. Wildcards also work, but place
# them at the bottom of the file, so that absolute matches can override
# the wildcard entries.
# NOTE: Make sure there are no trailing spaces at the end of the line.
# I'll be adding in error checking code for that asap. If someone
# wants to fix this, please post the code.
# Portal Application Servers rules group
webserver*.disk webservers.disk
database*.cpu databases.cpu
#
# Place all wildcard matches below here
#
*.http ALL.http
#
# Point all conn tests to the same file
#
*.conn ALL.conn
---[SNIP]---
Then make sure to create the comment files themselves, like "ALL.conn" and
put them in the same directory as the conf. You can use any html code you'd
like:
---[SNIP]---
<table border=5 bordercolor=red><caption><B><font color=white>Special
Instructions:</caption><tr><td><B><font color=white>
Put your comments in here. Additional HTML formatting is allowed, so feel
free to insert coloring, links, whatever.
</td></tr></table><br>
---[SNIP]---
Now for the patch. This is the first patch file I've ever had to make, so
don't scream at me too much if I didn't do this right. :)
--- hobbit-4.2.0/lib/htmllog.c 2006-08-09 20:10:16.000000000 +0000
+++ hobbit-4.2.0.modified/lib/htmllog.c 2006-08-10 21:46:44.000004000 +0000
@@ -11,7 +11,7 @@
/*
*/
/*--------------------------------------------------------------------------
--*/
-static char rcsid[] = "$Id: htmllog.c,v 1.51 2006/05/25 14:55:41 henrik Rel
$";
+static char rcsid[] = "$Id: htmllog.c,v 1.51 2006/05/25 14:55:41 henrik Exp
$";
#include <ctype.h>
#include <stdlib.h>
@@ -22,6 +22,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <fnmatch.h>
#include "libbbgen.h"
#include "version.h"
@@ -122,6 +123,105 @@
} while (restofmsg);
}
+/*
+ * Here's our function to print out the service comment file
+ */
+void printcomment(char *hostname, char *service)
+{
+int commentstatres;
+int commentretc;
+int commentpage_size;
+char *basename;
+char *bbcomment;
+char *commentpage;
+char *func_matchfile = "";
+char *matchfile;
+char conffile[PATH_MAX];
+char func_matchfilename[PATH_MAX] = "";
+char hostpat[PATH_MAX] = "";
+char matchfilename[PATH_MAX] = "";
+static char *bbcomments;
+static char commfile[PATH_MAX] = "";
+struct stat commentstatbuf;
+const char *func_hostpat;
+const char *infile;
+FILE *in;
+FILE *bbcomm;
• + if ( commentpage != NULL )
+ free(commentpage);
+/* Build the pattern to search for from the hostname and service */
+ sprintf(hostpat, "%s.%s", hostname, service);
+ func_hostpat = hostpat;
• +/* Search the comments.conf file for the comment file */
• + sprintf(conffile, "%s", xgetenv("BBCOMMCONF"));
• + /*
+ * line[0] stores the input line as read,
+ */
+ char line[1][BUFSIZ];
+ infile = conffile;
• + if((in = fopen(infile, "r")) == NULL){
+ printf("Error opening file: %s\n", conffile);
+ } else {
+ while(fgets(line[0], BUFSIZ, in)){
+ char *line_to_use = line[0];
+ func_matchfile = strtok(line_to_use, " \t");
• + if(!fnmatch(func_matchfile, func_hostpat,
FNM_NOESCAPE)){
+ func_matchfile = strtok(NULL, " ");
+ strncpy(func_matchfilename, func_matchfile,
strlen(func_matchfile) -1);
+ break;
+ }
+ }
+ fclose(in);
+ }
+ matchfile = func_matchfilename;
+/* End of reading comments.conf */
• + sprintf(matchfilename, "%s/%s", xgetenv("BBCOMMENTS"), matchfile);
• + commentstatres=stat(matchfilename, &commentstatbuf);
+ if( commentstatres == -1 ) {
+ commentpage = NULL;
+ } else {
+ commentpage_size = commentstatbuf.st_size + 4096;
• + /* Fill the buffer */
+ commentpage = (char *) calloc(1,commentpage_size);
• + if( commentpage != NULL ) {
+ *commentpage = '\0';
• + /* Open and read comment file in one call*/
+ if( (bbcomm = fopen(matchfilename, "r")) != NULL ) {
+ commentretc =
fread(commentpage,commentstatbuf.st_size,1,bbcomm);
+ /* Was the comment file read in completely ?
*/
+ if ( commentretc != 1 || strlen(commentpage)
!= commentstatbuf.st_size ) {
+ free(commentpage);
+ commentpage = NULL;
+ } else {
+#if DEBUG
+ printf("comment: %s\n",
commentpage);
+#endif
+ }
+ fclose(bbcomm);
+ } else {
+#if DEBUG
+ printf("Error opening file %s\n",
matchfilename);
+#endif
+ }
+ }
+ }
+ /* END OF READING IN COMMENTS FILE */
• + if (commentpage != NULL) {
+ printf("<BR><BR><CENTER>%s<BR></CENTER>", commentpage);
+ }
+}
void generate_html_log(char *hostname, char *displayname, char *service,
char *ip,
int color, char *sender, char *flags,
@@ -367,6 +467,12 @@
}
fprintf(output,"</CENTER>\n");
+/*
+ * Here we insert our service comments from the comments.conf setup
+ * Hope this works!
+ */
+ printcomment(hostname, service);
• headfoot(output, tplfile, "", "footer", color);
}
list Bob Gordon
▸
On 8/14/06, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
Heh okay. I have over 100 hosts that I want to add notes to, so if you need someone to help you beta test it, I'm there :)
Ditto on that one.... -- --==[ Bob Gordon ]==--
list Francesco Duranti
Hi all, after some testing with the php scripts for notes I finally decided to write a perl program to show host notes and edit them trying to get all the things I really need on it an trying to make this a "page" that could be really useful to someone looking at it. First of all there will be some field dedicated to describe what the host is and do like: Aliases : if the alias is known with other names Purpose : what this host do, what service it run Services: list of services checked by bb with links Service Level Hours: hour at which the server have to be up and running (I've to see if this will be get automatically or if I'll leave the field manually editable) Then there will be a section dedicated to people to contact Contact Emails : emails of supporting peoples (as links to send email) Contact Phone: phone number of people (and with hours at which you can call them) Those field will also have a description so that you can have different support email for different problems (hardware/software/etc) Another section will show support information for the server so you can define phone or email address to call for support for hardware/software problems Serial Number: serial number or information for support call Support Email: email to get support Support Phone: phone number to get support A section will have procedures and notes: special procedures: Here you can describe what to do if something goes wrong with the server notes: Anything else A section will have information like related server or grouping of this server with other servers so that you can simply walk from one node of a cluster to the others or from the web servers to the application server or db server for a specific application. A section will include links you can need when checking this host or that will show more documentation on those. At the end of the page (probably) I'll also put link to HOSTNAME.html or HOSTNAME file available in the notes directory so that for example you can collect cfg2html files there and show them from this information page. I also want to define some "group" of definition that you can simply attach in the editor to host so that for example you can define the URL to ciscoworks globally and then attach this link to all your routers and they'll all show the ciscoworks link in the notes pages and you can get there from here. In the editing there will also be the possibility to define some links that will show in the notes pages like a link to hobbitperl-graph.pl or to info column of the host. Another idea I had was to make some field visible only to authenticated users so that you can put here information you want only your administrator to see and not all users. A first version will probably be available during the next week if I've some time to work on it. If you've more idea or something that I've missed and can be useful let me know and I'll check if it can be implemented. Francesco
list Charles Jones
Sounds feature-packed :-) I'd be happy with a simple text box that lets you enter text/HTML that gets saves as hostname.html in the notes directory, and that when viewing the notes they are properly Hobbit-ized with a Hobbit header and footer. -Charles
▸
Francesco Duranti wrote:Hi all, after some testing with the php scripts for notes I finally decided to write a perl program to show host notes and edit them trying to get all the things I really need on it an trying to make this a "page" that could be really useful to someone looking at it. First of all there will be some field dedicated to describe what the host is and do like: Aliases : if the alias is known with other names Purpose : what this host do, what service it run Services: list of services checked by bb with links Service Level Hours: hour at which the server have to be up and running (I've to see if this will be get automatically or if I'll leave the field manually editable) Then there will be a section dedicated to people to contact Contact Emails : emails of supporting peoples (as links to send email) Contact Phone: phone number of people (and with hours at which you can call them) Those field will also have a description so that you can have different support email for different problems (hardware/software/etc) Another section will show support information for the server so you can define phone or email address to call for support for hardware/software problems Serial Number: serial number or information for support call Support Email: email to get support Support Phone: phone number to get support A section will have procedures and notes: special procedures: Here you can describe what to do if something goes wrong with the server notes: Anything else A section will have information like related server or grouping of this server with other servers so that you can simply walk from one node of a cluster to the others or from the web servers to the application server or db server for a specific application. A section will include links you can need when checking this host or that will show more documentation on those. At the end of the page (probably) I'll also put link to HOSTNAME.html or HOSTNAME file available in the notes directory so that for example you can collect cfg2html files there and show them from this information page. I also want to define some "group" of definition that you can simply attach in the editor to host so that for example you can define the URL to ciscoworks globally and then attach this link to all your routers and they'll all show the ciscoworks link in the notes pages and you can get there from here. In the editing there will also be the possibility to define some links that will show in the notes pages like a link to hobbitperl-graph.pl or to info column of the host. Another idea I had was to make some field visible only to authenticated users so that you can put here information you want only your administrator to see and not all users. A first version will probably be available during the next week if I've some time to work on it. If you've more idea or something that I've missed and can be useful let me know and I'll check if it can be implemented. Francesco
list Ralph Mitchell
▸
On 10/18/06, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
Sounds feature-packed :-) I'd be happy with a simple text box that lets you enter text/HTML that gets saves as hostname.html in the notes directory, and that when viewing the notes they are properly Hobbit-ized with a Hobbit header and footer.
I've got a whole *bunch* of web page checkout scripts that are not really documented very well. I'm toying with the idea of putting a link at the bottom of each report that points to a Wiki page. That gives editing access to certain people, along with edit history and the ability to fall back to a previous version. So, I can write notes on how the script operates and the monitoring guys can write their own notes on how to fix stuff that breaks. The MediaWiki software handles all the non-trivial details of how to save the information and keep track of revisions. I *think* everyone wins. Of course, I won't know for sure until I get a prize for saving everyone's a$$ when a multi-million-dollar application goes belly up... :) What might be nice would be for the hostname in any display page to link to the Wiki entry. As I remember it, in Big Brother you just had to drop a [hostname].html page into the notes directory and it would be linked off the display page. I suppose I'd like it if I could specify a wiki url in the config file and have the hostname tacked on and linked from the main page. Maybe I'll poke around in the source and see how hard that would be... :) Ralph Mitchell
list Jason Altrincham Jones
That sounds perfect, small considerations maybe an asset tag field? Plus a hardware specification section? The procedures is the most interesting for us here since at the moment it's all kept in a small red file which annoyingly always seems to be lost when you need it :) Jason.
▸
-----Original Message-----
From: Francesco Duranti [mailto:user-7104dcecbfef@xymon.invalid]
Sent: 18 October 2006 23:37
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Host notes
Hi all,
after some testing with the php scripts for notes I finally decided to
write a perl program to show host notes and edit them trying to get all
the things I really need on it an trying to make this a "page" that
could be really useful to someone looking at it.
First of all there will be some field dedicated to describe what the
host is and do like:
Aliases : if the alias is known with other names
Purpose : what this host do, what service it run
Services: list of services checked by bb with links
Service Level Hours: hour at which the server have to be up and running
(I've to see if this will be get automatically or if I'll leave the
field manually editable)
Then there will be a section dedicated to people to contact
Contact Emails : emails of supporting peoples (as links to send email)
Contact Phone: phone number of people (and with hours at which you can
call them)
Those field will also have a description so that you can have different
support email for different problems (hardware/software/etc)
Another section will show support information for the server so you can
define phone or email address to call for support for hardware/software
problems
Serial Number: serial number or information for support call
Support Email: email to get support
Support Phone: phone number to get support
A section will have procedures and notes:
special procedures: Here you can describe what to do if something goes
wrong with the server
notes: Anything else
A section will have information like related server or grouping of this
server with other servers so that you can simply walk from one node of a
cluster to the others or from the web servers to the application server
or db server for a specific application.
A section will include links you can need when checking this host or
that will show more documentation on those.
At the end of the page (probably) I'll also put link to HOSTNAME.html or
HOSTNAME file available in the notes directory so that for example you
can collect cfg2html files there and show them from this information
page.
I also want to define some "group" of definition that you can simply
attach in the editor to host so that for example you can define the URL
to ciscoworks globally and then attach this link to all your routers and
they'll all show the ciscoworks link in the notes pages and you can get
there from here.
In the editing there will also be the possibility to define some links
that will show in the notes pages like a link to hobbitperl-graph.pl or
to info column of the host.
Another idea I had was to make some field visible only to authenticated
users so that you can put here information you want only your
administrator to see and not all users.
A first version will probably be available during the next week if I've
some time to work on it.
If you've more idea or something that I've missed and can be useful let
me know and I'll check if it can be implemented.
Francesco
list Charles Goyard
▸
Ralph Mitchell a écrit :
I've got a whole *bunch* of web page checkout scripts that are not really documented very well. I'm toying with the idea of putting a link at the bottom of each report that points to a Wiki page.
Fun, that's what we did :). With a cheap shell script that creates a html page that holds a redirect tag to the wiki. -- Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31
list T.J. Yang
Is there a /usr/bin/kstat for soalris 2.6 ? My solaris 2.6 box doesn't have kstat. root at test201> file /usr/kernel/drv/kstat /usr/kernel/drv/kstat: ELF 32-bit MSB relocatable SPARC Version 1 root at test201> /usr/kernel/drv/kstat bash: /usr/kernel/drv/kstat: cannot execute binary file root at test201> T.J. Yang Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001
list Francesco Duranti
That sounds perfect, small considerations maybe an asset tag field? Plus a hardware specification section? The procedures is the most interesting for us here since at the moment it's all kept in a small red file which annoyingly always seems to be lost when you need it :)
Well I think I can put some more field like asset tag, hardware vendor, hardware description for the hardware part. I think about letting the user define his own custom field so that everyone can define what is needed. Francesco