Page 1 of 1

Capacity planning - warning critical level by default

Posted: Mon Jan 18, 2016 8:15 am
by tdegroup
Hello,

if i create a new capacity planning report for a large amount of hosts, i have to enable for every single chart the "warning" and "critical" value.
Is there a way to enable the warning and critical level by default?

Thank you,

Best regards

Re: Capacity planning - warning critical level by default

Posted: Mon Jan 18, 2016 10:38 am
by rkennedy
When you say 'enable' for every check, what are you refering to?

You should be able to use the bulk modification tool to do this, or by changing your check command to have a preset warning /critical value.

Re: Capacity planning - warning critical level by default

Posted: Tue Jan 19, 2016 6:47 am
by tdegroup
Hello,

no i mean:
if i open a capacity planning Report i have to click on "warning" and "critical" for each graph (like in my attachment).
Is there a way to enable the this by default? We have large amounts of hosts in the capacity planning report and we have to enable the "warning" and "critical" value for each graph.

Thank you,

Best regards

Re: Capacity planning - warning critical level by default

Posted: Tue Jan 19, 2016 11:04 am
by tgriep
What version of Nagios XI are you running? There was a feature added to XI 5.x.x to enable the Warning and Critical thresholds but it seems to not work for the Capacity Planning graphs.
I'll put in a Bug Fix for that.

Re: Capacity planning - warning critical level by default

Posted: Wed Jan 20, 2016 3:24 am
by tdegroup
thank you,

we use Nagios XI 5.2.3 Enterprise.


Best regards

Re: Capacity planning - warning critical level by default

Posted: Wed Jan 20, 2016 11:57 am
by lmiltchev
The bug has been fixed (Bug Task ID 7514). You can wait until the next release of Nagios XI is out, or you can do the following:

1. Backup the "capacityreport.js.php" file.

Code: Select all

cp -p /usr/local/nagiosxi/html/includes/components/capacityplanning/includes/capacityreport.js.php /usr/local/nagiosxi/html/includes/components/capacityplanning/includes/capacityreport.js.php.backup
2. Download the file below:
capacityreport.js.php.zip
3. Unzip it and replace the "original" capacityreport.js.php file with the new one. Make sure the permissions are the same as the capacityreport.js.php.backup

4. Try showing/hiding the warning and critical line in reports by selecting "On"/"Off" from the "Warning/Critical Line Display" drop-down menu under "System Settings"

Admin -> System Settings -> Theme & Display

Let us know if this worked for you.