Page 1 of 1

NCPA Alerts errors

Posted: Thu May 28, 2020 10:42 am
by Bala.Mutyam
Hi,

Could you help me how to fix this errors:

1) Load_Check
/usr/local/nagios/libexec/check_ncpa.py -H hostname -t 'token' -P 5693 -M 'plugins/check_load' -w 30,25,20 -c 50,45,40
check_load: Could not parse arguments
Usage:
check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15 [-n NUMBER_OF_PROCS]

2) Check disk
/usr/local/nagios/libexec/check_ncpa.py -H hostname -t 'token' -P 5693 -M 'plugins/check_disk' -q 'args=-l 70 75'
is not checking all the disks.

Thanks

Re: NCPA Alerts errors

Posted: Thu May 28, 2020 4:29 pm
by ssax
1. Try this:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H hostname -t 'token' -P 5693 -M 'plugins/check_load' -q 'args=-w 30,25,20 -c 50,45,40'
2. Try this:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H hostname -t 'token' -P 5693 -M 'plugins/check_disk' -q 'args=-l -w 70 -c 75'

Re: NCPA Alerts errors

Posted: Fri May 29, 2020 7:45 am
by Bala.Mutyam
Thanks for the update.

Below checks worked:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H hostname -t 'token' -P 5693 -M 'plugins/check_load' -q 'args=-w 30 25 20 -c 50 45 40'

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H hostname -t 'token' -P 5693 -M 'plugins/check_disk' -q 'args=-l -w 20% -c 10%'

Re: NCPA Alerts errors

Posted: Fri May 29, 2020 1:57 pm
by ssax
Now edit the services in Configure > Core Config Manager > Services, Save, Apply Configuration and you should be good.