Hi everyone, I'm trying to create an alert to monitor the output logs of a docker container on a remote server but I can only use the ssh method and port 22 I can't use nrp and I read that the nagios check_logfiles plugin can be used but I have no idea how to do it, someone has an idea and can guide me
Hello,
If you want use check_logfiles please refer you to thé docs of Consol https://labs.consol.de/nagios/check_logfiles/ and https://labs.consol.de/nagios/check_logfiles/examples/index.html
But you could probably do it with centreon-plugins and Centreon Plugin Packs with the Linux SSH https://docs.centreon.com/pp/integrations/plugin-packs/procedures/operatingsystems-linux-ssh/
Probably with this mode cmd-return : https://github.com/centreon/centreon-plugins/blob/2683d38e39bacf92d1a89f6da6e8d7d83b10a8c5/src/os/linux/local/plugin.pm#L37
It's not like check_logfiles but you could pass a command to search the pattern you want check
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.