Hi Team,
We have a service running in our Windows servers which needs to be monitored from Nagios end as below:
"If snare service utilised 15%CPU ,Nagios should send an alert for it."
On our Windows servers, a snare agent is installed and snare service is running for it.
So, we want Nagios monitor the snare service and if it uses 15% CPU, Nagios should send alert.
Please let me know if you need any other details and help us on this requirement.
Thanks!!
Monitor a Windows service with Threshold value
Monitor a Windows service with Threshold value
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Monitor a Windows service with Threshold value
The best way to do this is probably with an agent like NCPA (https://www.nagios.org/ncpa/). With NCPA you can monitor processes in memory, which includes services. Attached is a screenshot where I search for the LocalSystemNetworkRestricted service specifically. This will allow you to alert based on CPU utilization.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitor a Windows service with Threshold value
Hello,
Thanks for your response!!
We have NSC++ installed on all systems. So, is it possible to do with NSC++ agent?
If not, do we need to remove NSC++ nad install NCPA?
Do we have option to use NCPA and NSC++ both in same host?
Please let me know what is the best way to do it.
Thanks
Thanks for your response!!
We have NSC++ installed on all systems. So, is it possible to do with NSC++ agent?
If not, do we need to remove NSC++ nad install NCPA?
Do we have option to use NCPA and NSC++ both in same host?
Please let me know what is the best way to do it.
Thanks
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Monitor a Windows service with Threshold value
It looks like NSClient++ does have a way to monitor processes, and a way to monitor services. However, I don't know that these would work for what you are trying to do. The monitor process feature looks like it is searching for a specific executable and that's it, but all services run under the svchost.exe umbrella. So we can't use that. And the monitor services feature looks like it is only checking to see if a service is in a running state or not. I could be mistaken in this, however. I'm not an NSClient expert. If you want to read more on these two features, here are the links.
https://docs.nsclient.org/reference/win ... ck_service
https://docs.nsclient.org/reference/win ... ck_process
I do know that we can do what you need to do with NCPA. NCPA can run on the same system as NSClient without issue. NSClient uses ports 5666, 5667, and 12489 for its services. NCPA uses 5693. I have had both running on a Windows Server 2016 system for a good long while now. But as always, every environment is different. It's always a good practice to install new software to a test environment to make sure it doesn't conflict with anything else you might be running.
https://docs.nsclient.org/reference/win ... ck_service
https://docs.nsclient.org/reference/win ... ck_process
I do know that we can do what you need to do with NCPA. NCPA can run on the same system as NSClient without issue. NSClient uses ports 5666, 5667, and 12489 for its services. NCPA uses 5693. I have had both running on a Windows Server 2016 system for a good long while now. But as always, every environment is different. It's always a good practice to install new software to a test environment to make sure it doesn't conflict with anything else you might be running.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitor a Windows service with Threshold value
Hello,
Thanks for your inputs
We need approvals to open 5693 port. Once we get the approval, we will work on it.
Kindly, keep this topic open for now.
Thanks for your inputs
We need approvals to open 5693 port. Once we get the approval, we will work on it.
Kindly, keep this topic open for now.
Thanks & Regards,
I2MP Team.
I2MP Team.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor a Windows service with Threshold value
Sounds good!RIDS_I2MP wrote:Hello,
Thanks for your inputs
We need approvals to open 5693 port. Once we get the approval, we will work on it.
Kindly, keep this topic open for now.