Additional Column in Service Details

Marc Powell marc at ena.com
Thu Jun 17 19:48:51 CEST 2004


This conversation is probably better suited to nagios-devel. You'll need
to look at status.c, find the section of code that displays the specific
page you want to edit and make your additions. In Nagios 1.1 it looks
like the main host/services display happens around line 3446 (try
searching for 'the main list of services'). The variable containing the
address looks like it might be 'temp_host->address' but I'm sure if
you're able to modify the code to the extent you want then you can
determine what it is for sure (or ask on the devel list).

--
Marc

Jason Payne - iland Internet Solutions <mailto:jason.payne at iland.com>
wrote: 
> I already do both of these things.  I suppose i'm not asking for a
> way to better organize my hosts, rather than asking for a way to add
> a column to a list of hosts.  It's more of a technical question than
> anything else.  Let me be a little more descriptive.  I load up the
> web interface, and click Service Detail on the left.  A table pops
> up.  How do I add an addition column to the table, next to hosts,
> that show the ip address for the host in the table?  I'm sure there
> is a query in the cgi that nabs all of this information out of the
> status file.  I want to know if there is a way to reference the ip
> address for the host and throw it into that table.  An answer to
> this, obviously, has the ability to broaden my abilities to customize
> the interface.  In other words, I was asking it as an example.       
> 
> Thanks,
> Jason
> 
> -----Original Message-----
> From: Paul L. Allen [mailto:pla at softflare.com]
> Sent: Thursday, June 17, 2004 10:45 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Re: Additional Column in Service Details
> 
> 
> Jason Payne - iland Internet Solutions writes:
> 
> > So, for instance, if a firewall chokes I can easily see which downed
> > hosts have ip space behind the firewall without going to the map.
> 
> Method 1: use hostgroups and put the machines behind the firewall,
> along with the firewall itself, into their own group. 
> 
> Method 2: use descriptive hostnames like customerx-firewall,
> customerx-mail, etc.  That groups them together in most of the
> displays, which can be useful even if you also use hostgroups.  



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
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