Annotation column for nagios host/service summary screens

Andreas Ericsson ae at op5.se
Wed Dec 3 08:57:46 CET 2008


Kelly Jones wrote:
> It always bugged me that you couldn't customize the nagios
> host/service summary screens, so I hacked cgi/status.c as attached
> (.20080401.133208.status.c is the original, status.c is my change).
> 
> You put host-specific annotations in
> /usr/local/etc/nagios/annotate/$host/hostinfo.txt, and
> service-specific annotations in
> /usr/local/etc/nagios/annotate/$host/$service
> 

That doesn't fly if the host or service has chars in their names that
make them unsuitable as path-names. For example, services ending with
a backslash (or a backslash and one or two dots) can never have
annotations.

> This is EXTREMELY rudimentary and bad for many reasons (the
> information is hardcoded, the path is not tied to where you install
> nagios, etc), and my main goal is to convince someone to improve it.
> 

Well, for one thing, the patch is generated reversely. The syntax of
the diff command is: "diff old new", while you gave "diff new old".
The patch can still be applied though, by using "patch -R -p1 < file"

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list