Re: [Nagios-users] Question on setting up a specialized status.cgi page

2011-02-16 Thread steve f


I stumbled upon the answer to my issue for a custom status page.

What I was doing wrong was I created in the servicegroups.cfg file with a line 
called members

members  HOSTNAME1,check_1, check_2, 
check_3,check_4,check_5,HOSTNAME2, SAME 5 CHECKS AS HOST #1,HOSTNAME3,SAME

This method did not work.  I wound up removing the members line from the 
servicegroups.cfg file, just leaving the service group name  the alias in the 
file and added the service group name to each define service for the 5  
legacy_checks  as follows :

define service{
   use generic-service
   servicegroups  Legacy Checks
   hostgroup_name  APP_servers
   contact_groups   admins,legacy
   notification_optionsw,c
 active_checks_enabled   0
   service_description Legacy CPU Load
   check_command   check_legacy_cpu
}

This allowed me to get the service group for all different legacy checks I 
wanted.  Then If I run the following url 

http://NAGIOS_SERVER/nagios/cgi-bin/status.cgi?servicegroup=Legacy+Checksservicestatustypes=16

I get the list of all legacy checks for all hosts and the critical ones only.

Hopefully someone else can benefit from this info.

Regards,

Steve


From: a31mod...@hotmail.com
To: nagios-users@lists.sourceforge.net
Date: Mon, 14 Feb 2011 17:35:57 -0500
Subject: Re: [Nagios-users] Question on setting up a specialized status.cgi page








Thanks for your reply Jim,

I tried to set up the servicegroup as follows :

define servicegroup {
servicegroup_name   Legacy_Checks
aliasLegacy Checks
members  HOSTNAME1,check_1, check_2, 
check_3,check_4,check_5,HOSTNAME2, SAME 5 CHECKS AS HOST #1,HOSTNAME3,SAME
}

I assume that the service group will only work with a single check for multiple 
hosts as if I removed all of the checks but 1, it will work.  This however will 
not work for what I am trying to do.

Thanks,

Steve



 Date: Sat, 12 Feb 2011 10:09:26 +
 From: j...@jimavery.me.uk
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Question on setting up a specialized status.cgi   
 page
 
 What was is about servicegroups which didn't work for you?  That's
 what I'd look at first.
 
 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@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
  

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

Re: [Nagios-users] Question on setting up a specialized status.cgi page

2011-02-14 Thread Yueh-Hung Liu
please review the document of objects definition, the following quoted
from servicegroup definition:

members:
This is a list of the descriptions of services (and the names of their
corresponding hosts) that should be included in this group. Host and
service names should be separated by commas. This directive may be
used as an alternative to the servicegroups directive in service
definitions. The format of the member directive is as follows (note
that a host name must precede a service name/description):

members=host1,service1,host2,service2,...,hostn,servicen



On Tue, Feb 15, 2011 at 6:35 AM, steve f a31mod...@hotmail.com wrote:
 Thanks for your reply Jim,

 I tried to set up the servicegroup as follows :

 define servicegroup {
 servicegroup_name           Legacy_Checks
 alias                                Legacy Checks
 members                              HOSTNAME1,check_1, check_2,
 check_3,check_4,check_5,HOSTNAME2, SAME 5 CHECKS AS HOST
 #1,HOSTNAME3,SAME
 }

 I assume that the service group will only work with a single check for
 multiple hosts as if I removed all of the checks but 1, it will work.  This
 however will not work for what I am trying to do.

 Thanks,

 Steve



 Date: Sat, 12 Feb 2011 10:09:26 +
 From: j...@jimavery.me.uk
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Question on setting up a specialized
 status.cgi page

 What was is about servicegroups which didn't work for you? That's
 what I'd look at first.

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

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


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


Re: [Nagios-users] Question on setting up a specialized status.cgi page

2011-02-12 Thread Jim Avery
What was is about servicegroups which didn't work for you?  That's
what I'd look at first.

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


[Nagios-users] Question on setting up a specialized status.cgi page

2011-02-11 Thread steve f

Hello All,

I have say 20 hosts that among their checks they each run the same 5 checks on 
a SCO Unix machine at their location via an rsh script.  For example, I rsh to 
the sco box, do a sar on it and report the results back and determine if the 
cpu on the sco box is high. These check reports as a check from the host and is 
called Legacy CPU.  I wanted to set up a status.cgi page that the people 
responsible for the legacy stuff could look at and see the status of all 5 
Legacy_XXX checks on one status page.

I have not been able to figure out how to get this page to display.  I have 
tried setting up a servicegroup, manually playing with the statustypes, looking 
into doing it via extinfo.cgi and have come up empty handed.

These hosts have a bunch of checks coming back from them into the console but I 
wanted to just have some sort of Legacy Check Service group screen.

I think I am missing something easy here and may be trying to over engineer this


Thanks,

Steve


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