Page 1 of 1

status page - how to use OR instead of AND

Posted: Wed Jan 31, 2018 7:24 am
by elinagios
Hello

We would like a status page of a hostgroup and its services where it will show problematical hosts and its services. Is it possible?
Currently have url something like this: show=services&hostgroup=hostgroupname&servicestatustypes=28=&hoststatustypes=28&hostattr=8=&serviceattr=8
But the problem with this is if there is nothing wrong with hosts, it will not show the warning/error services. So instead of & is there an OR?

Re: status page - how to use OR instead of AND

Posted: Wed Jan 31, 2018 12:57 pm
by npolovenko
Hello, @elinagios, I don't think OR operators are supported as of right now. So you'd need to use two status pages:
1. To view all services in warning and critical that belong to a hostgorup
http://ip_address/nagiosxi/includes/components/xicore/status.php?show=services&hostgroup=hostgroupname&servicestatustypes=20
2. To view all hosts in warning and critical that belong to a hostgroup
http://ip_address/nagiosxi/includes/components/xicore/status.php?show=hosts&hostgroup=hostgroupname&hoststatustypes=20
You may create two dashlets with these links so that way you can have two reports on the same page.