Scripts and other service monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
krismvp
Posts: 9
Joined: Thu Dec 21, 2017 8:52 am

Scripts and other service monitoring

Post by krismvp »

Hi all,

I have nagios core installed in centos 6.5. Everything is OK. I have a few linux with nrpe, few windows with nsclient and some nework hosts.

Now I want to check more things like some script results, services etc....

For example, how can I get DHCP monitoring?

I want this function: https://exchange.nagios.org/directory/P ... es/details

But after read some internet documents I dont know how to use or what I have to do to use that plugins in windows.

Can someone explain a litle bit?

Thanks.
Regards.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Scripts and other service monitoring

Post by dwhitfield »

Not all plugins are designed for Windows, but that one is. Are you getting an error message when you set it up in NSClient? Can you provide the nsclient.ini file from the Windows server you are trying to monitor?
krismvp
Posts: 9
Joined: Thu Dec 21, 2017 8:52 am

Re: Scripts and other service monitoring

Post by krismvp »

dwhitfield wrote:Not all plugins are designed for Windows, but that one is. Are you getting an error message when you set it up in NSClient? Can you provide the nsclient.ini file from the Windows server you are trying to monitor?

Hi i have no problems with nsclient in my windows hosts. But I can only check cpu,ping.memory etc.... but if I want to check scripts or dhcp or diferent services. What are the steps to do?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Scripts and other service monitoring

Post by cdienger »

https://support.nagios.com/kb/article.php?id=528 can help you configure nsclient to use external scripts with Nagios.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
krismvp
Posts: 9
Joined: Thu Dec 21, 2017 8:52 am

Re: Scripts and other service monitoring

Post by krismvp »

cdienger wrote:https://support.nagios.com/kb/article.php?id=528 can help you configure nsclient to use external scripts with Nagios.

Sorry I use Nagios Core version.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Scripts and other service monitoring

Post by cdienger »

Although it says XI in the title it doesn't actually have anything XI specific in it and would help with Core as well.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
krismvp
Posts: 9
Joined: Thu Dec 21, 2017 8:52 am

Re: Scripts and other service monitoring

Post by krismvp »

Hi,

Thanks, I have understood the example of configuring NSClient++ to use a differents script.

But how can i see that service in nagios interface. I mean that i want to see a script result in my nagios interface like ping or service up or down..

Another problem is that the result is 0 Scope OK everytime... why could be?

Thanks.

Regards.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Scripts and other service monitoring

Post by mcapra »

krismvp wrote:But how can i see that service in nagios interface. I mean that i want to see a script result in my nagios interface like ping or service up or down..
You would need to configure it as a service. The entirety of how Nagios Core understands your infrastructure is through Nagios configuration objects. If you want to monitor "a thing", you need to have an object definition for that thing.

There's lots of tutorials on the internet regarding how to configure objects in Nagios Core, but if you have specific questions about why a certain configuration isn't working, there's plenty of people here happy to help :)
krismvp wrote:Another problem is that the result is 0 Scope OK everytime... why could be?
That's a question for the person that wrote the plugin. Based on my limited understanding of Powershell, all the plugin does is take a scopeID (or 'all' for all scopes) and makes sure that for each scope returned, that scope is not running low on available leases.
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Scripts and other service monitoring

Post by cdienger »

https://assets.nagios.com/downloads/nag ... start.html is another good source for finding step by step instructions for post-install configuration of hosts/services. Let us know if you have any specific questions after taking a look :)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked