NCPA Wizard - Linux disk naming

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

NCPA Wizard - Linux disk naming

Post by vAJ »

I haven't used the NCPA wizard in a while, since all of my systems added lately use templates.

However, when running v1.3.5 of the wizard today, I noticed that it's pulling the device name for disk monitoring, instead of the logical name that it used to. Checking the changelog, I don't see where this was modified.

Frankly, I don't like it at all. I greatly prefer the logical naming for the labels on disk checks.

To do this, all I needed to do was edit line 212 in ncpa.inc.php:
from

Code: Select all

                $default_services['disk'][$title]['name'] = $value['device_name'][0];
to

Code: Select all

                $default_services['disk'][$title]['name'] = [$title];
Thought I'd put this out there if anyone else wants this.
Andrew J. - Do you even grok?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NCPA Wizard - Linux disk naming

Post by mcapra »

Thanks for sharing! I too tend to prefer the logical name :)
Former Nagios employee
https://www.mcapra.com/
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: NCPA Wizard - Linux disk naming

Post by vAJ »

FYI. This fix no longer works with the new array built into v.1.4.x of the wizard.

Really not a fan of the verbose output of logical disks with NCPA 2.0.3. Makes using this wizard a pain for systems I add manually. Thankfully, most of my stuff is templated.
Andrew J. - Do you even grok?
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: NCPA Wizard - Linux disk naming

Post by avandemore »

If you wish to write a custom wizard you can use this document as a guideline.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Previous Nagios employee
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: NCPA Wizard - Linux disk naming

Post by vAJ »

It's not so much an issue with the Wizard as it is with NCPA.

The latest agent now lists every type of disk, far beyond mounted partitions of a Linux host. I just wanted to make sure that anyone who found this thread didn't assume the simple fix still works.
Andrew J. - Do you even grok?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NCPA Wizard - Linux disk naming

Post by cdienger »

Thanks for the input and sharing the work around. Was there anything else you wanted to point out or are we okay locking the thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: NCPA Wizard - Linux disk naming

Post by vAJ »

Lock it up.
Andrew J. - Do you even grok?
Locked