<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>I stumbled upon the answer to my issue for a custom status page.<br><br>What I was doing wrong was I created in the servicegroups.cfg file with a line called members<br><br><span class="ecxrichText">members HOSTNAME1,check_1, check_2, check_3,check_4,check_5,HOSTNAME2, SAME 5 CHECKS AS HOST #1,HOSTNAME3,SAME....<br><br>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 :<br><br>define service{<br> use generic-service<br> <b> servicegroups Legacy Checks</b><br> hostgroup_name APP_servers<br> contact_groups admins,legacy<br> notification_options w,c<br> active_checks_enabled 0<br> service_description Legacy CPU Load<br> check_command check_legacy_cpu<br>}<br><br>This allowed me to get the service group for all different legacy checks I wanted. Then If I run the following url <br><br>http://NAGIOS_SERVER/nagios/cgi-bin/status.cgi?servicegroup=Legacy+Checks&servicestatustypes=16<br><br>I get the list of all legacy checks for all hosts and the critical ones only.<br><br>Hopefully someone else can benefit from this info.<br><br>Regards,<br><br>Steve<br><br><br></span><hr id="stopSpelling">From: a31modela@hotmail.com<br>To: nagios-users@lists.sourceforge.net<br>Date: Mon, 14 Feb 2011 17:35:57 -0500<br>Subject: Re: [Nagios-users] Question on setting up a specialized status.cgi page<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
Thanks for your reply Jim,<br><br>I tried to set up the servicegroup as follows :<br><br><span class="ecxrichText">define <span class="ecxsearchTerm">servicegroup</span> {<br><span class="ecxsearchTerm">servicegroup</span>_name Legacy_Checks<br>alias Legacy Checks<br>members HOSTNAME1,check_1, check_2, check_3,check_4,check_5,HOSTNAME2<wbr>, SAME 5 CHECKS AS HOST #1,HOSTNAME3,SAME....<br>}<br></span><br>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.<br><br>Thanks,<br><br>Steve<br><br><br><br>> Date: Sat, 12 Feb 2011 10:09:26 +0000<br>> From: jim@jimavery.me.uk<br>> To: nagios-users@lists.sourceforge.net<br>> Subject: Re: [Nagios-users] Question on setting up a specialized status.cgi page<br>> <br>> What was is about servicegroups which didn't work for you? That's<br>> what I'd look at first.<br>> <br>> Jim<br>> <br>> ------------------------------------------------------------------------------<br>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:<br>> Pinpoint memory and threading errors before they happen.<br>> Find and fix more than 250 security defects in the development cycle.<br>> Locate bottlenecks in serial and parallel code that limit performance.<br>> http://p.sf.net/sfu/intel-dev2devfeb<br>> _______________________________________________<br>> Nagios-users mailing list<br>> Nagios-users@lists.sourceforge.net<br>> https://lists.sourceforge.net/lists/listinfo/nagios-users<br>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>> ::: Messages without supporting info will risk being sent to /dev/null<br>
<br>------------------------------------------------------------------------------
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<br>_______________________________________________
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 </body>
</html>