It's a lightly used dev/test mysql database with 5000 max connections. Doubt it's getting close to that. I found a python junkie on our development team that is going to dig into this script.
Did you mean to type a return of 255 or 25? If it is 25 I would suspect the script itself assigning the return value incorrectly (check the if/else clauses for the warn/crit values) but for 255 it could be anything really.
The illegal division error when running from CLI makes me think it's a problem with the python itself. Looking at stats of the target in real time show it's doing absolutely nothing and I can only reproduce when execute the check in rapid fire.
vAJ wrote:The illegal division error when running from CLI makes me think it's a problem with the python itself. Looking at stats of the target in real time show it's doing absolutely nothing and I can only reproduce when execute the check in rapid fire.
I would suspect that this is internal to the script itself. Just to clarify, the issue only happens when you run the same check multiple times near simultaneously?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Well, it happens occasionally as a scheduled check. My assumption is when the script returns the "Illeal Division" to Nagios, Nagios then displays that as "Return Code 25..."
Are these checks running through multiple gearman servers? (One of the servers could have an issue)
It could also be that occasionally the check returns a bad value or unexpected character that is breaking the check or it could be occasionally timing out.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.