Required Custom Feature

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Required Custom Feature

Post 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?
Former Nagios Employee
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Required Custom Feature

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Required Custom Feature

Post by rkennedy »

You will need to also assign them as a contact to the host / service in question as well.
Former Nagios Employee
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Required Custom Feature

Post by rlinux57 »

How can i do that ?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Required Custom Feature

Post 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
Former Nagios employee
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Required Custom Feature

Post 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
   	}
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Required Custom Feature

Post by hsmith »

Take a look at this document and let us know if helps: https://assets.nagios.com/downloads/nag ... iauth.html
Former Nagios Employee.
me.
tgrtjake
Posts: 20
Joined: Thu Sep 25, 2014 10:35 am

Re: Required Custom Feature

Post 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
Nagios Core 4.1.1 running on Ubuntu 14.04
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Required Custom Feature

Post by hsmith »

Thanks @tgrtjake!
Former Nagios Employee.
me.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Required Custom Feature

Post 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.
Former Nagios employee
Locked