-a "'Make Bot File'" will result as 'Make Bot File' which my script will error. I am happy with the way it is for now. Please close this thread when you have a moment.
Thanks!
Search found 6 matches
- Tue Mar 02, 2021 12:52 pm
- Forum: Nagios XI
- Topic: passing a parameter to custom plugin with white spaces
- Replies: 6
- Views: 828
- Sun Feb 28, 2021 6:56 pm
- Forum: Nagios XI
- Topic: passing a parameter to custom plugin with white spaces
- Replies: 6
- Views: 828
Re: passing a parameter to custom plugin with white spaces
Hi Jefferey! After trying your suggestion: $ARG1 = -t 'mytoken' -P 5693 -M 'plugins/CheckScheduledTask.ps1' -a "\"Make Bot File\"" I get "Make Bot File" Scheduled Task Not Found. It is not exactly where I want but I do have a work around for now. I place an if inside of...
- Thu Feb 25, 2021 1:26 pm
- Forum: Nagios XI
- Topic: passing a parameter to custom plugin with white spaces
- Replies: 6
- Views: 828
Re: passing a parameter to custom plugin with white spaces
hi Benjamin! I tried both options mentioned in your previous reply. We have ncpa agent installed version 2.22 with NagiosXI version 5.8.1 First method: -t 'mytoken' -P 5693 -M 'plugins/CheckScheduledTask.ps1' -a 'Make Bot File' Result: Make Scheduled Task Not Found Second method: -t 'mytoken' -P 569...
- Wed Feb 24, 2021 10:43 pm
- Forum: Nagios XI
- Topic: passing a parameter to custom plugin with white spaces
- Replies: 6
- Views: 828
passing a parameter to custom plugin with white spaces
How can I pass a value or parameter to a powershell script with white spaces using ncpa plugin? The command i am using: $USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$ $ARG1$ = -t 'mytoken' -P 5693 -M 'plugins/CheckScheduledTask.ps1' -a "Make Bot File" It can only recognize Make and ignores ...
- Sat Jul 11, 2020 11:33 pm
- Forum: Nagios XI
- Topic: check_nrpe broke after updating NagiosXI to 5.7.1
- Replies: 1
- Views: 147
check_nrpe broke after updating NagiosXI to 5.7.1
We recently upgraded our NagiosXI Server to version 5.7.1. It looks like this NagiosXI update doesn't communicate with NRPE agent (version 4.0.3) on our linux servers. We're getting this error: CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
Can you help me?
Thanks,
Tu
Can you help me?
Thanks,
Tu
- Sat Jul 11, 2020 10:04 pm
- Forum: Nagios XI
- Topic: nrpe client and nagiosxi 5.7.1
- Replies: 1
- Views: 207
nrpe client and nagiosxi 5.7.1
We just upgraded our nagiosxi server to 5.7.1. Our nagiosxi server is currently monitoring two different platform Windows and Linux. Nagios' services monitoring Windows platform using check_nrpe broke, so I followed check_nrpe -2 -P 8192 -H. This solution fixes services which monitor our Windows Pla...