Hi Thomas!
It's working now like a charm, thank you very much for this hint & this
link.
Arthur
Am 15.09.2016 um 19:42 schrieb Thomas Gelf:
Hi Arthur,
you need to locally create a global zone named "director-global" as
shown here:
https://github.com/Icinga/icingaweb2-module-director/blob/master/doc/10-How-it-works.md
Cheers,
Thomas
Am 15.09.2016 um 19:24 schrieb Arthur Holzner:
Hello!
I am new to icinga and just played around a bit.
It is my intention to run some commands from icingaweb like:
sysctl -w [...]
and monitoring those stuff. My idea is to make a command (?) for a
service running on a manual trigger (e.g. mouseclick) or automatic
trigger (e.g. event).
I alrdy tried with Icinga-Director to create a Command:
Add new Command:
- Objecttype: Object
- Commandtype: Plugin Check Command (also tried others)
- Commandname: my_check_echo
- Commando: /bin/echo "Hello" >> test.txt
Add
On Deploy i get this error:
information/cli: Icinga application loader (version: r2.5.4-1)
information/cli: Loading configuration file(s).
information/ConfigItem: Committing config item(s).
information/ApiListener: My API identity: ubuntu
critical/config: Error: Validation failed for object 'my_check_echo' of
type 'CheckCommand'; Attribute 'zone': Object 'director-global' of type
'Zone' does not exist.
Location: in
/var/lib/icinga2/api/packages/director/ubuntu-1473958915-1/zones.d/director-global/commands.conf:
3:1-3:35
/var/lib/icinga2/api/packages/director/ubuntu-1473958915-1/zones.d/director-global/commands.conf(1):
library "methods"
/var/lib/icinga2/api/packages/director/ubuntu-1473958915-1/zones.d/director-global/commands.conf(2):
/var/lib/icinga2/api/packages/director/ubuntu-1473958915-1/zones.d/director-global/commands.conf(3):
object CheckCommand "my_check_echo" {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/var/lib/icinga2/api/packages/director/ubuntu-1473958915-1/zones.d/director-global/commands.conf(4):
import "check_echo"
/var/lib/icinga2/api/packages/director/ubuntu-1473958915-1/zones.d/director-global/commands.conf(5):
critical/config: 1 error
I am not sure if this is even the right way to implement those functions.
Thanks for any help,
Arthur H
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
--
Thomas Gelf
Principal Consultant
NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | thomas.g...@netways.de
** OSBConf 2016 - September - osbconf.org **
** OSMC 2016 - November - netways.de/osmc **
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users