<br><font size=2 face="sans-serif">*******************************************************<br>
Julian Grunnell<br>
Unix Analyst<br>
TD Waterhouse International<br>
Leeds, West Yorkshire<br>
<br>
Tel: 0113 346 2824<br>
Extn: 32824<br>
Mobex: 52824<br>
*******************************************************</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Jim Avery <jim@jimavery.me.uk></b>
</font>
<p><font size=1 face="sans-serif">10/02/2011 13:23</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Nagios Users List <nagios-users@lists.sourceforge.net></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Nagios Users List <nagios-users@lists.sourceforge.net></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Nagios-users] Manipulate the Problems
page</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>On 10 February 2011 10:30,  <Julian_Grunnell@tdwh.co.uk>
wrote:<br>
><br>
> Hi - does anyone know if its possible to manipulate the URL that shows
the<br>
> Unhandled Services AND Hosts? I want to see on a single screen ALL
unhandled<br>
> Service problems AND ALL unhandled Host problems.<br>
><br>
> By default you can only view one or the other and as I've already
posted if<br>
> you have a HOST that is DOWN it does not appear in the Unhandled Service<br>
> Problems page.<br>
><br>
> The two URL's I'd like to combine are:<br>
><br>
> Services:<br>
> </font></tt><a href="http://webserver/nagios/cgi-bin/status.cgi?host=all&type=detail&hoststatustypes=3&serviceprops=42&servicestatustypes=28"><tt><font size=2>http://webserver/nagios/cgi-bin/status.cgi?host=all&type=detail&hoststatustypes=3&serviceprops=42&servicestatustypes=28<br>
><br>
> Hosts:<br>
> </font></tt><a href="http://webserver/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=12&hostprops=42"><tt><font size=2>http://webserver/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=12&hostprops=42<br>
<br>
I'm pretty sure you can't do that.  You could of course contrive a
web<br>
page with two frames one for each.  I tried that myself once but it<br>
wasn't very satisfactory as whenever the top frame had lots of<br>
problems, the bottom frame would then be pushed down the page out of<br>
sight.<br>
<br>
If it's any help to you, the URL I now use is:<br>
<br>
</font></tt><a href="http://webserver/nagios/cgi-bin/status.cgi?host=all&hostprops=10&servicestatustypes=29&serviceprops=10&sorttype=2&sortoption=6&noheader"><tt><font size=2>http://webserver/nagios/cgi-bin/status.cgi?host=all&hostprops=10&servicestatustypes=29&serviceprops=10&sorttype=2&sortoption=6&noheader<br>
<br>
Even though this doesn't explictly show hosts, if a host is down you<br>
will still see it on this page because its services will also be down<br>
(or unknown or whatever).<br>
<br>
According to the Display Filters panel which appears if you remove the<br>
"&noheader", this one shows:<br>
<br>
Host Status Types:              
  All<br>
Host Properties:              
  Not In Scheduled Downtime & Has Not Been Acknowledged<br>
Service Status Types:            
    Pending | Unknown | Warning | Critical<br>
Service Properties:              
  Not In Scheduled Downtime & Has Not Been Acknowledged<br>
<br>
and the sort is by state duration descending.<br>
<br>
Of course it won't show downed hosts if they have no services.  I
make<br>
sure all hosts have at least one service (even if that's just ping) so<br>
they can be seen on this service page.<br>
<br>
hth,<br>
<br>
Jim<br>
<br>
=======================================================</font></tt></a></a></a>
<br>
<br><tt><font size=2>Thanks Jim - that's just the info I needed to get
this setup. I've changed this slightly so that the headers and side frame
also appear now. So I simply edited the side.php file and added a new line
after line 68:</font></tt>
<br>
<br><tt><font size=2><li><a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?host=all&hostprops=10&servicestatustypes=29&serviceprops=10&sorttype=2&sortoption=6"
target="<?php echo $link_target;?>">ALL (Unhandled)</a></li></font></tt>
<br>
<br><tt><font size=2>This is exactly what our support guys wanted to be
able to see on a single page.</font></tt>
<br>
<br><tt><font size=2>Julian.</font></tt>
<br>
<P><BR>--------------------------------------------------------------------------------</P>
<P><BR>Consider the environment. Please don't print this e-mail unless you 
really need to. </P>
<P>Confidentiality:  This email and its attachments are intended for the 
above named only and may be confidential.  If they have come to you in 
error you must take no action based on them, nor must you copy or show them to 
anyone; please reply to this email and highlight the error. </P>
<P>Viruses:  Although we have taken steps to ensure that this email and 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure that they are actually 
virus-free.</P>
<P>Brokerage services provided by TD Waterhouse Investor Services (Europe) 
Limited (a subsidiary of The Toronto-Dominion Bank).  Authorised and 
regulated by the Financial Services Authority (FSA registered number 141282), 
member of the London Stock Exchange and the PLUS market. Incorporated in England 
and Wales under registration number 2101863.  Registered office: Exchange 
Court, Duncombe Street, Leeds LS1 4AX. Banking services provided by TD 
Waterhouse Bank N.V. authorised and regulated by De Nederlandsche Bank and the 
Financial Services Authority for UK Business (FSA registered number 
216791).  Incorporated in the Netherlands and registered as a branch in 
England and Wales under branch registration number BR006780. </P>
<P><BR>--------------------------------------------------------------------------------<BR></P>