Open twisterrm opened 3 years ago
where do you get the error? Could you explain a bit more in detail what's going wrong.
Thanks for the reply, As you can see in the pics,I created a new "test" business process, added one host, the bp report host not found, but if i click on the little arrow on the low right corner i can reach the host correctly, I suppose that the issue is related to my naming convention ([PREPRD]...), the issue is present with every host and/or services, i have read that for the services is possible to use regex (I tried but no luck, surely my bad) but with hosts?
[PREPROD][S4] GRAY-APP-1
is the hostname, right? Could you show the relevant parts of the host configuration, like host_name, alias and displayname (if used).
Please also attach the example business process.
So far i am unable to reproduce the issue.
Hi Sni!
define host{
use linux-severity-4
host_name GRAY-APP-1
alias GRAY-APP-1
display_name [PREPRD][S4] GRAY-APP-1
address xx.xxx.xxx.xxx
}
{
"create_host_object" : 1,
"filter" : [],
"name" : "New Business Process 2",
"nodes" : [
{
"contactgroups" : [],
"contacts" : [],
"create_obj" : 1,
"depends" : [
"node2"
],
"filter" : [],
"function" : "worst",
"function_args" : [],
"id" : "node1",
"label" : "New Business Process 2"
},
{
"contactgroups" : [],
"contacts" : [],
"depends" : [],
"filter" : [],
"function" : "status",
"function_args" : [
"GRAY-APP-1",
"",
"="
],
"id" : "node2",
"label" : "Example Node"
}
],
"rankDir" : "TB",
"state_type" : "both",
"template" : ""
}
Thank you again for your time
i am still unable to reproduce this some way. Added a host with you config and copied the bp but it works like expected.
Hi Sven,
The same thing is happening to me when creating a business process. I don't believe the host and its services. I share the log.
[14:43:46,405][E][...b/Thruk/Utils/CLI/Bp.pm:213] bp 'MELI_prueba' failed: 400: Failed validation of host_name as type host (argument 0) at /usr/share/thruk/lib/Monitoring/Livestatus.pm line 1573,
Hi all, I have a problem with business process plugin. I have several business process based only on host (not services), my host name has a "normal name" (no symbols or other) but my display name has several [] inside the name i.e. [DEV][A1]Webserver, could be this the issue? There's a workaround for that? (I cannot change host description) Thanks in advance