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?
status page - how to use OR instead of AND
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: status page - how to use OR instead of AND
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.
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.