Page 1 of 1

Force passive check Nsclient++ Service starting

Posted: Thu Jun 27, 2019 6:07 am
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

Re: Force passive check Nsclient++ Service starting

Posted: Fri Jun 28, 2019 12:32 pm
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/

Re: Force passive check Nsclient++ Service starting

Posted: Wed Jul 03, 2019 8:30 am
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.

Re: Force passive check Nsclient++ Service starting

Posted: Wed Jul 03, 2019 9:48 am
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.

Re: Force passive check Nsclient++ Service starting

Posted: Thu Jul 04, 2019 7:13 am
by rambertnala
So there is no any chance????

Thanks a lot

Re: Force passive check Nsclient++ Service starting

Posted: Thu Jul 04, 2019 7:15 am
by rambertnala
So there is no any chance????

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

Regards

Re: Force passive check Nsclient++ Service starting

Posted: Mon Jul 08, 2019 9:17 am
by tgriep
You would have to contact the author of the agent to see if the functionality you want is there.