Page 1 of 1

php apps

Posted: Thu Jan 23, 2014 10:09 pm
by ura_soul
greetings!

i am new to nagios.. i have some questions about nagios and php.

i have not seen any message relating to a required PHP version level for nagios.. i am using 5.5+ currently - i saw a thread about 5.5 here and there was no mention of whether nagios supports 5.5 or not. did i miss an explanation somewhere on the website?

as well as using the hardware monitoring of nagios, i am looking for a way to monitor php stack traces, as newrelic and appdynamics do (http://www.appdynamics.com/solutions/ph ... g-solution) - does anyone know if this can be done with nagios (plugins)?

thanks

Re: php apps

Posted: Fri Jan 24, 2014 2:25 pm
by sreinhardt
You can certainly try, but presently we only officially support php 5.4 and 5.3. As for the plugins question, anything can be done, its just a matter of writing a a plugin and outputting the correct information. I would say that nagios itself cannot directly do the stack traces, however you could use it to monitor failures and use an event handler to initiate your diagnostic program!

Re: php apps

Posted: Fri Jan 24, 2014 2:27 pm
by abrist
I believe 5.4 is the newest version of php that we officially support at the moment.
ura_soul wrote:as well as using the hardware monitoring of nagios, i am looking for a way to monitor php stack traces, as newrelic and appdynamics do (http://www.appdynamics.com/solutions/ph ... g-solution) - does anyone know if this can be done with nagios (plugins)?
If you can check the stack traces from the cli, then you can script a nagios plugin to run the check and return the result in the nagios plugin format. We can help with the nagios wrapper script, but you need to figure out how to check these things from the cli.

Re: php apps

Posted: Fri Jan 24, 2014 2:32 pm
by ura_soul
thanks for responding here.
i have just discovered that the bundled version of nagios in centos 6.5 is broken.. so i need to download the latest version and test that. i will post here my results with php 5.5.
well, i think the version of nagios in centos is broken.. only due to others having reported the same white screen after setup with nginx and they said it was fixed with the newer version of nagios.

i am not aware of how to access php stack traces in as useful a way as these pre-existing apps already are doing.. so i am unlikely to write a new plugin for nagios at this point. i was really inquiring as to whether such a plugin already exists.

Re: php apps

Posted: Fri Jan 24, 2014 3:10 pm
by slansing
Let us know how your testing goes. Nginx has been known to cause issues in the past with Nagios.