Page 1 of 1

NagiosXi Not alerting even breaching thresholds

Posted: Wed Aug 12, 2020 9:20 am
by Bala.Mutyam
Hi,

We are using NCAP agent to monitor our Server but ncpa is not reporting even crossing thresholds.I've restarted NCPA few times but no luck. Is this is a bug?
NCPA version - ncpa-2.2.2-1
NagiosXi - 5.7.2

Here is the example config.

Check -

Code: Select all

check_xi_ncpa!-t 'NagiosXi' -P 5693 -M 'plugins/check_procs' -w 175 -c 200
Check Status:

Re: NagiosXi Not alerting even breaching thresholds

Posted: Wed Aug 12, 2020 12:08 pm
by scottwilkerson
Looks like you are running a custom plugin instead of the built-in processes, custom plugins require you pass their arguments differently that the builtin api points, so you would need to pass the -w 175 -c 200 as arguments to the plugin
https://www.nagios.org/ncpa/help.php#ap ... es-plugins

An alternative would be to just use the builtin processes API endpoint which will work as you are trying

Code: Select all

check_xi_ncpa!-t 'NagiosXi' -P 5693 -M 'processes' -w 175 -c 200

Re: NagiosXi Not alerting even breaching thresholds

Posted: Fri Aug 14, 2020 10:43 am
by Bala.Mutyam
@scottwilkerson: Hi, Thanks for the update, i passed as args and working now.

I'm passing args for Redhat5 servers with NCPA agent but giving me error, pls help.

1) This is not giving correct, we want to count Zombie processes but giving total process count.

Code: Select all

-t 'NagiosXi' -P 5693 -M 'plugins/check_procs' -q 'args= -w 5 -c 10 -s Z'
PROCS OK: 94 processes
2) Giving below error:

Code: Select all

-t 'NagiosXi' -P 5693 -M 'plugins/check_ntp_time' -q 'args=-H ntp_server 1 2'
Usage: check_ntp_time -H <host> [-w <warn>] [-c <crit>] [-v verbose]
All these checks working fine on Redhat6/7 not 5.

Finally, with builtin processes API endpoint. can we check Zombie processes?

Thanks


3)

Code: Select all

 
-t 'NagiosXi' -P 5693 -M 'plugins/check_disk' -q 'args=-l -w 20% -c 10%'
check_disk: Could not parse arguments
Usage: check_disk -w limit -c limit [-W limit] [-K limit] {-p path | -x device}
[-C] [-E] [-e] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]
[-t timeout] [-u unit] [-v] [-X type]
4) Another error

Code: Select all

-t 'NagiosXi' -P 5693 -M 'plugins/check_load' -q 'args=-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

Re: NagiosXi Not alerting even breaching thresholds

Posted: Fri Aug 14, 2020 2:54 pm
by scottwilkerson
So you mention these are working on Redhat6/7 not 5.

We stopped producing NCPA updates for RHEL 5 several years ago as it is EOL

Are these running different versions of NCPA?

Re: NagiosXi Not alerting even breaching thresholds

Posted: Mon Aug 17, 2020 2:52 am
by Bala.Mutyam
We still getting rid of the RHEL5 and need to monitor temporarily.
Are these running different versions of NCPA?
Yes, RedHat6/7 running on ncpa-2.2.2-1 & and RHEL 5's version is 2.0.6

Re: NagiosXi Not alerting even breaching thresholds

Posted: Mon Aug 17, 2020 7:40 am
by scottwilkerson
Bala.Mutyam wrote:We still getting rid of the RHEL5 and need to monitor temporarily.
Are these running different versions of NCPA?
Yes, RedHat6/7 running on ncpa-2.2.2-1 & and RHEL 5's version is 2.0.6
Unfortunately there isn't anything I can do about this, these problems have been fixed in the newer releases, but we do not have newer releases for RHEL 5

Re: NagiosXi Not alerting even breaching thresholds

Posted: Fri Aug 21, 2020 9:28 am
by Bala.Mutyam
Ok, thanks for all your help.

Re: NagiosXi Not alerting even breaching thresholds

Posted: Fri Aug 21, 2020 10:26 am
by scottwilkerson
Bala.Mutyam wrote:Ok, thanks for all your help.
No problem

Locking thread