Displaying Hostgroups in Nagios's left frame
Dan Rich
drich at employees.org
Mon Jun 2 20:13:03 CEST 2003
Lawrence Mulligan said:
> I saw a screenshot of someone's Nagios setup and they had their hostgroups
> showing up underneath the Service detail link. Like this:
>
> * Tactical Overview
> * Service Detail
> --> * Linux Machines
> --> * Routers
> --> * etc
>
> Can someone point my to the correct documentation in the documentation? I
> can't seem to find any information and I'd like to try to break the display
> of status information into smaller groups.
You need to edit side.html. I did it with one change to the style sheet at
the top of the file adding:
A.NavBarItem1 { font-family: arial,serif; background-color : black;
color: #DEE7C6; font-size: 8pt; font-weight: bold; text-decoration:
none; }
and adding the following after the table row for Service Detail:
<tr>
<td width=13> </td>
<td nowrap>
<img src="images/greendot.gif" width="13" height="14" align="middle"
name="status-dot-1"><a
href="http://netmon.pdi.com/nagios/cgi-bin/status.cgi?hostgroup=hostgroup1&style=detail"
target="main" onMouseOver="switchdot('status-dot-1',1)"
onMouseOut="switchdot('status-dot-1',0)" class="NavBarItem1">Host Group
1</a><br>
<img src="images/greendot.gif" width="13" height="14" align="middle"
name="status-dot-2"><a
href="http://netmon.pdi.com/nagios/cgi-bin/status.cgi?hostgroup=hostgroup2&stule=detail"
target="main" onMouseOver="switchdot('status-dot-2',1)"
onMouseOut="switchdot('status-dot-2',0)" class="NavBarItem1">Host Group
2</a><br>
...
</td>
</tr>
You'll want to change hostgroup[12] and "Host Group [12]" to the name and
description of your hostgroups, and keep incrementing the n in "status-dot-n"
for each line you add to make t
>
> Can someone point my to the correct documentation in the documentation? I
> can't seem to find any information and I'd like to try to break the display
> of status information into smaller groups.
You need to edit side.html. I did it with one change to the style sheet at
the top of the file adding:
A.NavBarItem1 { font-family: arial,serif; background-color : black;
color: #DEE7C6; font-size: 8pt; font-weight: bold; text-decoration:
none; }
and adding the following after the table row for Service Detail:
<tr>
<td width=13> </td>
<td nowrap>
<img src="images/greendot.gif" width="13" height="14" align="middle"
name="status-dot-1"><a
href="http://netmon.pdi.com/nagios/cgi-bin/status.cgi?hostgroup=hostgroup1&style=detail"
target="main" onMouseOver="switchdot('status-dot-1',1)"
onMouseOut="switchdot('status-dot-1',0)" class="NavBarItem1">Host Group
1</a><br>
<img src="images/greendot.gif" width="13" height="14" align="middle"
name="status-dot-2"><a
href="http://netmon.pdi.com/nagios/cgi-bin/status.cgi?hostgroup=hostgroup2&stule=detail"
target="main" onMouseOver="switchdot('status-dot-2',1)"
onMouseOut="switchdot('status-dot-2',0)" class="NavBarItem1">Host Group
2</a><br>
...
</td>
</tr>
You'll want to change hostgroup[12] and "Host Group [12]" to the name and
description of your hostgroups, and keep incrementing the n in "status-dot-n"
for each line you add to make the green dot turn orange when your mouse rolls
over the line.
Remember, any changes you make to side.html and main.html will be lost if you
upgrade Nagios, so keep a backup copy you can restore after upgrading.
--
Dan Rich <drich at employees.org> | http://www.employees.org/~drich/
| "Step up to red alert!" "Are you sure, sir?
| It means changing the bulb in the sign..."
| - Red Dwarf (BBC)
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
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