Page 1 of 1
Hide services in web interface
Posted: Thu Oct 02, 2014 4:40 pm
by jdcassin
Hi! I have a question about the web interface.
I recently added a switch in nagios web interace(host) and have several services which I would like to hide, but I would like to receive notifications, for example I have Ping, and for every important interface such as a trunk interface.
I tried "register 0" command but its like im removing the service cause I dont receive notifications.
I have almost 50 interfaces that I would like to monitor, but I dont want them to appear in the web interface, but I wish to receive notifications when these interfaces fails or are down.
How can I hide this services?
Thanks

Re: Hide services in web interface
Posted: Thu Oct 02, 2014 4:47 pm
by tmcdonald
Without editing the source and recompiling this is not possible. The closest you could get would be to have a group that includes all other hosts/services (or includes all and excludes a few you do not want to see) and only ever view that group. However it will still show up in non-group-dependent sections of the interface.
register 0 means to treat it as a template that other objects can use.
Re: Hide services in web interface
Posted: Mon Oct 06, 2014 6:11 pm
by JohnFLi
There is away to only show the services you want to see, yet get notified for all.
Create yourself a second account. Add this second account to the "authorized_for_system_information" in the cgi file, only.
next, make a new contact for this second account.
Now, for the fun part......
add this second account to the contacts ONLY for the services you want to see.
Code: Select all
service_description C Drive Space
display_name C:\ Drive Space
use local-service,graphed-service
check_command check_nt!USEDDISKSPACE!-l c -w 85 -c 90
initial_state o
max_check_attempts 5
check_interval 1
retry_interval 1
check_period 24x7
process_perf_data 1
notification_interval 15
notification_options w,c,r
notifications_enabled 1
contacts testuser
register 1
Once you're finished, log into the web interface as the second account.
In the example above, when logging into the web interface as 'testuser' I only see the hosts that has that service check, and no other services.
becasue your main account is set to be notified for everything, you will still get everything.
Re: Hide services in web interface
Posted: Tue Oct 07, 2014 9:17 am
by tmcdonald
That will work, but make sure that you switch over to the admin account whenever you need to do anything like scheduling downtime, acknowledging problems, etc.