Using servicegroups as parameter in status.cgi
Posted: Tue Oct 15, 2019 10:59 am
Guys,
My Host & Service Architecture are as follows:
There are 3 hosts, Host A,B,C
Host A has service monitors 'Service A1, Service A2' for Client A
Host B has service monitors 'Service B1, Service B2' for Client B
Host C has service monitors 'Service A3, Service B3' for Client A & B.
Services A1 & A3 are grouped under servicegroup 'GA'
Services B1 & B3 are grouped under servicegroup 'GB'
When Client A logs in he should see services A1,A2 (from Host A) & A3 (from Host C)
When Client B logs in he should see services B1,B2 (from Host A) & B3 (from Host C)
To accomplish this user specific display following is the contacts defined:
For Host A --> Contacts= Client A
For Host B --> Contacts= Client B
For Host C --> Contacts= dummy user , Contacts for Service A3 = Client A, Contacts for Service B3 = Client B
I need a custom page to display status based on servicegroups.
(ie) servicegroup page 'GA' should display services 'A1 & A3'
servicegroup page 'GB' should display services 'B1 & B3'
Problem:
Querying "http://ip/nagios/cgi-bin/status.cgi?ser ... style=grid" returns only service A1 & not A3
Querying "http://ip/nagios/cgi-bin/status.cgi?ser ... style=grid" returns only service B1 & not B3
I don't want to use servicefilter parameter & would like to handle it by passing servicegroup parameter to status.cgi.
Any thoughts on how we can accomplish this?
My Host & Service Architecture are as follows:
There are 3 hosts, Host A,B,C
Host A has service monitors 'Service A1, Service A2' for Client A
Host B has service monitors 'Service B1, Service B2' for Client B
Host C has service monitors 'Service A3, Service B3' for Client A & B.
Services A1 & A3 are grouped under servicegroup 'GA'
Services B1 & B3 are grouped under servicegroup 'GB'
When Client A logs in he should see services A1,A2 (from Host A) & A3 (from Host C)
When Client B logs in he should see services B1,B2 (from Host A) & B3 (from Host C)
To accomplish this user specific display following is the contacts defined:
For Host A --> Contacts= Client A
For Host B --> Contacts= Client B
For Host C --> Contacts= dummy user , Contacts for Service A3 = Client A, Contacts for Service B3 = Client B
I need a custom page to display status based on servicegroups.
(ie) servicegroup page 'GA' should display services 'A1 & A3'
servicegroup page 'GB' should display services 'B1 & B3'
Problem:
Querying "http://ip/nagios/cgi-bin/status.cgi?ser ... style=grid" returns only service A1 & not A3
Querying "http://ip/nagios/cgi-bin/status.cgi?ser ... style=grid" returns only service B1 & not B3
I don't want to use servicefilter parameter & would like to handle it by passing servicegroup parameter to status.cgi.
Any thoughts on how we can accomplish this?