Question on setting up a specialized status.cgi page

steve f a31modela at hotmail.com
Wed Feb 16 21:53:02 CET 2011



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_options            w,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+Checks&servicestatustypes=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: a31modela at hotmail.com
To: nagios-users at 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
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 +0000
> From: jim at jimavery.me.uk
> To: nagios-users at 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 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
 		 	   		  

------------------------------------------------------------------------------
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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110216/c92feb44/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