Custom Components + Bulk Adding

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vnc786
Posts: 68
Joined: Thu Aug 29, 2013 8:45 am

Custom Components + Bulk Adding

Post by vnc786 »

Hi Team,

XI 2014 2.7

Can existing components be modified as per our need. I am trying to add 1000+ network router using SNMPv3 at different location using Network Switch Router Component. I tried to modifying
/usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php
which use xi-switch* template by replacing the
"use" => "xiwizard_switch_port_bandwidth_service",
"use" => "xiwizard_switch_port_status_service",
.

Actual Scenario
A group of router say 150 router has having email group, time periods, notification interval different etc. defined so if i use custom components i can quickly add routers with less click.
I tried bulk clonning but that wont suit my need since every port of router has custom names.

Please share your suggestion.

thanks,
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Custom Components + Bulk Adding

Post by jdalrymple »

Some of the more static settings can be prepopulated pretty easily in the configuration wizards. We don't support it necessarily, but it's easy enough to do that we won't scold you for doing it yourself. More to the point it's super easy to trash and reinstall a wizard so it doesn't matter so much if you break it.

The things like timeperiods and contacts get pulled from the database so it's not really possible to prepopulate them. Some of them can be post-processed with the bulk modifications too, but some can't also.

Time Periods - No
Contacts - Yes
Intervals - Yes

The way I would like to tell you to do this is with a template since that's what I'd consider the proper way. Unfortunately I can't think of any way in which templates help since using the wizard mostly negates the ability to take advantage of templates.
vnc786
Posts: 68
Joined: Thu Aug 29, 2013 8:45 am

Re: Custom Components + Bulk Adding

Post by vnc786 »

thanks for reply..
i am not a php guy but looking at switch.inc.php it fairly looks simple that it is using a template. So was wondering why it is not use custom template when I change to something else which i have created in host/services template area.

i think i have to edit the default template before adding a set of router and for another set again edit template and so on on...

will you guys will be helpfully if i contact you through customer portal just asking i mean related to php settings to do
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Custom Components + Bulk Adding

Post by tmcdonald »

If you are a current customer you can certainly either post in the Customer forum or open up a ticket, however if it is something you want us to alter (and it is more than a few lines to fix) you will either need to put in a feature request or contact Sales regarding custom development.
Former Nagios employee
Locked