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
Hide services in web interface
Re: Hide services in web interface
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.
register 0 means to treat it as a template that other objects can use.
Former Nagios employee
Re: Hide services in web interface
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.
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.
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
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.
Everybody is somebody else’s weirdo
Re: Hide services in web interface
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.
Former Nagios employee