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
Nagios check for Magento
Re: Nagios check for Magento
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
We have documentation for integrating Selenium here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Nagios check for Magento
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).
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).
Former Nagios Employee
Re: Nagios check for Magento
rkennedy and mcapra,
Thank you both for your recommendation, I will look into "Selenium" and follow up with any questions.
Thanks,
Chris
Thank you both for your recommendation, I will look into "Selenium" and follow up with any questions.
Thanks,
Chris
Re: Nagios check for Magento
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.
Everything else should be accurate, however.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/