nicolargo / checkglances Goto Github PK
View Code? Open in Web Editor NEWCheckGlances, a Nagios|Shinken plugin for Glances
CheckGlances, a Nagios|Shinken plugin for Glances
Remote server Linux:
$ ./checkglances.py -v -H 192.168.0.13 -s load
$ LOAD last 5 minutes: 0.08 | 'cpucore'=1.00 'min1'=0.07 'min5'=0.08;1;5 'min15'=0.10
Remote server Windows:
$ ./checkglances.py -v -H 192.168.0.11 -s load
Traceback (most recent call last):
File "./checkglances.py", line 554, in <module>
main()
File "./checkglances.py", line 547, in main
stat = stat, statparam = statparam)
File "./checkglances.py", line 239, in check
checked_value = load['min5']
KeyError: 'min5'
Note: I have a fix for this exception ...
Is this plugin still compatible with Glances 2.5 version ?
Since there as been no recent update, what is the status of this plugin ? Known bugs ? Required improvements ?
On my system Ubuntu, the check uptime returns a string as of: 1 day, 20:24:42
.
Checkglances.py raises an exception:
[1448194850] INFO: [Alignak] Result long output: File "/usr/local/var/lib/alignak/libexec/checkglances.py", line 596, in <module>
main()
File "/usr/local/var/lib/alignak/libexec/checkglances.py", line 589, in main
stat = stat, statparam = statparam)
File "/usr/local/var/lib/alignak/libexec/checkglances.py", line 203, in check
uptime_s = time.strptime(uptime, "%H:%M:%S")
File "/usr/lib/python2.7/_strptime.py", line 467, in _strptime_time
return _strptime(data_string, format)[0]
File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
(data_string, format))
ValueError: time data u'1 day, 20:17:46' does not match format '%H:%M:%S'
Bonjour et, merci pour ce script,
La fonction getCore renvoie un string et non un nombre.
Cela semble poser des problèmes pour les seuils warning, dans la fonction "load".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.