NagiosXi Not alerting even breaching thresholds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

NagiosXi Not alerting even breaching thresholds

Post 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:
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXi Not alerting even breaching thresholds

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: NagiosXi Not alerting even breaching thresholds

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXi Not alerting even breaching thresholds

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: NagiosXi Not alerting even breaching thresholds

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXi Not alerting even breaching thresholds

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: NagiosXi Not alerting even breaching thresholds

Post by Bala.Mutyam »

Ok, thanks for all your help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXi Not alerting even breaching thresholds

Post by scottwilkerson »

Bala.Mutyam wrote:Ok, thanks for all your help.
No problem

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked