Hello,
I'm experimenting with the new json cgi's. So I would like to create a script that queries a json url, saves it into a Powershell object and then do some stuff with it. But I need to enter the nagios admin username and password.
What would be the best way to access his json cgi remotely? I would think a read-only user is required, as I would prefer not to use nagiosadmin in my Powershell scripts. How would I make a read-only account for CCM?
Thanks again!
Grtz
Willem
Read Only User for CCM that can access json cgi
Read Only User for CCM that can access json cgi
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Read Only User for CCM that can access json cgi
The json cgis and the ccm are different things.
The ccm is a frontend to our fork of nagiosql - it provides an interface to configure nagios monitoring objects.
The json cgis are provided through a get/post api from core. You can query the cgis without logging into the ccm or xi. Just create an XI user and log in once to set up the account and change the password. Make this user read only but allow it to see all objects. Afterwards you can query the json cgis with:
The ccm is a frontend to our fork of nagiosql - it provides an interface to configure nagios monitoring objects.
The json cgis are provided through a get/post api from core. You can query the cgis without logging into the ccm or xi. Just create an XI user and log in once to set up the account and change the password. Make this user read only but allow it to see all objects. Afterwards you can query the json cgis with:
Code: Select all
http://<username>:<password>@<ip>/nagios/cgi-bin/<cgi>?<query>Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Read Only User for CCM that can access json cgi
Got this working Andy. Thanks for the help. Thread can be closed.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net