Force passive check Nsclient++ Service starting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Force passive check Nsclient++ Service starting

Post by rambertnala »

Hi from Spain.

I would like to know, if there is a chance to make Nsclient++ sent all checks when service Nsclient++ on windows host is started and not have to wait interval time setup on nsclient.in

[/settings/scheduler/schedules]
Command1
Command2

Command8

[/settings/scheduler/schedules/default]
interval = 30
channel = NRDP

[/settings/scheduler]
threads = 10


When process nscp.exe is up via windows service I have to wait 30 minutes to receive information, and i would like to receive it about 3-5 minutes after nsclient++ windows service is started

My nsclient++ version is 0.5.1.46

Thanks for all
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Force passive check Nsclient++ Service starting

Post by tgriep »

The simplest thing to do is to change the interval to 5 minutes so it will run withing the time you want.
Reference for the scheduler settings in the nsclient.ini file.
https://docs.nsclient.org/reference/generic/Scheduler/

I did not see a way to have the schedule run the commands at startup so you may want to post this question on the NSClient++ forums to see if you can find the answer there.
https://forums.nsclient.org/
Be sure to check out our Knowledgebase for helpful articles and solutions!
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Re: Force passive check Nsclient++ Service starting

Post by rambertnala »

Problem is i do not want to change it.

I only want to force to send data when service is started and after that, wait for my normal period.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Force passive check Nsclient++ Service starting

Post by tgriep »

I could not find an option or settings to do that in the NSClient++ documentation.
What I did find is an option called randomness that is used to randomize the scheduler but I did not find what to set that option to except it defaults to 0.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Re: Force passive check Nsclient++ Service starting

Post by rambertnala »

So there is no any chance????

Thanks a lot
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Re: Force passive check Nsclient++ Service starting

Post by rambertnala »

So there is no any chance????

I hope anybody could help me or get an idea!!!

Regards
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Force passive check Nsclient++ Service starting

Post by tgriep »

You would have to contact the author of the agent to see if the functionality you want is there.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked