Status.cgi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
saleemthupsee
Posts: 107
Joined: Wed Feb 15, 2017 4:22 am
Location: Paris France
Contact:

Status.cgi

Post 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
Saleem THUPSEE
saleemthupsee
Posts: 107
Joined: Wed Feb 15, 2017 4:22 am
Location: Paris France
Contact:

Re: Status.cgi

Post 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
Saleem THUPSEE
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Status.cgi

Post by npolovenko »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
saleemthupsee
Posts: 107
Joined: Wed Feb 15, 2017 4:22 am
Location: Paris France
Contact:

Re: Status.cgi

Post by saleemthupsee »

it comes close but does not display services that are OK on the same host.

SAleem
Saleem THUPSEE
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Status.cgi

Post by npolovenko »

@saleemthupsee, Can you try this link:

Code: Select all

http://192.168.9.102//nagios/cgi-bin/status.cgi?host=all
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Status.cgi

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
saleemthupsee
Posts: 107
Joined: Wed Feb 15, 2017 4:22 am
Location: Paris France
Contact:

Re: Status.cgi

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

Re: Status.cgi

Post 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!
Locked