Comments (2)
Hi,
I'm not sure if I got it correctly, if you change your rule to the following it is working:
$rule = new \histou\template\Rule(
$host = '.*',
$service = '.*myservice$',
$command = '.*',
$perfLabel = array('env1_process1_cpu', 'env1_process1_memory')
);
(I think you meant .* at the host and command field)
But otherwise you get an 500?
Normally the rule does not change the behaviour of a template, it just decides which template should be used for the current service.
There are typically two sources for errors
- The template does not contain valid PHP code, which leads to the fact that the template will not be loaded, or it contains an runtimeerror which leads to an 500, in which case your webserver errorlog is your address.
- The json object you generate with your PHP code is not a valid grafana dashboard, in this case you'll see an empty grafana website with an error text, that's a tricky one because there is no debug mode, so this means searching on your own.
Greetings,
Philip
from histou.
Closed due to inactivity.
from histou.
Related Issues (20)
- Renaming check_command leads to incomplete graphs HOT 2
- I don't get the idea of templates HOT 2
- Request: Support added for PNP HOT 2
- Manage protocol and servername dynamically HOT 1
- Math Expression in the Grafana query HOT 1
- Simple template from Grafana 6 not working (no "rows" array in this schema)
- generate bitmap images HOT 2
- use “fill(previous)” instead of “fill(null)” in histou application while querying influxdb timeseries database HOT 7
- PopUp graphs in Nagios with Histou
- Histou HOT 1
- Support for Last, Max and Average HOT 3
- Support for a host wide view HOT 4
- Grafana image rendering function not working HOT 1
- Show all data for the same service with many hosts - one grafana dashboard HOT 5
- Problem integration grafana error 200 doesn´t show graphical data HOT 3
- Drill down to Grafana as admin user HOT 4
- __autoload replaced with spl_autoload_register for PHP 8 HOT 2
- Grafana + Histou dashboard stopped working HOT 1
- Empty graphs or no data points HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from histou.