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
How to check Linux disk volumes with NCPA
Re: How to check Linux disk volumes with NCPA
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
df -hCode: 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 95Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: How to check Linux disk volumes with NCPA
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
df -h
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
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)
On the Nagios XI server
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% /bootCode: 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!
Re: How to check Linux disk volumes with NCPA
Locking thread, ticket received, we will continue support through the ticket.