Page 1 of 1

How can i create a Nagios alert to check for C++ Errors

Posted: Tue Jun 16, 2015 11:18 am
by warias
Hello to all,

I have a a serious issue i am trying to resolve and would like some help.


Problem:

- I have a number of Windows servers that from time to time give us c++ errors on our propitiatory applications used for processing data, when this happens data processing on that host stops until the c++ errors is cleared.

- We currently have other alerts that in conjunction will eventually lead us to check the server that the c++ error is on, clear the error and restart the application. But in the meantime processing is stalled.

- I need a way for to detect these c++ errors as soon as they come up and alert through nagios. Any help or ideas on this would be great


Attempted Solution:
I currently have Windows event log alerts that will check the Event logs for Memory execption errors amongst other things. and you would that C++ errors would be logged in windows but they are not. therefore i cannot make an alert to look for c++ errors in the event log. In my findings a c++ error is just a pop up error on that happens on the software level and there is no real way of tracking it.


Nagios environment Specs:
1. I am currently using Nagios Core 3.2.3
2. and i am using NSCLIENT++ 0.3.8 for NRPE client on the windows server

Re: How can i create a Nagios alert to check for C++ Errors

Posted: Tue Jun 16, 2015 2:58 pm
by tmcdonald
Does the program crash or just hang? If it crashes you can check to see if the program is running.

Is there a way to see if data is being processed? If there are files that build up you can check for file count.

Does the CPU load drop when it hangs? If so you can check for load being too low.

Is this a program you control? If so you can modify it to do logging or even alert Nagios directly.