Documenting servers, processes and stuff inside Xymon
list Martin Ward
Hi all, Is there any way to provide a simple list of "how-to"s for a given server within Xymon? For instance I have a process that over time eats up memory so needs to be restarted. It would be useful to have a piece of text saying something like "If memory gets full over time then restart this process" in the Memory page for this server. I realise I could have an auto-restart script but I am chary of those because of the potential for it continually restarting a daemon due to memory usage if, for some reason, that daemon is not the actual cause of the memory problem. I know about the DESCR: and COMMENTS: options in hosts.cfg but they for short amounts of text on a page with lots of hosts. Is there anywhere that I can link or show more information, hints and tips, contact information and such like information for each server? |\/|artin [Colt Disclaimer] This email is from an entity of the Colt group of companies. Colt Group S.A., K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S. B115679. Corporate and contact information for our entities can be found at http://colt.net/uk/en/Colt-Group-of-Companies/index.htm. Internet communications are not secure and Colt does not accept responsibility for the accurate transmission of this message. Content of this email or its attachments is not legally or contractually binding unless expressly previously agreed in writing by Colt
list Vernon Everett
Hi We had a similar situation, where a junior operator could fix the issue, but need a join-the-dots guide. We used the script feature in the alerts.cfg (OK, it was hobbit-alerts back then, but you get the idea.) When the alert was triggered, it ran a script, which used a few pre-defined and Xymon variables to craft an email explaining what should be done. This was then sent to the operators' inbox using your favourite CLI mail client. Hope it helps. Cheers Vernon
▸
On 21 March 2013 18:14, Ward, Martin <user-2d33a6eb6a05@xymon.invalid> wrote:
Hi all,**** ** ** Is there any way to provide a simple list of “how-to”s for a given server within Xymon? For instance I have a process that over time eats up memory so needs to be restarted. It would be useful to have a piece of text saying something like “If memory gets full over time then restart this process” in the Memory page for this server. I realise I could have an auto-restart script but I am chary of those because of the potential for it continually restarting a daemon due to memory usage if, for some reason, that daemon is not the actual cause of the memory problem.**** ** ** I know about the DESCR: and COMMENTS: options in hosts.cfg but they for short amounts of text on a page with lots of hosts. Is there anywhere that I can link or show more information, hints and tips, contact information and such like information for each server?**** ** ** |\/|artin**** ** ** [Colt Disclaimer] This email is from an entity of the Colt group of companies. Colt Group S.A., K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S. B115679. Corporate and contact information for our entities can be found at http://colt.net/uk/en/Colt-Group-of-Companies/index.htm. Internet communications are not secure and Colt does not accept responsibility for the accurate transmission of this message. Content of this email or its attachments is not legally or contractually binding unless expressly previously agreed in writing by Colt
--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
list Henrik Størner
On Thu, 21 Mar 2013 10:14:26 +0000, "Ward, Martin" <user-2d33a6eb6a05@xymon.invalid>
▸
wrote:Hi all, Is there any way to provide a simple list of "how-to"s for a given server within Xymon?
Drop a file named HOSTNAME.html (or .doc, .php, .asp) in the ~xymon/data/www/notes/ directory, and it will automatically change your hostname on the Xymon page to a link to that document. It will also show up as Documentation on the "info" status column. Regards, Henrik
list Martin Ward
My thanks to the fast response from Steve and Everett and for their pointers, I hadn’t thought to look in the xymonserver.cfg file which directed me to the Notes directory and the tools to use it. @Everett, I like the idea of simply using the alert to send an email to the operator, it’s a nice simple solution! |\/|artin From: Steve Holmes [mailto:user-5425c7b245e1@xymon.invalid] Sent: 21 March 2013 11:15 To: Ward, Martin Subject: Re: [Xymon] Documenting servers, processes and stuff inside Xymon We use an addon called notes. There's a notes editor and some changes to the menus to make it work. Look on xymonton for it. Steve Wherever you go, there you are.
▸
On Mar 21, 2013, at 6:14 AM, "Ward, Martin" <user-2d33a6eb6a05@xymon.invalid<mailto:user-2d33a6eb6a05@xymon.invalid>> wrote: Hi all, Is there any way to provide a simple list of “how-to”s for a given server within Xymon? For instance I have a process that over time eats up memory so needs to be restarted. It would be useful to have a piece of text saying something like “If memory gets full over time then restart this process” in the Memory page for this server. I realise I could have an auto-restart script but I am chary of those because of the potential for it continually restarting a daemon due to memory usage if, for some reason, that daemon is not the actual cause of the memory problem. I know about the DESCR: and COMMENTS: options in hosts.cfg but they for short amounts of text on a page with lots of hosts. Is there anywhere that I can link or show more information, hints and tips, contact information and such like information for each server? |\/|artin [Colt Disclaimer] This email is from an entity of the Colt group of companies. Colt Group S.A., K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S. B115679. Corporate and contact information for our entities can be found at http://colt.net/uk/en/Colt-Group-of-Companies/index.htm. Internet communications are not secure and Colt does not accept responsibility for the accurate transmission of this message. Content of this email or its attachments is not legally or contractually binding unless expressly previously agreed in writing by Colt
list Jeremy Laidman
▸
On 21 March 2013 22:51, <user-ce4a2c883f75@xymon.invalid> wrote:
Drop a file named HOSTNAME.html (or .doc, .php, .asp) in the ~xymon/data/www/notes/ directory, and it will automatically change your hostname on the Xymon page to a link to that document.
Thanks for this, didn't know about it, but I see it's been around since at least v4.3.4. I've just set this up as a javascript-based page that detects the hostname from the URL, and uses it to dynamically create a bunch of links for it, such as "click here for Event Log" and "click to connect with ssh". Then I just symlink it to servername.html for each server and I'm set. J