Page 1 of 1
Nagios check for Magento
Posted: Tue Jun 28, 2016 1:59 pm
by clab
Hello,
I was curious if there is a way to configure a check in Nagios to verify if Magento site users can "Add items to cart", and will alert when items are not being added to cart.
Any suggestions?
Thanks,
Chris
Re: Nagios check for Magento
Posted: Tue Jun 28, 2016 2:08 pm
by mcapra
It's been a while since i've worked with Magento, but that sounds like something Selenium would be the perfect candidate for if you're unable to craft a curl request to simulate the action. Selenium does, however, require a dedicated server with a GUI to navigate a browser.
We have documentation for integrating Selenium here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: Nagios check for Magento
Posted: Tue Jun 28, 2016 2:10 pm
by rkennedy
Out of the box, I don't know of anything. For checking a specific URL for a string of text / html, check_http will work fine.
However... It sounds like you need to run a specific test to make sure the item is actually added to the cart. For this, you may want to look at Selenium, which you can then use in conjunction with Nagios. Selenium will emulate a browser, to allow you to click / verify things are added in a card, and Nagios will then let you check every x minutes. Google has quite a few results about doing Magento testing specifically with Selenium, so I would say to take a look at the information you can find to get a Selenium test case completed. Then, look into integrating that with Nagios (which is the portion we can help with).
Re: Nagios check for Magento
Posted: Tue Jun 28, 2016 3:02 pm
by clab
rkennedy and mcapra,
Thank you both for your recommendation, I will look into "Selenium" and follow up with any questions.
Thanks,
Chris
Re: Nagios check for Magento
Posted: Tue Jun 28, 2016 3:18 pm
by mcapra
It's worth mentioning that Page 7 of that document doesn't really apply to your situation since you are using Nagios Core
Everything else should be accurate, however.