Page 1 of 1

Creating View

Posted: Mon Jan 02, 2012 8:45 am
by oz123
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

Re: Creating View

Posted: Mon Jan 02, 2012 11:11 am
by scottwilkerson
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-GROUP

Re: Creating View

Posted: Mon Jan 09, 2012 9:56 am
by oz123
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

Re: Creating View

Posted: Mon Jan 09, 2012 10:29 am
by agriffin
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:

Code: Select all

http://mydomain.com/nagiosxi/includes/components/xicore/status.php?show=services&hostgroup=YOUR-HOST-GROUP
The "code" part of the post was just to make the URL display better on the forums. PHPBB usually truncates links.

Re: Creating View

Posted: Tue Jan 10, 2012 5:34 am
by oz123
Cool !!

Thanks