Comments (3)
I like this idea of having the API only return items not in OK status to help the product scale and decrease the CPU on the server.
For Nagios CGIs it looks like we can do this adding this hostservice and servicestatus parameter to the API calls:
For Livestatus we can do this with:
GET hosts
Filter: state = 1
Filter: state = 2
Or: 2
GET services
Filter: state = 1
Filter: state = 2
Filter: state = 3
Or: 3
After making this change, payloads are way smaller and this will make a huge improvement on the server CPU and the web browser. But now that we are only fetching things that are not UP and not OK, I need to fetch a new lightweight API "hostcount" and "servicecount" to get the "total # of hosts" and "total # of services" since we no longer have that information from the hoststatus and servicestatus apis.
Got through most of the work for this. I can share a dev build with you to try out.
from nagiostv-react.
This has been added in https://github.com/chriscareycode/nagiostv-react/releases/tag/v0.8.7
from nagiostv-react.
@bjhiggins Please test out 0.8.7, see how it works and report back
from nagiostv-react.
Related Issues (20)
- nagiostv 0.5.1 : hide sidebar HOT 3
- Nagiostv v0.5.2 filter checkbox problem HOT 5
- Move the Alert Section to the top HOT 7
- IE compatibility? HOT 12
- Feature Requst - Filter by hostgroup HOT 3
- Remove the NagiosTV from navbottombar HOT 4
- "Quiet For X hours Y minutes" line is too large HOT 3
- Nagios XI 5.7.3 won't load anything on Nagios TV HOT 10
- β’This website requires you to log in. HOT 2
- The update menu shows the installed version as 0.7.5 but states the latest version is 0.7.3 HOT 2
- Not an issue with TV. Unable to post a discussion thread HOT 2
- script problem polifill.min.js HOT 2
- Update URL for MK Livestatus Writeup HOT 2
- Show the Hostalias and the Hostname HOT 1
- Hide Filters problem HOT 1
- Add filter by ServiceGroup HOT 5
- HostGroup Filter List not populated HOT 2
- archivejson.cgi does not return values unless endtime is a negative value HOT 4
- Configuring connector livestatus HOT 4
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 nagiostv-react.