Editing Configuration Wizards

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
michael-darro
Posts: 8
Joined: Fri Jun 18, 2021 12:04 am

Editing Configuration Wizards

Post by michael-darro »

Hi All,

Looking to get some help.

We are trying to deploy the latest version of Nagios XI in our environment. I want to have the team to continue to use configuration wizards, this way nothing is missed for the standard stuff like CPU, Disk usage and Memory.

What I've noticed from our old environment to our new one is that the thresholds are very low and would like to edit these so that out of the box every server has a standard Warning @ 85% and Critical @ 90%. Is there any way that I'm able to change these values before we start adding all our devices in.

Additionally I would also like to monitor uptime by standard, is there any way to add an additional item into the Configuration Wizard?

Many thanks for your help in advanced.

Michael
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Editing Configuration Wizards

Post by vtrac »

Hi Michael,
How are you doing?

To change the warning "W" and critical "C" value, you can use Core Config Manager (CCM) for that.

Please open Nagios XI GUI > Configure > Core Config Manager > Services > now, please select the service you like to make changes to (please see example below):
M1.png
Based on the picture above, you can change the "W" and "C" value and then process "Save".
Please remember to also do "Apply Configuration" for the changes to be written into the database.

Also, here's the KB article on checking uptime:
https://support.nagios.com/kb/article.php?id=784


Best Regards,
Vinh
You do not have the required permissions to view the files attached to this post.
michael-darro
Posts: 8
Joined: Fri Jun 18, 2021 12:04 am

Re: Editing Configuration Wizards

Post by michael-darro »

Hi Vtrac,

I'm well thanks for asking.

The information provided allows me to change settings service by service. What I'm trying to work out is how to make these changes within the configuration wizard. So by default when a member of the team adds a new device the Warning and Critical setting are already configured.

Additionally I would like to have the Uptime check added to the Configuration Wizard. I've already added the check command and added it to the local Nagios host but want this added by default to all servers.

The only reason why I want it added to the configuration wizard is I know that members of the team will forget to add these especially if they are new to the company.

Many thanks again,
Michael
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: Editing Configuration Wizards

Post by hbouma »

michael-darro wrote:Hi Vtrac,

I'm well thanks for asking.

The information provided allows me to change settings service by service. What I'm trying to work out is how to make these changes within the configuration wizard. So by default when a member of the team adds a new device the Warning and Critical setting are already configured.

Additionally I would like to have the Uptime check added to the Configuration Wizard. I've already added the check command and added it to the local Nagios host but want this added by default to all servers.

The only reason why I want it added to the configuration wizard is I know that members of the team will forget to add these especially if they are new to the company.

Many thanks again,
Michael
We have the same issue. We ended up doing the following in a script after each upgrade/install. It changes some of the values for the NCPA Wizard and the Linux Server wizard. Please feel free to copy and edit it to your needs.

Code: Select all

#Edit the thresholds of the various configuration wizards
sed -i 's/\$default_services\['\''disk'\''\]\[\$title\]\['\''warning'\''\] = 70;/\$default_services\['\''disk'\''\]\[\$title\]\['\''warning'\''\] = 80;/' /usr/local/nagiosxi/html/includes/configwizards/ncpa/ncpa.inc.php
sed -i 's/\$serviceargs_default\["disk_critical"\]\[$x\] = 95;/\$serviceargs_default\["disk_critical"\]\[$x\] = 90;/' /usr/local/nagiosxi/html/includes/configwizards/linux_snmp/linux_snmp.inc.php
perryell
Posts: 52
Joined: Fri May 06, 2011 10:12 am

Re: Editing Configuration Wizards

Post by perryell »

I think the thresholds are defined in /usr/local/nagiosxi/html/includes/configwizards/ncpa/ncpa.inc.php, search for default_services
$default_services['disk'][$id]['monitor'] = 'on';
$default_services['disk'][$id]['warning'] = 70;
$default_services['disk'][$id]['critical'] = 90;

Ileana
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Editing Configuration Wizards

Post by vtrac »

Thanks @hbouma .... :-)
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Editing Configuration Wizards

Post by vtrac »

Also, Thank You Ileana ... :-)
michael-darro
Posts: 8
Joined: Fri Jun 18, 2021 12:04 am

Re: Editing Configuration Wizards

Post by michael-darro »

Thanks all.

I've been able to edit the values that I needed to which makes adding new servers very easy for the team.

Very much appreciated.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Editing Configuration Wizards

Post by vtrac »

Great!! ..... Thank you all!! .... :-)

Locking thread!!
Locked