chrnie / check_casperjs Goto Github PK
View Code? Open in Web Editor NEWMonitoring Plugin to integrate casperjs in icinga/nagios/shinken
Monitoring Plugin to integrate casperjs in icinga/nagios/shinken
Could you add to the configuration where to find the screenshots and wether the path is configurable?
Cheers,
Thomas
Hello,
I love this great plugin and use it for one of your tests ... sometimes, if the test case fails, than I get
.. /tmp/check_casper/tmp. does not exists. I can force it, with a failed test:
PASS HTTP Request success
PASS Starting
FAIL Login was failed
# type: assertTextExists
# file: tests/portal_login.js
# subject: false
# text: "Merchant"
If I get this back on the while calling the check itself:
~$ casper test tests/portal_login.js
than the plugin throws the above error message. It would be create, if the plugin can be enhanced a bit, for a better error handling. Maybe we can do it, with a better testcase for check_casperjs.pl ...
cu denny
In running the default test case specified in the readme, the plugin output contains performance data that is invalid:
$ ./check_casperjs.pl -w 30000 -c 60000 -t tests/Resurrectio_icinga.org.js
OK - PASS Find an element matching: #main-header .container.clearfix in 8.075 s
PASS Find an element matching: .et_pb_section.et_section_regular:nth-child(2) in 0.086 s
PASS Find an element matching: xpath selector: //*[normalize-space(text())='Contact'] in 0.083 s
PASS Find an element matching: .et_pb_section.et_section_regular:nth-child(2) in 0.086 s
|'Find an element matching: #main-header .container.clearfix'=8.075s;30;60;0;60 'Find an element matching: .et_pb_section.et_section_regular:nth-child(2)'=0.086s;30;60;0;60 'Find an element matching: xpath selector: //*[normalize-space(text())='Contact']'=0.083s;30;60;0;60 'Find an element matching: .et_pb_section.et_section_regular:nth-child(2)'=0.086s;30;60;0;60 'total'=8.33s;30;60;0;60
specifically the xpath selector test has single quotes that are passed back to the plugin unescaped. as a result the following performance data will be mangled by any perfdata processor in nagios/icinga:
'Find an element matching: xpath selector: //*[normalize-space(text())='Contact']'=0.083s;30;60;0;60
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.