And applied at the end point (āhost.vars.agent_endpointā)
How can I make an additional refinement of this point, to a node with a specific name (ip address)?
Iād recommend to not define host specific values e.g. SNMP community in your service definition. Best practice is to define it at your host e.g.:
vars.snmp_community = āYourSecretPWā
and reuse this with your command object as Iāve shown in my example.
For assigning services to hosts I prefer to use host templates. Using variables at your host and assign via that variable is another useful method e.g.
vars.snmp_int = true
assign where host.vars.snmp_int
If a host has more than one interface to be checked Iād recommend to use Apply For instead.
I fixed everything in accordance with the recommendations.
Thanks for the documentation link.
PS. It happens that the description in the documentation is not entirely obvious. I would post more consistent examples in the documentation sections. This is just a wish :). Often after reading the full picture of the applyence does not always add up.
If someone helped you get to the bottom of your issue, please mark the answer as the āsolutionā
This helps others who have a similar issue to get to the most helpful answer faster.
(And maybe even leave a little on the posts that helped you out as well )
About the documentation: If you want to you could do those corrections yourself and submit a pull request? As a starting point, you can edit the file from here
Your memory is still fresh and you seem to have an idea on what to change too, so your help would be greatly appreciated!
Alternatively, you can also open an issue about it here.
If you do it like this, the Parameters will always set, even if they are not needed. Better use the (set_if)[Object Types - Icinga 2] to make this plugin work correctly. Icinga2 != (Nagios|Icinga1) where you have to define the same command again and again with different parameters.
I know that I can put pnp4 into Icinga2, but now I have InfluxDB + Grafana.
Who can tell how to display such graphs correctly (now they are displayed on an accrual basis)
Well.
I did it. I created an additional panel in the Grafana dashboard (base-metrics), where I used in select data the nonNegativeDerivative function. Then arranged a separate graphic in the Grafan plugin, indicating this panel(ID) for a network service. It turned out like this: