Hi Team,
As we have show_users.sh plugin which supports -u [whitelist] of the users which we can provide to check unauthorized access of users for Unix/Linux Environment, We request you tp provide us with a plugin with the same functionality for Windows Domain.
Please also note that we have NSC Client installed on all windows servers and not NCPA Agent.
Important :
We have to automate the activity of passing arguments to this show_users plugin which we are providing say for e.g show_users -u root,root1 like this it should be automatically taken by Nagios from a JSON file. we want to remove manual entry to pass the arguments so please provide us a solution for this ( May be through API we can pass the arguments to the plugin through a python script) .
so for this please provide us as much as Info and please note we have installed NRPE Agent on all Unix/Linux Servers and NSC Client on all windows servers so please dont give solution of NCPA Agent to us.
Check_user Plugin usage
Re: Check_user Plugin usage
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Check_user Plugin usage
See here for how to run plugins with NSClient++:
https://support.nagios.com/kb/article/n ... t-528.html
I found this one for windows but you'll need to install perl on the windows system to make it work:
https://exchange.nagios.org/directory/P ... 29/details
So you can either use the one above or this one that I linked earlier:
https://support.nagios.com/forum/viewto ... 94#p191894
Those are the only ones I found that list the users/allows a whitelist. Feel free to write your own if they do not meet your needs as there are not any official ones that do this.
While none of them support reading from a JSON file, you can look at this page to see how to store them in a host/service macro in the nagios configs that will be read during the check:
https://exchange.nagios.org/directory/P ... 29/details
None of the plugins I found will do what you want through JSON. Custom development is not included in support but we do offer paid custom development, if that is something you're interested in you can contact [email protected] to get more information/a quote.
There is no solution that will do what you want without updating each system to add the plugin and update the nsclient.ini on each because none of the agents support it by default. There is no way around that.
Please read through the guide linked and let me know what questions you have on setting them up.
https://support.nagios.com/kb/article/n ... t-528.html
I found this one for windows but you'll need to install perl on the windows system to make it work:
https://exchange.nagios.org/directory/P ... 29/details
So you can either use the one above or this one that I linked earlier:
https://support.nagios.com/forum/viewto ... 94#p191894
Those are the only ones I found that list the users/allows a whitelist. Feel free to write your own if they do not meet your needs as there are not any official ones that do this.
While none of them support reading from a JSON file, you can look at this page to see how to store them in a host/service macro in the nagios configs that will be read during the check:
https://exchange.nagios.org/directory/P ... 29/details
None of the plugins I found will do what you want through JSON. Custom development is not included in support but we do offer paid custom development, if that is something you're interested in you can contact [email protected] to get more information/a quote.
There is no solution that will do what you want without updating each system to add the plugin and update the nsclient.ini on each because none of the agents support it by default. There is no way around that.
Please read through the guide linked and let me know what questions you have on setting them up.
Re: Check_user Plugin usage
Hi Team,
Kindly let us know the procedure for passing arguments ($ARG1$,$ARG2$) which we pass for a Service through API.
We are not getting this through help section hence requesting you to give us the exact cUrl command to pass arguments for a particular service which is already created in Nagios XI.
Kindly let us know the procedure for passing arguments ($ARG1$,$ARG2$) which we pass for a Service through API.
We are not getting this through help section hence requesting you to give us the exact cUrl command to pass arguments for a particular service which is already created in Nagios XI.
Thanks & Regards,
I2MP Team.
I2MP Team.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Check_user Plugin usage
Hi,
Let us know if you have any questions.
Benjamin
If you want to update an existing service configuration, use the Servcies PUT option in the Config API. The API has the entire check command as one field, so update the desired argument in that string, for example ( $ARG1 = 250.0,20%, $ARG2$ = 500.0,60% ):Kindly let us know the procedure for passing arguments ($ARG1$,$ARG2$) which we pass for a Service through API.
Code: Select all
curl -XPUT 'http://192.168.23.113/nagiosxi/api/v1/config/service/localhost/PING?apikey=sCWXTQ3rHtm483AgRUUtLi04v5ECCVmktCCGoU8mINpPPflWafJbRKeGO8fGjUh6&check_command=check_ping!250.0,20%!500.0,60%
&applyconfig=1'
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!