Page 2 of 2

Re: Required Custom Feature

Posted: Mon Mar 28, 2016 9:27 am
by rkennedy
Have you assigned the contact you created as a contact to all of those hosts / services? Can you post a definition for us to look at?

Re: Required Custom Feature

Posted: Wed Mar 30, 2016 12:29 am
by rlinux57
I have just add the guest in following parameters:

Code: Select all

authorized_for_all_hosts=nagiosadmin,guest
authorized_for_read_only=guest

Re: Required Custom Feature

Posted: Wed Mar 30, 2016 9:37 am
by rkennedy
You will need to also assign them as a contact to the host / service in question as well.

Re: Required Custom Feature

Posted: Wed Mar 30, 2016 1:53 pm
by rlinux57
How can i do that ?

Re: Required Custom Feature

Posted: Wed Mar 30, 2016 3:34 pm
by tmcdonald
You will need to add their contact name in the contacts field for that host:

https://assets.nagios.com/downloads/nag ... .html#host

Re: Required Custom Feature

Posted: Thu Mar 31, 2016 12:26 pm
by rlinux57
Would you please tell me how can i gave access mentioned in below "hostextinfo" to certain guest. I'm talking about the guest user of webui not about the users that are defined in contacts.

Code: Select all

define hostextinfo{
host_name	host_name
notes	note_string
notes_url	url
action_url	url
icon_image	image_file
icon_image_alt	alt_string
vrml_image	image_file
statusmap_image	image_file
2d_coords	x_coord,y_coord
3d_coords	x_coord,y_coord,z_coord
   	}

Re: Required Custom Feature

Posted: Thu Mar 31, 2016 4:37 pm
by hsmith
Take a look at this document and let us know if helps: https://assets.nagios.com/downloads/nag ... iauth.html

Re: Required Custom Feature

Posted: Fri Apr 01, 2016 8:52 am
by tgrtjake
An example of how this works in my situation. I have a long list of hosts of different device types. Of those hosts, there are some UPS units that I want certain people on my team to be able to view and not the rest of the hosts I have. I created a "ups" group and login for them to use to see them. They can acknowledge, disable, enable checks/notifications because this was the intent.

Hope this helps you figure out your needs.
define contact{
contact_name emcradio
use generic-contact
alias EMC Radio
}
define contactgroup{
contactgroup_name ups
alias EMC UPS
members jrodriguez,emcradio,jjones
}
define host{
use linux-server
host_name ups-SHERATON
alias ups-sheraton
address xxx.xxx.xxx.xxx
contact_groups ups
hostgroups all, tower, ups
notification_period 24x7
}

define service{
use local-service
host_name ups-SHERATON
service_description PING
servicegroups ping
check_command check_ping!100.0,20%!500.0,60%
}

define service{
use ups-service
host_name ups-SHERATON
service_description UPS Health
servicegroups ups-health
check_command check_ups_pow3!public
}
Image

Re: Required Custom Feature

Posted: Fri Apr 01, 2016 1:45 pm
by hsmith
Thanks @tgrtjake!

Re: Required Custom Feature

Posted: Fri Apr 01, 2016 1:47 pm
by tmcdonald
@rlinux57 that's pretty much how it is done - you will need to have a contact on that host in order to share it with someone.