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!!!
Process monitoring
Process monitoring
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Process monitoring
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:
The profile is then saved to:
/usr/local/nagiosxi/var/components/profile.zip
Code: Select all
/usr/local/nagiosxi/scripts/components/getprofile.sh 58261/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.
Re: Process monitoring
Hi,
PFA he required information.
Hostname: EU1AWBW030
IP: 10.148.58.244
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.
I2MP Team.
Re: Process monitoring
To trigger an alert if a process is using over a certain amount of CPU, you would want to create a check like this:
The above will trigger a CRITICAL if the CPU goes over 15%.
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'As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Process monitoring
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 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.
I2MP Team.
Re: Process monitoring
Running it from the command line to see the result would be a good test:
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.
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'As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Process monitoring
Glad to hear!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.