Nagios check for Magento

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
clab
Posts: 5
Joined: Wed Jun 08, 2016 4:05 pm

Nagios check for Magento

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios check for Magento

Post 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
Former Nagios employee
https://www.mcapra.com/
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios check for Magento

Post 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).
Former Nagios Employee
clab
Posts: 5
Joined: Wed Jun 08, 2016 4:05 pm

Re: Nagios check for Magento

Post by clab »

rkennedy and mcapra,


Thank you both for your recommendation, I will look into "Selenium" and follow up with any questions.

Thanks,
Chris
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios check for Magento

Post 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.
Former Nagios employee
https://www.mcapra.com/
Locked