Page 1 of 1

Scripts and other service monitoring

Posted: Sun Jan 14, 2018 6:15 pm
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.

Re: Scripts and other service monitoring

Posted: Mon Jan 15, 2018 1:18 pm
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?

Re: Scripts and other service monitoring

Posted: Mon Jan 15, 2018 6:48 pm
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?

Re: Scripts and other service monitoring

Posted: Tue Jan 16, 2018 3:32 pm
by cdienger
https://support.nagios.com/kb/article.php?id=528 can help you configure nsclient to use external scripts with Nagios.

Re: Scripts and other service monitoring

Posted: Tue Jan 16, 2018 6:48 pm
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.

Re: Scripts and other service monitoring

Posted: Wed Jan 17, 2018 2:48 pm
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.

Re: Scripts and other service monitoring

Posted: Thu Jan 18, 2018 7:25 am
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.

Re: Scripts and other service monitoring

Posted: Fri Jan 19, 2018 1:21 pm
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.

Re: Scripts and other service monitoring

Posted: Fri Jan 19, 2018 4:22 pm
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 :)