Manipulate the Problems page

Jim Avery jim at jimavery.me.uk
Thu Feb 10 14:14:23 CET 2011


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

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