Page 1 of 1
Editing Configuration Wizards
Posted: Sat Jun 19, 2021 2:25 am
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
Re: Editing Configuration Wizards
Posted: Mon Jun 21, 2021 10:51 am
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
Re: Editing Configuration Wizards
Posted: Mon Jun 21, 2021 7:42 pm
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
Re: Editing Configuration Wizards
Posted: Tue Jun 22, 2021 8:06 am
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
Re: Editing Configuration Wizards
Posted: Tue Jun 22, 2021 9:39 am
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
Re: Editing Configuration Wizards
Posted: Tue Jun 22, 2021 10:25 am
by vtrac
Thanks @hbouma ....

Re: Editing Configuration Wizards
Posted: Tue Jun 22, 2021 10:26 am
by vtrac
Also, Thank You Ileana ...

Re: Editing Configuration Wizards
Posted: Wed Jun 23, 2021 2:21 am
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.
Re: Editing Configuration Wizards
Posted: Wed Jun 23, 2021 9:07 am
by vtrac
Great!! ..... Thank you all!! ....
Locking thread!!