Page 1 of 1

Status.cgi

Posted: Fri Nov 17, 2017 8:45 am
by saleemthupsee
Hello,

is there any way or plugin that uses status.cgi and displays only the services that are critical on a host alongside those that are ok

i.e.

HOSTA -SERVICE A OK -SERVICE B -CRITICAL
HOSTB -SERVICE A CRITICAL -SERVICE B - OK

Saleem

Re: Status.cgi

Posted: Fri Nov 17, 2017 9:41 am
by saleemthupsee
i used this link below it gets me close

https://192.168.9.102/nagios/cgi-bin/st ... style=grid

is there a parameter to use to maintain the grid and retrieve only the critical statuses ?

saleem

Re: Status.cgi

Posted: Fri Nov 17, 2017 11:48 am
by npolovenko

Re: Status.cgi

Posted: Tue Nov 21, 2017 4:42 am
by saleemthupsee
it comes close but does not display services that are OK on the same host.

SAleem

Re: Status.cgi

Posted: Tue Nov 21, 2017 10:48 am
by npolovenko
@saleemthupsee, Can you try this link:

Code: Select all

http://192.168.9.102//nagios/cgi-bin/status.cgi?host=all

Re: Status.cgi

Posted: Tue Nov 21, 2017 11:00 am
by lmiltchev
If you want to also see the services in OK state, you would need to use 18, instead of 16 (16 + 2).
&servicestatustypes=
#define SERVICE_PENDING 1
#define SERVICE_OK 2
#define SERVICE_WARNING 4
#define SERVICE_UNKNOWN 8
#define SERVICE_CRITICAL 16
Example:
http://192.168.9.102//nagios/cgi-bin/st ... ustypes=18

There is an old post about statuscgi here:
https://web.archive.org/web/20141227183 ... statuscgi/

Hope this helps.

Re: Status.cgi

Posted: Thu Nov 30, 2017 5:32 am
by saleemthupsee
ok thanks,

it did work. IF we could have the option to filter by status in NagiosXI, it would be great !

The thread can be closed.

Saleem
Paris

Re: Status.cgi

Posted: Thu Nov 30, 2017 11:03 am
by kyang
There is a way to do it in XI.

It would be something like this.

https://192.168.4.125/nagiosxi/includes ... ustypes=18

I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!