Closed danja95 closed 5 years ago
Hi danja95,
where did you put the checkCommand? Is it in /etc/icinga2/zones.d/global-templates ?
br
Hi, in /etc/icinga2/zones.d/master/checkcommand.conf
BR
Hi,
and your endpoint, where you want to have this command to be synced is in the master zone too?
If not, try to move the checkcommand to /etc/icinga2/zones.d/global-templates and it will be synced to all endpoints.
If it works, be so kind and close the issue with a short reply.
Hi, first of all this is the BugTracker from the devs. ;-) As I understand your question this is not a bug, it is only a question how to configure something. The devs wrote a very good doc where you learn how to configure icinga2. So maybe you should start here: https://icinga.com/docs/icinga2/latest/. If you have more questions there is a community Forum here: https://community.icinga.com/ where you can write your questions and you get help there for your questions.
Hi,
and your endpoint, where you want to have this command to be synced is in the master zone too?
If not, try to move the checkcommand to /etc/icinga2/zones.d/global-templates and it will be synced to all endpoints.
If it works, be so kind and close the issue with a short reply.
if i do this, i got error: critical/config: Error: Validation failed for object 'webserver.local.domain.de!HTTP' of type 'Service'; Attribute 'check_command': Object 'check_http' of type 'CheckCommand' does not exist.
Hi, first of all this is the BugTracker from the devs. ;-) As I understand your question this is not a bug, it is only a question how to configure something. The devs wrote a very good doc where you learn how to configure icinga2. So maybe you should start here: https://icinga.com/docs/icinga2/latest/. If you have more questions there is a community Forum here: https://community.icinga.com/ where you can write your questions and you get help there for your questions.
i'm aware of that docs. but as said, i dont understand everything. Thats why i open this case. If not wanted this here anymore please close, then i will open this in forums again.
BR Daniel
Yes, please do so and send me there the output of your master's zones.conf and of the proxmox zones.conf
Move the command configuration into a global zone which is configured on your agent, this is described in the documentation.
mv /etc/icinga2/zones.d/master/checkcommand.conf /etc/icinga2/zones.d/global-templates/
systemctl restart icinga2
For future questions, please use our community forums first before waking up developers here.
Cheers, Michael
DISCLAMER: i'm absolute new to icinga2 (or any nagios etc.)
Hello, i have trouble to get new plugins to work. I place them to destination host, setup checkcommand in my zone, but it will not pushed to dest. instead its complaing about not found command. if i manually create checkcommand on dest it works, but vars doesnt get to dest.
This is the plugin: https://github.com/thomas-krenn/check_smart_attributes
Icinga Master:
Destination Host:
Expected Behavior
Plugin should provide output to Webgui with right device spezified.
Current Behavior
Complain about Command not Found
Possible Solution
Force to Sync config inside zone.d ?
Steps to Reproduce (for bugs)
Context
I want to monitor my disks with that plugin to have notifications on that.
Your Environment
icinga2 --version
): see aboveicinga2 feature list
): see aboveicinga2 daemon -C
): see abovezones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.Master:
Destination:
Thanks !