How to monitor the Windows mount point using NCPA agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ABBsupervision
Posts: 42
Joined: Tue Jun 08, 2021 4:20 am

How to monitor the Windows mount point using NCPA agent

Post by ABBsupervision »

hi team,

I am trying to monitor a mount point disk on one of my Windows Server which has latest NCPA agent installed on it.

Code: Select all

C:\Users\adm>tasklist /fi "services eq ncpa*"

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
ncpa_listener.exe            46780 Services                   0     43 652 K
ncpa_passive.exe             20320 Services                   0     35 728 K

C:\Users\adm>
Command used in the Nagios XI is below.
Exemple :

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H HOSTNAME -t 'ABB' -P 5693 -M 'disk/logical/F:|InactifsUsers01|' -w '80' -c '95'
But i got this error message :

Code: Select all

UNKNOWN: The node (F:/Standard04/) requested does not exist. You may be trying to access the 'F:/' node.
As you can see below, i want to monitor all disk mount on my SRV

Code: Select all

DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     C                NTFS   Partition    222 GB  Healthy    Boot
  Volume 1         Recovery     NTFS   Partition    450 MB  Healthy    Hidden
  Volume 2                      FAT32  Partition    100 MB  Healthy    System
  Volume 3         InactifsUse  NTFS   Partition   1049 GB  Healthy
    F:\InactifsUsers01\
  Volume 4         ServiceAcco  NTFS   Partition    365 GB  Healthy
    F:\ServiceAccount02\
  Volume 5         Standard_01  NTFS   Partition    502 GB  Healthy
    F:\Standard01\
  Volume 6         Standard_02  NTFS   Partition    503 GB  Healthy
    F:\Standard02\
  Volume 7         Standard_03  NTFS   Partition    749 GB  Healthy
    F:\Standard03\
  Volume 8         Standard_04  NTFS   Partition    504 GB  Healthy
    F:\Standard04\
  Volume 9         ServiceAcco  NTFS   Partition    299 GB  Healthy
    F:\ServiceAccount01\
  Volume 10        TopManagers  NTFS   Partition   1369 GB  Healthy
    F:\TopManagers01\
  Volume 11    U   HUB-DB       NTFS   Partition    149 GB  Healthy
  Volume 12    J   HUB-LOG      NTFS   Partition     59 GB  Healthy
  Volume 13    F   Root-MSG     NTFS   Partition    990 MB  Healthy
  Volume 14        Managers_01  NTFS   Partition    349 GB  Healthy
    F:\Managers01\
  Volume 15        Managers_03  NTFS   Partition    649 GB  Healthy
    F:\Managers03\
  Volume 16        Managers_04  NTFS   Partition    349 GB  Healthy
    F:\Managers04\
  Volume 17        Reseaux_01   NTFS   Partition    502 GB  Healthy
    F:\Reseaux01\
  Volume 18        Reseaux_02   NTFS   Partition    589 GB  Healthy
    F:\Reseaux02\
  Volume 19        Reseaux_03   NTFS   Partition    599 GB  Healthy
    F:\Reseaux03\
  Volume 20        Reseaux_04   NTFS   Partition    449 GB  Healthy
    F:\Reseaux04\
  Volume 21        Reseaux_05   NTFS   Partition    709 GB  Healthy
    F:\Reseaux05\

DISKPART>

Could you please provide me the way to monitor the mount point on my WIN SRV machine using the NCPA ?
Please provide me steps


Best Regards,
SOUHAIB
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to monitor the Windows mount point using NCPA agent

Post by ssax »

Does this work? (removing the trailing |)

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H HOSTNAME -t 'ABB' -P 5693 -M 'disk/logical/F:|InactifsUsers01' -w '80' -c '95'
ABBsupervision
Posts: 42
Joined: Tue Jun 08, 2021 4:20 am

Re: How to monitor the Windows mount point using NCPA agent

Post by ABBsupervision »

Hello,

I removed the " | ", as you can see below :

Code: Select all

[root@DCPNAGIOSXIN1 ~]# /usr/local/nagios/libexec/check_ncpa.py -H HOSTNAME -t 'ABB' -P 5693 -M 'disk/logical/F:|InactifsUsers01' -w '80' -c '95'
UNKNOWN: Execution exceeded timeout threshold of 60s
[root@DCPNAGIOSXIN1 ~]#


Best Regards,
SOUHAIB
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: How to monitor the Windows mount point using NCPA agent

Post by pbroste »

Hello @ABBsuervision

Are you able to hit 'F:'? without the directory?

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H HOSTNAME -t 'ABB' -P 5693 -M 'disk/logical/F:|'
Let us know the results,
Perry
ABBsupervision
Posts: 42
Joined: Tue Jun 08, 2021 4:20 am

Re: How to monitor the Windows mount point using NCPA agent

Post by ABBsupervision »

hello,

regarding your request, please find below the output of the command :

Code: Select all

[root@DCPNAGIOSXIN1 ~]# /usr/local/nagios/libexec/check_ncpa.py -H HOSTNAME -t 'ABB' -P 5693 -M 'disk/logical/F:|InactifsUsers01' -w '80' -c '95'
UNKNOWN: The node (F:/InactifsUsers01) requested does not exist. You may be trying to access the 'F:/' node.

[root@DCPNAGIOSXIN1 ~]# /usr/local/nagios/libexec/check_ncpa.py -H HOSTNAME -t 'ABB' -P 5693 -M 'disk/logical/F:|'
OK: Used disk space was 2.40 % (Used: 0.02 GiB, Free: 0.94 GiB, Total: 0.97 GiB) | 'used'=0.02GiB;;; 'free'=0.94GiB;;; 'total'=0.97GiB;;;
[root@DCPNAGIOSXIN1 ~]#
best Regards,
SOUHAIB
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: How to monitor the Windows mount point using NCPA agent

Post by pbroste »

Hello @ABBsupervision

Thanks for providing the details, looks like 'check_ncpa' does not have the permission to access or read contents in "InactifsUsers01".

Since the 'check_ncpa' is able to access and read the F: mount point, please compare the permissions under security in properties and change to match.

Thanks,
Perry
ABBsupervision
Posts: 42
Joined: Tue Jun 08, 2021 4:20 am

Re: How to monitor the Windows mount point using NCPA agent

Post by ABBsupervision »

Hello,

where can I compare the permissions ?

I checked the permissions under my server Windows ( see attached ), but I don't have the security tab in the menu

Best Regards,
SOUHAIB
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: How to monitor the Windows mount point using NCPA agent

Post by pbroste »

Hello @ABBsupervision

We want to match the permissions from what is found in the security in properties on the F:/ mount point to make sure that matches 'F:\InactifsUsers01"

Example:
  • Image
Thanks,
Perry
ABBsupervision
Posts: 42
Joined: Tue Jun 08, 2021 4:20 am

Re: How to monitor the Windows mount point using NCPA agent

Post by ABBsupervision »

Hello,

Could you resend the picture to us?

Best Regards,
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: How to monitor the Windows mount point using NCPA agent

Post by pbroste »

Hello @ABBsupervision

Here is the link to the image that I sent in the previous post.

https://i.ibb.co/NTkjy38/windowsproperties.png

Wondering if your org might be blocking that url, so here is another example.

Thanks,
Perry
Locked