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