Setup Passive checks pull time interval

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagwindmon
Posts: 92
Joined: Mon Dec 01, 2014 3:39 pm

Setup Passive checks pull time interval

Post by nagwindmon »

hello,
How do I go about to have NSClient execute my Plugin at certain time intervals?
I was able to test it by running "nscp test" once I add the following line [/settings/external scripts/scripts] along with my plugin name and path in nsclient.ini file.
But question is how to set up that NSClient execute my plugin at predefine times and submit Passive checks into Nagios?
Please advise.
What this plugin does on host is connecting to Win service I have build which in turn check on to make sure certain processes are up and running.

Thanks!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Setup Passive checks pull time interval

Post by Box293 »

This will need to be done with the NSCA module in NSClient++.

I have a guide here that shows how to do the NSClient++ stuff:
http://sites.box293.com/nagios/guides/n ... ient-0-4-x

And you'll need to do this on your Nagios XI server:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Does this make sense?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nagwindmon
Posts: 92
Joined: Mon Dec 01, 2014 3:39 pm

Re: Setup Passive checks pull time interval

Post by nagwindmon »

Yes it did, Thanks for the link Box!
I have configured NSCA server, port 5667 is open, created Passive Service, modified ini file and restarted NSClient.
Everything works based on your example, checking on CPU Load, but adding my own plugin will not work, do I need to have it as alias, what is proper syntax to get it work for passives checks as well?

[/settings/scheduler/schedules]
CPU Load = checkCPU warn=80 crit=90 time=5m time=1m time=30s
Custom Plugin ="C:\NagiosPlugins\NagiosPlugin.exe"

For testing purposes I have added it as external and use NRPE to test successfully:
[/settings/external scripts/scripts]
Custom Plugin ="C:\NagiosPlugins\NagiosPlugin.exe"

But I need to have it in Passive check mode just like with CPU Load.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Setup Passive checks pull time interval

Post by lmiltchev »

For testing purposes I have added it as external and use NRPE to test successfully:
[/settings/external scripts/scripts]
Custom Plugin ="C:\NagiosPlugins\NagiosPlugin.exe"
Can you show us the actual check run from the command line along with the output of it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked