Process monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Process monitoring

Post by RIDS_I2MP »

Hi Team,

We wanted to monitor a process (Snare service) which runs on windows servers.
We wanted Nagios to send alert if the process uses 15% CPU.

I have configured the same in Nagios using NCPA and it seems to be working fine. Not sure why, today the process was using more hat 30% CPU for almost an hour but Nagios did not generate any alert.

NCPA uses 5693 port and it is open already on the server. I am attaching here the screenshot of task manager where you would be able to see the Snare process using more that 30% CPU. Also, I am attaching the configuration screenshot from Nagios GUI.

Nagios shows OK state for the service, which means it is monitoring the service properly. I am not sure exactly what happened because of which it did not generate alert.

Thanks in advance for your help!!!
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Process monitoring

Post by cdienger »

Please provide a screenshot of the dashboard so we can see the hostname and service name. Please also PM me a profile. A profile can be generated under Admin > System Config > System Profile > Download Profile, or from the command line with:

Code: Select all

/usr/local/nagiosxi/scripts/components/getprofile.sh 58261
The profile is then saved to:

/usr/local/nagiosxi/var/components/profile.zip
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Process monitoring

Post by RIDS_I2MP »

Hi,
PFA he required information.

Hostname: EU1AWBW030
IP: 10.148.58.244
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Process monitoring

Post by cdienger »

To trigger an alert if a process is using over a certain amount of CPU, you would want to create a check like this:

Code: Select all

./check_ncpa.py -H 10.148.58.244 -t 'nag1osadm1n' -M 'processes' -w 1 -c 1 -q 'name=SNARE Service,cpu_percent=15'
The above will trigger a CRITICAL if the CPU goes over 15%.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Process monitoring

Post by RIDS_I2MP »

Hello,

Thanks for your help!!

I have made the changes as per your suggestion.
The CPU usage goes high rarely on that server. So I am unable to perform the testing.
Is there any way to check if the command is working fine?
I tried checking in graphs as well if it has used 2-3 percent of CPU, but could not find anything there.
Thanks & Regards,
I2MP Team.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Process monitoring

Post by cdienger »

Running it from the command line to see the result would be a good test:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H 10.148.58.244 -t 'nag1osadm1n' -M 'processes' -w 1 -c 1 -q 'name=SNARE Service,cpu_percent=1'
And in case it needs clarifying, this check doesn't return the % used by the process so the graphs in XI wouldn't be the place to check for the usage. This check will return the number of processes that meet the filter criteria.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Process monitoring

Post by RIDS_I2MP »

Thanks for your help!!

Its working fine now.
Thanks & Regards,
I2MP Team.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Process monitoring

Post by cdienger »

Glad to hear!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked