Adding custom plugins for users and services check

Hi all.
Just installed Icinga2 and got stuck at adding additional plugins
I need to see not just number of active users but who they are (their logins)
And I need to see list of services and their status (running, stopped e.t.c)

all hosts has been added by Icinga Director

Please help

On Linux hosts, you can use check_by_ssh and call the who command.
This will not alert but provides a list of users. If you need more logic, a custom check plugin needs to be programmed - nice project for a beginner or AI :wink:

Analog you can use systemctl in place of who.

I can also recommend you the @linuxfabrik’s about-me from their monitoring-plugins collection.

Thank you, @rivad :slight_smile:

@Devil2210 these checks might help:

1 Like

@linuxfabrik it’s high time, I get the new version installed :wink:

Thank you @rivad and @linuxfabrik
I will try to add them

Maybe I should add, that you can also use who and systemctl directly if the Icinga2 agent is installed.

By some reason Icinga2 Agent doesnt work. Still dont know why

Did you configure the ticket salt?
Maybe you need to rerun the setup wizard in the director.

I tried to and icinga2.service crashed :sweat_smile:

Right now I want to add The Linuxfabrik Monitoring Plugins Collection and stopped on creating JSON file. I installed Linuxfabrik Icinga Director fork, Saved basket-join script from github, but cant upload basket-join (yeah..I’m not smart guy)

I tried to and icinga2.service crashed :sweat_smile:

This needs to be fixed first as the director is managing the objects to be monitored but for this the all icinga2 master, satellite (optional) and agent endpoints need to be connected.

How are you configuring the settings under /etc/icinga2/?

Classic use case for

:slight_smile:

1 Like