Page 1 of 1
Is there a kind of syntax for customizing views?
Posted: Wed Oct 11, 2017 4:41 am
by enas
Hi,
I created some views via "add to my views". Now I wanted to modify some of them to get a more precise view. I found a syntax like:
/nagiosxi/includes/components/xicore/status.php?show=services&hoststatustypes=2&servicestatustypes=28&serviceattr=10
Is there a document showing which parameters will have which filter function?
Thank you
Olaf
Re: Is there a kind of syntax for customizing views?
Posted: Wed Oct 11, 2017 10:26 am
by kyang
Are you talking about editing the URL itself for that view?
Are you wanting to zoom in or crop one of your views to get a precise view?
I'm not really sure, so if you could give more details that would help.
Re: Is there a kind of syntax for customizing views?
Posted: Thu Oct 12, 2017 1:43 am
by enas
Yes, I was talking about editing the URL (not necesseraly this one):
/nagiosxi/includes/components/xicore/status.php?show=services&hoststatustypes=2&servicestatustypes=28&serviceattr=10
Is there a list which shows what filtering a serviceattr or a hoststatustype or so do. I'd like to shrink the view that I already have, especially by a "servicename" attribute.
Thanks.
Olaf
Re: Is there a kind of syntax for customizing views?
Posted: Thu Oct 12, 2017 9:14 am
by mcapra
Yes, but it is a well kept secret
https://roshamboot.org/post/guide-nagios-statuscgi/
If you add the numbers of the service states you want to see together you will arrive at the number required for that particular argument. So in the case of our example if we add warning(4), Unknown(8) and Critical(16) together we get the number 28! That’s all there is to it! Below are the tables for the other parameters you may wish to use to customize your status.cgi.
Re: Is there a kind of syntax for customizing views?
Posted: Thu Oct 12, 2017 9:42 am
by kyang
Thanks
@mcapra!
@enas, Let us know if this helps!
Re: Is there a kind of syntax for customizing views?
Posted: Thu Oct 12, 2017 10:34 am
by enas
Thanks a lot. That's exactly what I was looking for.
Re: Is there a kind of syntax for customizing views?
Posted: Thu Oct 12, 2017 10:35 am
by kyang
Awesome!
Can I close this thread? Or do you have more questions?
Re: Is there a kind of syntax for customizing views?
Posted: Fri Oct 13, 2017 1:23 am
by enas
Yes, you can close the thread. I didn't find a possibility to do it myself. Is there one?
Regards
Olaf
Re: Is there a kind of syntax for customizing views?
Posted: Fri Oct 13, 2017 11:23 am
by npolovenko
@enas, I think you need to be an administrator to be able to do that.
