[Nagios-devel] PHP Front End For Nagios?

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
Guest

[Nagios-devel] PHP Front End For Nagios?

Post by Guest »

Hi,

I've just started using Nagios after our admin just before he left,
installed in on our network to monitor all our servers. My boss approached
me the other day wondering whether it's possible to extract some of the data
collected by Nagios for our clients to see if there are any outages or
issues.

The only issue I have is the layout of Nagios is not suitable for
integration as far as the look/feel goes. I know there are stylesheets that
would affect it, but I'd like to have our graphics dept to crank out some
sort of interface as a wrapper around it.

I plummeted myself into the code and notice that the CGI code was written in
C and modifying the look/feel is difficult since each HTML line is printed
rather than variables that could be replaced.

I'm considering of coding the front of Nagios into PHP, using Smarty as the
template engine and adoDB as the DB abstraction layer. I notice that in
future releases, Nagios is doing away with MySQL calls as it's burdensome
and provides an extra layer of disconnection between the daemon and the
database. As long as Nagios pumps the data into flat text files that are
parseable, I think I could code up a Perl script daemon that pumps the data
into a mySQL database and the PHP front end will remain functional in the
event that v2.0 doesn't populate a MySQL databse.

However, before I begin doing any coding, I still am not sure the signficant
as to why Nagios front end was coded in C to begin with. Perhaps there are
functions that couldn't be produced when coded in a Perl or PHP script or
for speed. Going through it the current web front end, this would be status
map or 3D view. I'm wondering if there is anything I should watch out if I
should so start on this... Anyone else be interested in this project?



Regards,
Jonathan Chum
Systems Developer

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A I S M e d i a , I n c .
"We Build eBusinesses"
115 Perimeter Center Terrace
Suite 540
Atlanta, GA 30346
Tel: 800.784.0919, Ext 502 / Fax: 678.382.2471
http://www.aismedia.com / jchum@aismedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/02







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: jchum@aismedia.com
Locked