Nagios: Service dependency on same host for an entire hostgroupSpace out various service checks for a host with NagiosNagios check for service not if host is upSet Host status from service status on NagiosNAGIOS notification command for service/contactgroupHow to dedicate hostgroup to user in Nagios core?Nagios service check interval based on host typeOverriding Nagios hostgroup service with host serviceNagios: check host service even if host is downNagios exclude a service for a single hostNagios: Dependency from service to different host

Why does Taylor’s series “work”?

On a piano, are the effects of holding notes and the sustain pedal the same for a single chord?

Was murdering a slave illegal in American slavery, and if so, what punishments were given for it?

How does the "reverse syntax" in Middle English work?

Vehemently against code formatting

Gambler's Fallacy Dice

How can sister protect herself from impulse purchases with a credit card?

Chain rule instead of product rule

Will this series of events work to drown the Tarrasque?

How do I unravel apparent recursion in an edef statement?

Novel where a cube cooled below absolute zero makes a hole in reality

What city and town structures are important in a low fantasy medieval world?

Bash Read: Reading comma separated list, last element is missed

Head-internal relative clauses

How do we explain the use of a software on a math paper?

Why is so much ransomware breakable?

Managing heat dissipation in a magic wand

Why is python script running in background consuming 100 % CPU?

Why did Nick Fury not hesitate in blowing up the plane he thought was carrying a nuke?

How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?

How to determine the distribution of Ubuntu

Parse a C++14 integer literal

Was Tyrion always a poor strategist?

Warped chessboard



Nagios: Service dependency on same host for an entire hostgroup


Space out various service checks for a host with NagiosNagios check for service not if host is upSet Host status from service status on NagiosNAGIOS notification command for service/contactgroupHow to dedicate hostgroup to user in Nagios core?Nagios service check interval based on host typeOverriding Nagios hostgroup service with host serviceNagios: check host service even if host is downNagios exclude a service for a single hostNagios: Dependency from service to different host






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








5















I have a Nagios system with a large number of hosts categorised in different hostgroups. Each of these hosts has two services monitored on it, one of which is intended to be dependent on the other - if service1 is WARNING or CRITICAL, service2 on that server should not give an alert as well. service2 is intended more for statistic collection, while service1 is a simple availability check - as such, I always want service2 checking, but not alerting if service1 is reporting as down.



This is my services.cfg entry:



define servicedependency
hostgroup example-servers
#host_name host1.example.com,host2.example.com
service_description service1
dependent_service_description service2
execution_failure_criteria n
notification_failure_criteria u,w,c,o



I have tried both specifying it via a hostgroup and as a list of individual servers. Ideally, I would do it for the entire hostgroup in one rather than have to constantly maintain a list.



However, this does not seem to work, either way. If service1 is down, service2 also shows a CRITICAL status in the problems screen and on host details.










share|improve this question




























    5















    I have a Nagios system with a large number of hosts categorised in different hostgroups. Each of these hosts has two services monitored on it, one of which is intended to be dependent on the other - if service1 is WARNING or CRITICAL, service2 on that server should not give an alert as well. service2 is intended more for statistic collection, while service1 is a simple availability check - as such, I always want service2 checking, but not alerting if service1 is reporting as down.



    This is my services.cfg entry:



    define servicedependency
    hostgroup example-servers
    #host_name host1.example.com,host2.example.com
    service_description service1
    dependent_service_description service2
    execution_failure_criteria n
    notification_failure_criteria u,w,c,o



    I have tried both specifying it via a hostgroup and as a list of individual servers. Ideally, I would do it for the entire hostgroup in one rather than have to constantly maintain a list.



    However, this does not seem to work, either way. If service1 is down, service2 also shows a CRITICAL status in the problems screen and on host details.










    share|improve this question
























      5












      5








      5








      I have a Nagios system with a large number of hosts categorised in different hostgroups. Each of these hosts has two services monitored on it, one of which is intended to be dependent on the other - if service1 is WARNING or CRITICAL, service2 on that server should not give an alert as well. service2 is intended more for statistic collection, while service1 is a simple availability check - as such, I always want service2 checking, but not alerting if service1 is reporting as down.



      This is my services.cfg entry:



      define servicedependency
      hostgroup example-servers
      #host_name host1.example.com,host2.example.com
      service_description service1
      dependent_service_description service2
      execution_failure_criteria n
      notification_failure_criteria u,w,c,o



      I have tried both specifying it via a hostgroup and as a list of individual servers. Ideally, I would do it for the entire hostgroup in one rather than have to constantly maintain a list.



      However, this does not seem to work, either way. If service1 is down, service2 also shows a CRITICAL status in the problems screen and on host details.










      share|improve this question














      I have a Nagios system with a large number of hosts categorised in different hostgroups. Each of these hosts has two services monitored on it, one of which is intended to be dependent on the other - if service1 is WARNING or CRITICAL, service2 on that server should not give an alert as well. service2 is intended more for statistic collection, while service1 is a simple availability check - as such, I always want service2 checking, but not alerting if service1 is reporting as down.



      This is my services.cfg entry:



      define servicedependency
      hostgroup example-servers
      #host_name host1.example.com,host2.example.com
      service_description service1
      dependent_service_description service2
      execution_failure_criteria n
      notification_failure_criteria u,w,c,o



      I have tried both specifying it via a hostgroup and as a list of individual servers. Ideally, I would do it for the entire hostgroup in one rather than have to constantly maintain a list.



      However, this does not seem to work, either way. If service1 is down, service2 also shows a CRITICAL status in the problems screen and on host details.







      nagios






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 '13 at 15:41









      jreid9001jreid9001

      13626




      13626




















          2 Answers
          2






          active

          oldest

          votes


















          0














          From the Nagios manual for "execution_failure_criteria": "If you specify n (none) as an option, the execution dependency will never fail and checks of the dependent service will always be actively checked (if other conditions allow for it to be)."



          Sounds like you should be using "u,c" instead (don't check if server1 is UNKNOWN or CRITICAL). Or perhaps "w,u,c" IF a WARNING state from service1 should also cause service2 not to execute.






          share|improve this answer























          • I'd like the check to be made in any case (for performance data), but only to send notifications if service1 is not warning/critical.

            – jreid9001
            Mar 11 '13 at 10:03


















          0














          If you specify "execution_failure_criteria n" then service2 will always be checked. If is is checked and is in a warning or critical state the user interface will show that state. You can't prevent that (afaik), but you can prevent it sending notifications, e.g "notification_failure_criteria u,w,c".



          I think you can either have "execution_failure_criteria" set as it is (i.e. "n"), and live with the status showing service2 as critical when it can't be reached, or change it to "c".



          You probably don't want to suppress notifications if service1 is OK, which is what you are doing with the "o" in "notification_failure_criteria u,w,c,o".






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f486027%2fnagios-service-dependency-on-same-host-for-an-entire-hostgroup%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            From the Nagios manual for "execution_failure_criteria": "If you specify n (none) as an option, the execution dependency will never fail and checks of the dependent service will always be actively checked (if other conditions allow for it to be)."



            Sounds like you should be using "u,c" instead (don't check if server1 is UNKNOWN or CRITICAL). Or perhaps "w,u,c" IF a WARNING state from service1 should also cause service2 not to execute.






            share|improve this answer























            • I'd like the check to be made in any case (for performance data), but only to send notifications if service1 is not warning/critical.

              – jreid9001
              Mar 11 '13 at 10:03















            0














            From the Nagios manual for "execution_failure_criteria": "If you specify n (none) as an option, the execution dependency will never fail and checks of the dependent service will always be actively checked (if other conditions allow for it to be)."



            Sounds like you should be using "u,c" instead (don't check if server1 is UNKNOWN or CRITICAL). Or perhaps "w,u,c" IF a WARNING state from service1 should also cause service2 not to execute.






            share|improve this answer























            • I'd like the check to be made in any case (for performance data), but only to send notifications if service1 is not warning/critical.

              – jreid9001
              Mar 11 '13 at 10:03













            0












            0








            0







            From the Nagios manual for "execution_failure_criteria": "If you specify n (none) as an option, the execution dependency will never fail and checks of the dependent service will always be actively checked (if other conditions allow for it to be)."



            Sounds like you should be using "u,c" instead (don't check if server1 is UNKNOWN or CRITICAL). Or perhaps "w,u,c" IF a WARNING state from service1 should also cause service2 not to execute.






            share|improve this answer













            From the Nagios manual for "execution_failure_criteria": "If you specify n (none) as an option, the execution dependency will never fail and checks of the dependent service will always be actively checked (if other conditions allow for it to be)."



            Sounds like you should be using "u,c" instead (don't check if server1 is UNKNOWN or CRITICAL). Or perhaps "w,u,c" IF a WARNING state from service1 should also cause service2 not to execute.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 10 '13 at 0:10









            Jim BlackJim Black

            281212




            281212












            • I'd like the check to be made in any case (for performance data), but only to send notifications if service1 is not warning/critical.

              – jreid9001
              Mar 11 '13 at 10:03

















            • I'd like the check to be made in any case (for performance data), but only to send notifications if service1 is not warning/critical.

              – jreid9001
              Mar 11 '13 at 10:03
















            I'd like the check to be made in any case (for performance data), but only to send notifications if service1 is not warning/critical.

            – jreid9001
            Mar 11 '13 at 10:03





            I'd like the check to be made in any case (for performance data), but only to send notifications if service1 is not warning/critical.

            – jreid9001
            Mar 11 '13 at 10:03













            0














            If you specify "execution_failure_criteria n" then service2 will always be checked. If is is checked and is in a warning or critical state the user interface will show that state. You can't prevent that (afaik), but you can prevent it sending notifications, e.g "notification_failure_criteria u,w,c".



            I think you can either have "execution_failure_criteria" set as it is (i.e. "n"), and live with the status showing service2 as critical when it can't be reached, or change it to "c".



            You probably don't want to suppress notifications if service1 is OK, which is what you are doing with the "o" in "notification_failure_criteria u,w,c,o".






            share|improve this answer



























              0














              If you specify "execution_failure_criteria n" then service2 will always be checked. If is is checked and is in a warning or critical state the user interface will show that state. You can't prevent that (afaik), but you can prevent it sending notifications, e.g "notification_failure_criteria u,w,c".



              I think you can either have "execution_failure_criteria" set as it is (i.e. "n"), and live with the status showing service2 as critical when it can't be reached, or change it to "c".



              You probably don't want to suppress notifications if service1 is OK, which is what you are doing with the "o" in "notification_failure_criteria u,w,c,o".






              share|improve this answer

























                0












                0








                0







                If you specify "execution_failure_criteria n" then service2 will always be checked. If is is checked and is in a warning or critical state the user interface will show that state. You can't prevent that (afaik), but you can prevent it sending notifications, e.g "notification_failure_criteria u,w,c".



                I think you can either have "execution_failure_criteria" set as it is (i.e. "n"), and live with the status showing service2 as critical when it can't be reached, or change it to "c".



                You probably don't want to suppress notifications if service1 is OK, which is what you are doing with the "o" in "notification_failure_criteria u,w,c,o".






                share|improve this answer













                If you specify "execution_failure_criteria n" then service2 will always be checked. If is is checked and is in a warning or critical state the user interface will show that state. You can't prevent that (afaik), but you can prevent it sending notifications, e.g "notification_failure_criteria u,w,c".



                I think you can either have "execution_failure_criteria" set as it is (i.e. "n"), and live with the status showing service2 as critical when it can't be reached, or change it to "c".



                You probably don't want to suppress notifications if service1 is OK, which is what you are doing with the "o" in "notification_failure_criteria u,w,c,o".







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 21 '15 at 17:11









                John BallJohn Ball

                19612




                19612



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f486027%2fnagios-service-dependency-on-same-host-for-an-entire-hostgroup%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                    Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                    What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company