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
Editing Configuration Wizards
Re: Editing Configuration Wizards
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): 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
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): 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
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
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
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.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
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.phpRe: Editing Configuration Wizards
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
$default_services['disk'][$id]['monitor'] = 'on';
$default_services['disk'][$id]['warning'] = 70;
$default_services['disk'][$id]['critical'] = 90;
Ileana
Re: Editing Configuration Wizards
Thanks @hbouma .... 
Re: Editing Configuration Wizards
Also, Thank You Ileana ... 
-
michael-darro
- Posts: 8
- Joined: Fri Jun 18, 2021 12:04 am
Re: Editing Configuration Wizards
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.
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
Great!! ..... Thank you all!! .... 
Locking thread!!
Locking thread!!