Is there a kind of syntax for customizing views?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
enas
Posts: 13
Joined: Fri Sep 27, 2013 6:41 am

Is there a kind of syntax for customizing views?

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

Re: Is there a kind of syntax for customizing views?

Post 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.
enas
Posts: 13
Joined: Fri Sep 27, 2013 6:41 am

Re: Is there a kind of syntax for customizing views?

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Is there a kind of syntax for customizing views?

Post 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.
Former Nagios employee
https://www.mcapra.com/
kyang

Re: Is there a kind of syntax for customizing views?

Post by kyang »

Thanks @mcapra!

@enas, Let us know if this helps!
enas
Posts: 13
Joined: Fri Sep 27, 2013 6:41 am

Re: Is there a kind of syntax for customizing views?

Post by enas »

Thanks a lot. That's exactly what I was looking for.
kyang

Re: Is there a kind of syntax for customizing views?

Post by kyang »

Awesome!

Can I close this thread? Or do you have more questions?
enas
Posts: 13
Joined: Fri Sep 27, 2013 6:41 am

Re: Is there a kind of syntax for customizing views?

Post by enas »

Yes, you can close the thread. I didn't find a possibility to do it myself. Is there one?

Regards

Olaf
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Is there a kind of syntax for customizing views?

Post by npolovenko »

@enas, I think you need to be an administrator to be able to do that. ;)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked