Page 1 of 1

Network Switch/Router Wizard addition requests

Posted: Tue Jan 31, 2017 10:40 am
by kyle.parker
Hello,

I have taken the nagios provided Network Switch/Router config wizard and modified it for our company slightly. I have added a field to update the description through the wizard as it seems easier to do it in the wizard than to go through CCM to do it every time. I changed some of the default values as well, ie community string, pulling the hostname automatically from the device and populating the hostname field with the device hostname rather than the ip address, warning and critical default values. All is working great.

I just wanted to see if possibly the official nagios wizard could see some improvements, such as the description field being added or hostname being pulled from the card.

This is just an example of how I populate my hostname using snmp, I am sure there is a better way, but I am not a programmer by any means. This is a little more specific to my company as I am striping the domain name off the end.

Code: Select all

$hostname = grab_array_var($inargs, "hostname", "");
$resultfile = exec("snmpget " .escapeshellcmd($address). " -c nagios13014 -v 2c -O q -O v .1.3.6.1.2.1.1.5.0");
$hostname = str_replace('.tbaytel.net','',$resultfile);
This is the code I have added right below the hostname field on step 2 of the wizard, I then carry this value through to the end where the host is added and the description gets auto populated.

Code: Select all

<tr>
     <td class="vt">
          <label>' . _('Description:') . '</label>
     </td>
     <td>
          <input type="text" size="20" name="alias" id="alias" value="' . htmlentities($alias) . '" class="form-control">
          <div class="subtext">' . _("The alias/description you'd like for this switch or router.") . '</div>
     </td>
</tr>

Re: Network Switch/Router Wizard addition requests

Posted: Tue Jan 31, 2017 4:00 pm
by dwhitfield
I have created internal feature request (FR) 10897 for this. You can use that # to reference the status of the request. We don't have individual roadmaps for the wizard, but it might show up at https://www.nagios.com/roadmaps/ under XI if you prefer that method of checking on it.

I have referenced this thread in the FR, so if you have anything else to add to the request, please do so here. If you have nothing more to add, do you mind if I go ahead and lock this up? Thanks!

Re: Network Switch/Router Wizard addition requests

Posted: Tue Jan 31, 2017 4:22 pm
by kyle.parker
I think I really just wanted to get these two things added officially as it saves tons of time adding devices. We are an ISP migrating our network from a different monitoring tool to Nagios. I would say we probably have close to 1000 hosts to add in just cisco devices, that isn't including our Calix, Actelis or IMC devices. It is a massive undertaking and even if the improvements save 15-30 seconds per device that is huge in the grand scheme of things.

Like I said I am proficient enough to modify the wizard, but I would also like to keep up with the newest wizard patches provided by your team and not have to continually modify it to suit our needs.

As for your question, yes you can lock it.