Page 1 of 1
How to check Linux disk volumes with NCPA
Posted: Mon Jun 22, 2020 11:13 am
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
Re: How to check Linux disk volumes with NCPA
Posted: Mon Jun 22, 2020 4:10 pm
by lmiltchev
Is "var" on a separate partition? What is the output of the command below, run on the client (remote Linux box)?
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
Re: How to check Linux disk volumes with NCPA
Posted: Wed Jun 24, 2020 10:51 am
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)?
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?
Re: How to check Linux disk volumes with NCPA
Posted: Wed Jun 24, 2020 12:19 pm
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;
Re: How to check Linux disk volumes with NCPA
Posted: Wed Jun 24, 2020 12:51 pm
by ssax
Locking thread, ticket received, we will continue support through the ticket.