<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Greetings,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We have a nagios setup that uses inheritance to a larger degree than I am used to. I’ve read the documentation at:<o:p></o:p></p>
<p class="MsoNormal"><a href="http://nagios.sourceforge.net/docs/3_0/objectinheritance.html">http://nagios.sourceforge.net/docs/3_0/objectinheritance.html</a>  But I still can’t get my head around how to accomplish my goal.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have server/host that has notified for procs warning. I investigated this and it is a known bug and safely ignored for this specific server.  Ideally I’d like to increase the warning/critical points for the service definition for just
 this host; but I’m also comfortable just not using this service check until a patch for the current problem is issued.   Disabling via the web interface is not an acceptable option for my mangers.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Service definition:<o:p></o:p></p>
<p class="MsoNormal">define service{<o:p></o:p></p>
<p class="MsoNormal">        use                                             unix-agent-service<o:p></o:p></p>
<p class="MsoNormal">        hostgroup_name                  linux-servers<o:p></o:p></p>
<p class="MsoNormal">        service_description             Agent: Total Processes<o:p></o:p></p>
<p class="MsoNormal">        check_command                   check_nrpe!check_total_procs<o:p></o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The host definition: <o:p></o:p></p>
<p class="MsoNormal">define host{<o:p></o:p></p>
<p class="MsoNormal">        use                     linux-server<o:p></o:p></p>
<p class="MsoNormal">        host_name               unixlab<o:p></o:p></p>
<p class="MsoNormal">        alias                   Unix Lab<o:p></o:p></p>
<p class="MsoNormal">        address                 PRIVATE<o:p></o:p></p>
<p class="MsoNormal">        }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Group/server Definition:<o:p></o:p></p>
<p class="MsoNormal"># Linux host definition template<o:p></o:p></p>
<p class="MsoNormal">define host{<o:p></o:p></p>
<p class="MsoNormal">        name                            linux-server<o:p></o:p></p>
<p class="MsoNormal">        use                             generic-host<o:p></o:p></p>
<p class="MsoNormal">        alias                           Linux server<o:p></o:p></p>
<p class="MsoNormal">        hostgroups                      linux-servers<o:p></o:p></p>
<p class="MsoNormal">        register                        0<o:p></o:p></p>
<p class="MsoNormal">        }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The host inherits all the services defined in the hostgroup linux-servers. I’ve tried giving the service check a name and then setting that name to null in the host definition, but I think this syntax is wrong and/or I’m not understanding
 that part of inheritance:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">define service{<o:p></o:p></p>
<p class="MsoNormal">        <b>name                                            agent-total-processes
<o:p></o:p></b></p>
<p class="MsoNormal">       use                                             unix-agent-service<o:p></o:p></p>
<p class="MsoNormal">        hostgroup_name                  linux-servers<o:p></o:p></p>
<p class="MsoNormal">        service_description             Agent: Total Processes<o:p></o:p></p>
<p class="MsoNormal">        check_command                   check_nrpe!check_total_procs<o:p></o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The host definition: <o:p></o:p></p>
<p class="MsoNormal">define host{<o:p></o:p></p>
<p class="MsoNormal">        use                     linux-server<o:p></o:p></p>
<p class="MsoNormal">        host_name               unixlab<o:p></o:p></p>
<p class="MsoNormal">        alias                   Unix Lab<o:p></o:p></p>
<p class="MsoNormal">        address                 PRIVATE<o:p></o:p></p>
<p class="MsoNormal">         <b>     agent-total-processes    null<o:p></o:p></b></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m sure I’m missing something obvious… based on my reading of inheritance this should be possible but I’m not able to wrap my head around it.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thoughts?<o:p></o:p></p>
<p class="MsoNormal">Taylor<o:p></o:p></p>
</div>
</body>
</html>