mkayontour / icinga2-status-bitbar

little script to display icinga2 status in bitbar
3 stars 2 forks source link

Unknown not shown #2

Open linuxmail opened 7 years ago

linuxmail commented 7 years ago

Hello,

it seems, that the plugin does not show the "unknown" entries for services, while I can see them with:

monitoring/list/services?service_problem=1&sort=service_severity&service_unhandled=1

Is there a problem with my Bitbar?

cu denny

mkayontour commented 7 years ago

Hi there,

there's no problem with your bitbar, i just filter the output by their state elif status == "2": url [...] +object+"_state="+status+"&"+object+"_handled=0 [...]

But i personally wouldn't care much about my "unkowns". I care about the issues.

mkay

linuxmail commented 7 years ago

Hello @mkayontour,

it isn't so easy, as you might think :-) Unknown could be plugins, that are unable to execute, for versatile reasons, because it gets strange things bad back. In my case, all Ceph plugins gets unknown back, because Ceph wasn't active :-D (ok, that is a problem from the plugins ... but not all plugins are perfect ;-) ..)

Thanks for the filter !

cu denny

mkayontour commented 7 years ago

I can provide a switch, where you can include the unknowns.

linuxmail commented 7 years ago

hi,

that would be awesome :-)