How to check Linux disk volumes with NCPA

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

How to check Linux disk volumes with NCPA

Post by dlukinski »

Hello XI support

How to check Linux disk volumes with NCPA?
please help with couple of examles (where to put linux volume name such as "var") ?

-t Str0ngT0k3n -M 'disk/logical/C:|/used_percent' --warning 90 --critical 95

Thank you
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to check Linux disk volumes with NCPA

Post by lmiltchev »

Is "var" on a separate partition? What is the output of the command below, run on the client (remote Linux box)?

Code: Select all

df -h
Usually, the check would look something like this:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <ip address> -P 5693 -t <token> -M 'disk/logical/|var/used_percent' -w 90 -c 95
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: How to check Linux disk volumes with NCPA

Post by dlukinski »

lmiltchev wrote:Is "var" on a separate partition? What is the output of the command below, run on the client (remote Linux box)?

Code: Select all

df -h
Usually, the check would look something like this:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <ip address> -P 5693 -t <token> -M 'disk/logical/|var/used_percent' -w 90 -c 95

This is not working at all neither your version nor mine:

-t 'token' -P 5693 -M 'disk/logical/var|/used_percent' -w 90 -c 95 -u Gi

Could NCPA actually check Linux volumes?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to check Linux disk volumes with NCPA

Post by lmiltchev »

What is the version of the NCPA agent that you are currently using? Can you post the ncpa.cfg file on the forum?

This is an example from my test VMs.

On the client (remote machine)

Code: Select all

[root@speedking libexec]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_nagiosxi-lv_root
                       37G  8.6G   27G  25% /
tmpfs                 3.9G     0  3.9G   0% /dev/shm
/dev/sda1             477M  126M  326M  28% /boot
On the Nagios XI server

Code: Select all

[root@main-nagios-xi ~]# /usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -P 5693 -t mytoken-M 'system/agent_version'
OK: Agent_version was ['2.2.2']

Code: Select all

[root@main-nagios-xi ~]# /usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -P 5693 -t mytoken -M 'disk/logical/|boot/used_percent' -w 90 -c 95
OK: Used_percent was 27.90 % | 'used_percent'=27.90%;90;95;
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to check Linux disk volumes with NCPA

Post by ssax »

Locking thread, ticket received, we will continue support through the ticket.
Locked