Wizard Switches - Modifying Script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Wizard Switches - Modifying Script

Post by bosecorp »

Hi

Background: We have managed to integrate Nagios XI with our ticketing system. In order to this to work effectively, we created rules so that we only create tickets for the things we want tickets. In order for these rules to work properly, the service checks specifically need to follow a naming convention.


What we would like to see if possible is to tweak the wizard for switches. Today when we use the wizard to add switches, the wizard would add Port Status and Port Bandwidth with a specific nomenclature that doesn't work for what we are trying to do here. is there a way to modify the scripts that are used to create these service checks to have a different nomenclature?

Thank you
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Wizard Switches - Modifying Script

Post by tgriep »

Take a look in this file that the Network Switch / Router runs.

Code: Select all

/usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php
Search it for entries like the following for how the service descriptions are created.

Code: Select all

"service_description" => $portname . " Status",
"service_description" => $portname . " Bandwidth",
Those would be the entries that you will have to modify to fit your naming convention.

Remember, if you upgrade XI, it will overwrite your changes.

For more details, take a look at this link on creating and modifying Wizards for XI.
https://support.nagios.com/kb/article/n ... re-47.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Wizard Switches - Modifying Script

Post by bosecorp »

You are awesome. =). This is exactly what I was looking for. Thanks
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Wizard Switches - Modifying Script

Post by tgriep »

Your welcome. Let us know if you have any further questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked