Creating View

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
oz123
Posts: 42
Joined: Thu Jun 09, 2011 10:21 am

Creating View

Post 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
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
oz123
Posts: 42
Joined: Thu Jun 09, 2011 10:21 am

Re: Creating View

Post 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
You do not have the required permissions to view the files attached to this post.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Creating View

Post 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.
oz123
Posts: 42
Joined: Thu Jun 09, 2011 10:21 am

Re: Creating View

Post by oz123 »

Cool !!

Thanks
Locked