Home > nagios > dynamically adding new host in nagios

dynamically adding new host in nagios

June 20Hits:0
Advertisement

I having nagios server which monitoring xml files available in directory.

Each xml file has unique id, based on the id i create the host in the nagios server with the help of configuration file.

so every xml file has host and corresponding services.

number of xml files in the directory is not fixed, it will change during run time.

So how i can add new host(host config file) for newly added xml file with different id in the directory in runtime?

Is it possible to add new host from nagios webconsole ?

Thanks.

Answers

Maybe you could use external commands (e.g RESTART_PROGRAM) to reload the nagios configuration files each time a new XML file trigger a new host config file.

To automate, you could use a service which check new XML files and an event handler to use the RESTART_PROGRAM external command.

Tags:nagios

Related Articles

  • dynamically adding new host in nagiosJune 20

    I having nagios server which monitoring xml files available in directory. Each xml file has unique id, based on the id i create the host in the nagios server with the help of configuration file. so every xml file has host and corresponding services.

  • Enable drupal_add_tabledrag on dynamically added rowsJune 7

    I have used drupal_add_tabledrag to get Drupals sorting feature for a table, however, I cannot find any function to add the dragging feature to <tr> dynamically added with JavaScript to this table. Does anyone know function Drupal provides to do thi

  • Dynamic added Tabs vs Dynamic added collapsibles

    Dynamic added Tabs vs Dynamic added collapsiblesAugust 29

    We are creating dynamic multiple steps form where we have dynamically added form fields by the user and we'd like to group these fields under a common title in either tabs or collapsibles for example: In a new tab: In a new collapsible: Both look nic

  • Lync presence indicators not working when dynamically addedSeptember 23

    I am working on a Lync presence Indicator in Sharepoint. I have read this Article for adding presence indicator and it works fine if I add HTML static. But when I add HTML Dynamically it doesn't work anymore. I would wants to know why this not work w

  • When will a dynamically added fragment be re-added?January 15

    The Fragment documentation shows an example of an activity dynamically adding a fragment in onCreate(...): if (savedInstanceState == null) { // During initial setup, plug in the details fragment. DetailsFragment details = new DetailsFragment(); detai

  • Squaring each number in an array with dynamically added inputsJanuary 16

    I'm trying to calculate the standard deviation of a set of data entered by a user into a form with dynamically added inputs. Thus far I have been able to calculate the sum of the elements in the array, but I cannot figure out how to square each eleme

  • ng-form is not validating the dynamically added elements properlyJanuary 18

    I have a form as below <div ng-app="testApp" ng-controller="testCntrl" ng-init="bindData();" > <ng-form name="DynBidningForm" novalidate> <select name="drpDown" ng-model="drpDown"

  • Change dynamically added similar ng-repeat values from single sourceJanuary 19

    I want to change dynamically added similar ng-repeat values separately from shown single source, you can see from my below code, where if we click on dynamically appended divs, it will shows a form in right side, where if we can add input text fields

  • Text of a dynamically-added Preference is too large

    Text of a dynamically-added Preference is too largeJanuary 20

    I want to add Preferences at run-time. The problem is, they look different from statically-defined Preferences. I think I may need to pass the AttributeSet to the constructor, but I do not know how to get the system's default AttributeSet. How do I m

  • Bind dynamically added input fields in Angular2January 20

    I generate input fields in the template like this <input *ngFor="#number of numbers" placeholder="Number"/> in the component class export class AppComp{ public numbers : Array<number> = new Array(10); } I need to bind the d

  • Change Attributes for Dynamically added elementsJanuary 21

    How can I Change (type) Attribute for dynamically added buttons? In below code, label names were changing perfectly, but when i am trying to change button types it is applying to all added dynamic buttons, My requirement is have to change every butto

  • Show only Dynamically Added selected Element valueJanuary 21

    When I am trying to show selected element value on click, it was showing all element values.. in below code if i added usernames, when we click on any label it will have to show their corresponding delete icon.. but here it was showing delete icon to

  • Height of dynamically added UserControl to TableLayoutPanel

    Height of dynamically added UserControl to TableLayoutPanelJanuary 21

    I am writing an winForm app which will be something like RSS reader. I have Form with 1 Panel and in this panel I have TableLayoutPanel and I am dynamically adding my UserControls into this TableLayoutPanel (because I donĀ“t know how many UserControls

  • Getting strange error while fetching dynamic added textbox value?January 23

    Using jQuery, I am appending textbox as below:- $.each(myDataJSON, function (index, value) { var newRow = "<tr><td><input type='text' class='txtBox' value="+value.Price+"/></td></tr>"; $('#myTable').append

  • manipulation with dynamically added textfield valuesJanuary 27

    jPanel consists 5 jTextFields. I am adding dynamically jPanels by addButton. And retrieving dynamically added jPanel values by saveButton. The code of saveButton: private void writefile(JPanel panel_name, PrintWriter file){ Component[] children = pan

  • Dynamically added item to ng-repeat hold duplicate modelJanuary 29

    I 'm creating a web page where I 'm providing option to the user to dynamically add line items. I have used angularjs framework (v 1.4.7). I was able to achieve the effect of dynamically adding item to the ng-repeat but the modal seems to be not uniq

  • Detect a form submit in jQuery when it has been dynamically added to the DOMJanuary 31

    Scenario: I have a select box with it's data populated by data from a php config file. If there isn't a matching value in the select to choose from, I am allowing the user to add a field to it. I have created a small one input form which is added via

  • Thymeleaf+spring+Jquery dynamically added formsFebruary 1

    Having troubles getting values from dynamically added dropdown in thymeleaf. This is my first <select th:field="${offer.offerItemList[__${iterationStatus.index}__].mapa}" class="form-control input-sm ofa"> <option value="

  • How do I remove dynamically added objects from an array with a button associated with each object?February 6

    I'm using Angular to build a shopping list app. I have two pre-created lists, each with two and three pre-created items respectively for testing purposes. Of course eventually there will be no pre-created items or lists. Everything is to be dynamical

  • Load elements one by one using .waypoint.js and select dynamically added elementsFebruary 9

    I have this infinite scrolling function, I think it's using AJAX. (refering to jscroll : http://jscroll.com/) So, basically I need to have contents loaded with a nice fading in effect as I scroll down. But i can't give a fade-in effect to the element

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.803 s.