Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // cgi/status.c lines 1845-1857
- customvariablesmember *temp_customvariablesmember = NULL;
- for(temp_customvariablesmember = temp_host->custom_variables; temp_customvariablesmember != NULL; temp_customvariablesmember = temp_customvariablesmember->next) {
- if(strcmp(temp_customvariablesmember->variable_name, "MARVEL_NODE_NAME")) {
- //printf(" [ip : %s] ", temp_customvariablesmember->variable_value);
- printf("<td align='right'><a align='right' target='_blank' href='http://esdev01:9200/_plugin/marvel/kibana/index.html#/dashboard/script/marvel.nodes_stats.js?queries=%%5B%%7B%%22q%%22:%%22node.ip_port.raw:%%5C%%22%s:9300", temp_customvariablesmember->variable_value);
- }
- if(strcmp(temp_customvariablesmember->variable_name, "MARVEL_NODE_IP")) {
- printf("%%5C%%22%%22,%%22a%%22:%%22%s%%22%%7D%%5D&from=now-1h&to=now'", temp_customvariablesmember->variable_value);
- printf("><img src='/nagios/images/kibana_small.png' border='0' alt='View In Marvel' title='View In Marvel'/></a></td>%s", "");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement