Hostalive is included in nrpe
object CheckCommand "nrpe-behind-parent" {
import "hostalive-common"
import "nrpe2"
command = [ PluginDir + "/check_nrpe" ]
vars.nrpe_address = "$nrpe_parent$"
....
}
Am 19.12.2017 um 14:20 schrieb [email protected]:
> Am 2017-12-19 14:14, schrieb basti:
>
> Hi Basti,
>
>> Thanks a Lot. that has fix most of the problems.
>> I small error is still present, now. I doesn't know how it works the
>> last day's.
>>
>> now all the hosts behind nrpe parent are offline.
>> I have a nrpe check called "check_$host.name$_host". this is a ping
>> check, and its ok in icinga gui.
>>
>> The host offline because is try to check "check_$host.name$_$host.name$".
>>
>> Is there a way to set a check as host check?
>
> I think this is because you are setting the check_command in the Host
> object. This overrides your ping checks:
>
> object Host "host-behind-firewall" {
> vars.check_ipv4 = true
> vars.os = "Linux"
>
> vars.nrpe_parent = "firewall"
> # check_command = "nrpe-behind-parent"
> vars.checks_nrpe = [ "host",
> "apt",
> "ntp",
> "load",,
> "release",
> "disk_/",
> ]
> }
>
> See also
> https://www.icinga.com/docs/icinga2/latest/doc/09-object-types/#host
>
> Best regards
> Stephan
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users