[icinga-users] execute plugins with sudo

2016-08-22 Thread Jens . Wilke
Hi, how is it possible to execute plugins with sudo? while this works: nagios@vm1:~$ sudo -u postgres /usr/lib/nagios/plugins/check_postgres.pl --action txn-time -H 127.0.0.1 -c 60 -p 5432 -u postgres POSTGRES_TXN_TIME CRITICAL: DB "postgres" (host:127.0.0.1) longest txn: 9183s (2 hours 33 min

Re: [icinga-users] execute plugins with sudo

2016-08-22 Thread Gunnar Beutner
That’s because you do not in fact have a binary with the name „sudo -u postgres /usr/lib/nagios/plugins/check_postgres.pl“. The command attribute is an array which contains the arguments which Icinga passes to the execve(2) system call. This means that each argument has to be its own array eleme

Re: [icinga-users] dernières nouvelles

2016-08-22 Thread Shawn
Hey, Avez-vous entendu les dernières nouvelles? Vous devriez définitivement lire plus d'infos ici Cordialement, Shawn ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailma