Hi,
How can i create a view based on host name for the services alerts ?
Attached an example, i need to see only alerts starts with "DR_".
I don't want to touch of course other users view.
Thanks
Creating View
Creating View
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Creating View
You could add these to a hostgroup and then add a view with the following URL
Code: Select all
/nagiosxi/includes/components/xicore/status.php?show=services&hostgroup=YOUR-HOST-GROUPRe: Creating View
Hi,
Not sure i understand.
1) I created a host group - see attached 1
----------------------------------------------------------------------------------------------------------------------------------------------------------
2) What should i do with the code you sent ? if i run it I'm getting an error :
[root@nagiosxi xicore]# /usr/local/nagiosxi/html/includes/components/xicore/status.php?show=services&hostgroup=DR_SERVERS
[1] 19710
[root@nagiosxi xicore]# -bash: /usr/local/nagiosxi/html/includes/components/xicore/status.php?show=services: No such file or directory
[1]+ Exit 127 /usr/local/nagiosxi/html/includes/components/xicore/status.php?show=services
-----------------------------------------------------------------------------------------------------------------------------------------------------------
This is what have :
[root@nagiosxi xicore]# find / | grep xicore | grep status
/usr/local/nagiosxi/html/includes/components/xicore/status.php
/usr/local/nagiosxi/html/includes/components/xicore/status-utils.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/component_status_preview.png
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/service_status_summary.png
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/host_status_summary.png
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/hostgroup_status_summary.png
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/servicegroup_status_summary.png
/usr/local/nagiosxi/html/includes/components/xicore/dashlets-status.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-servicestatus.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-hoststatus.inc.php
Not sure i understand.
1) I created a host group - see attached 1
----------------------------------------------------------------------------------------------------------------------------------------------------------
2) What should i do with the code you sent ? if i run it I'm getting an error :
[root@nagiosxi xicore]# /usr/local/nagiosxi/html/includes/components/xicore/status.php?show=services&hostgroup=DR_SERVERS
[1] 19710
[root@nagiosxi xicore]# -bash: /usr/local/nagiosxi/html/includes/components/xicore/status.php?show=services: No such file or directory
[1]+ Exit 127 /usr/local/nagiosxi/html/includes/components/xicore/status.php?show=services
-----------------------------------------------------------------------------------------------------------------------------------------------------------
This is what have :
[root@nagiosxi xicore]# find / | grep xicore | grep status
/usr/local/nagiosxi/html/includes/components/xicore/status.php
/usr/local/nagiosxi/html/includes/components/xicore/status-utils.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/component_status_preview.png
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/service_status_summary.png
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/host_status_summary.png
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/hostgroup_status_summary.png
/usr/local/nagiosxi/html/includes/components/xicore/images/dashlets/servicegroup_status_summary.png
/usr/local/nagiosxi/html/includes/components/xicore/dashlets-status.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-servicestatus.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-hoststatus.inc.php
You do not have the required permissions to view the files attached to this post.
Re: Creating View
That wasn't supposed to be interpreted as code; it's a partial URL. So in your browser you should type into the address bar:
The "code" part of the post was just to make the URL display better on the forums. PHPBB usually truncates links.
Code: Select all
http://mydomain.com/nagiosxi/includes/components/xicore/status.php?show=services&hostgroup=YOUR-HOST-GROUP