Manipulate the Problems page

Julian_Grunnell at tdwh.co.uk Julian_Grunnell at tdwh.co.uk
Thu Feb 10 15:28:26 CET 2011


*******************************************************
Julian Grunnell
Unix Analyst
TD Waterhouse International
Leeds, West Yorkshire

Tel: 0113 346 2824
Extn: 32824
Mobex: 52824
*******************************************************



Jim Avery <jim at jimavery.me.uk> 
10/02/2011 13:23
Please respond to
Nagios Users List <nagios-users at lists.sourceforge.net>


To
Nagios Users List <nagios-users at lists.sourceforge.net>
cc

Subject
Re: [Nagios-users] Manipulate the Problems page






On 10 February 2011 10:30,  <Julian_Grunnell at tdwh.co.uk> wrote:
>
> Hi - does anyone know if its possible to manipulate the URL that shows 
the
> Unhandled Services AND Hosts? I want to see on a single screen ALL 
unhandled
> Service problems AND ALL unhandled Host problems.
>
> By default you can only view one or the other and as I've already posted 
if
> you have a HOST that is DOWN it does not appear in the Unhandled Service
> Problems page.
>
> The two URL's I'd like to combine are:
>
> Services:
> 
http://webserver/nagios/cgi-bin/status.cgi?host=all&type=detail&hoststatustypes=3&serviceprops=42&servicestatustypes=28

>
> Hosts:
> 
http://webserver/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=12&hostprops=42


I'm pretty sure you can't do that.  You could of course contrive a web
page with two frames one for each.  I tried that myself once but it
wasn't very satisfactory as whenever the top frame had lots of
problems, the bottom frame would then be pushed down the page out of
sight.

If it's any help to you, the URL I now use is:

http://webserver/nagios/cgi-bin/status.cgi?host=all&hostprops=10&servicestatustypes=29&serviceprops=10&sorttype=2&sortoption=6&noheader


Even though this doesn't explictly show hosts, if a host is down you
will still see it on this page because its services will also be down
(or unknown or whatever).

According to the Display Filters panel which appears if you remove the
"&noheader", this one shows:

Host Status Types:               All
Host Properties:                 Not In Scheduled Downtime & Has Not Been 
Acknowledged
Service Status Types:            Pending | Unknown | Warning | Critical
Service Properties:              Not In Scheduled Downtime & Has Not Been 
Acknowledged

and the sort is by state duration descending.

Of course it won't show downed hosts if they have no services.  I make
sure all hosts have at least one service (even if that's just ping) so
they can be seen on this service page.

hth,

Jim

=======================================================

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:

<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>

This is exactly what our support guys wanted to be able to see on a single 
page.

Julian.

_______________________________________________________

Consider the environment: Please don't print this e-mail unless you really need to.

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.

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.

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.
_______________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110210/d95ea3e7/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
-------------- next part --------------
_______________________________________________
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