Search found 8 matches

by Arenne
Mon Jun 03, 2019 3:08 am
Forum: Open Source Nagios Projects
Topic: The command (up_time) returned an invalid return code: 255
Replies: 15
Views: 10331

Re: The command (up_time) returned an invalid return code: 2

For rights, I have the same on all my machines, I even tried to put unrestricted for local machine, it does not solve the problem

Code: Select all

 LocalMachine                                                Unrestricted
by Arenne
Wed May 29, 2019 6:50 am
Forum: Open Source Nagios Projects
Topic: The command (up_time) returned an invalid return code: 255
Replies: 15
Views: 10331

Re: The command (up_time) returned an invalid return code: 2

Excuse me for the delay ! 2019-05-27 11:32:20: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module C:\Program Files\NSClient++\modules\CheckDisk.dll () 2019-05-27 11:32:20: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module C:\Program Files\NSClient++\modules\Che...
by Arenne
Fri May 24, 2019 9:52 am
Forum: Open Source Nagios Projects
Topic: The command (up_time) returned an invalid return code: 255
Replies: 15
Views: 10331

Re: The command (up_time) returned an invalid return code: 2

I setup that command in NSClient++ version 0.5.2.23 on a windows systems and the command ran for me without any errors. To get it to work, I had to add a space between the exit and the ( like this example. up_time = cmd /c echo scripts\up_time.ps1; exit ($lastexitcode) | powershell.exe -noprofile -...
by Arenne
Fri May 24, 2019 1:55 am
Forum: Open Source Nagios Projects
Topic: The command (up_time) returned an invalid return code: 255
Replies: 15
Views: 10331

Re: The command (up_time) returned an invalid return code: 2

yes i can, here is the the full nsclient.ini. I install NSClient ++ with a script so the configuration is the same for all my servers. And today I just saw that one of my other servers does not stop changing status from a normal situation to the same error code # If you want to fill this file with a...
by Arenne
Thu May 23, 2019 10:03 am
Forum: Open Source Nagios Projects
Topic: The command (up_time) returned an invalid return code: 255
Replies: 15
Views: 10331

Re: The command (up_time) returned an invalid return code: 2

up_time = cmd /c echo scripts\up_time.ps1; exit($lastexitcode) | powershell.exe -noprofile -executionpolicy bypass -command - I tried but it does not work :( if you have other ideas What are you seeing in the nsclient logs? here is the nsclient.log 2019-05-14 11:18:48: error:c:\source\master\module...
by Arenne
Thu May 23, 2019 7:37 am
Forum: Open Source Nagios Projects
Topic: The command (up_time) returned an invalid return code: 255
Replies: 15
Views: 10331

Re: The command (up_time) returned an invalid return code: 2

Code: Select all

up_time = cmd /c echo scripts\up_time.ps1; exit($lastexitcode) | powershell.exe -noprofile -executionpolicy bypass -command -
I tried but it does not work :(
if you have other ideas
by Arenne
Thu May 23, 2019 6:39 am
Forum: Open Source Nagios Projects
Topic: The command (up_time) returned an invalid return code: 255
Replies: 15
Views: 10331

Re: The command (up_time) returned an invalid return code: 2

All services are passive with NSCA, i have desabled active check on my services, this is why it is desabled
by Arenne
Wed May 22, 2019 5:37 am
Forum: Open Source Nagios Projects
Topic: The command (up_time) returned an invalid return code: 255
Replies: 15
Views: 10331

The command (up_time) returned an invalid return code: 255

hello every one, I am new to nagios, I need to set up a nagios server with passive checks at my clients (outside my network) So I use NSClient ++ with NSCA My configuration works for all my clients except for one AD server. The command (up_time) returned an invalid return code: 255 The script up_tim...