Page 1 of 1
Nagios XI : upload a new component
Posted: Wed Dec 26, 2012 9:37 am
by Frédéric GRANAT
Hi,
i developped a new component and I want to upload it from Nagiosxi (In Admin->Manage components).
which command shoud I use to zip my php files ? (in order it will be recognized by upload functionnality).
Rgds,
Frederic
Re: Nagios XI : upload a new component
Posted: Wed Dec 26, 2012 10:27 am
by slansing
Hello Fredric!
Have you taken a look at this page?:
http://assets.nagios.com/downloads/nagi ... opment.pdf
Also, I found a pretty straight forward guide for you on using the zip utility you can install under RHEL/Centos Distro's and that is located here:
http://www.cyberciti.biz/tips/how-can-i ... linux.html
Re: Nagios XI : upload a new component
Posted: Wed Dec 26, 2012 10:29 am
by scottwilkerson
your files need to be in a directory with the same name as your component
ie.
Code: Select all
operations_center
|_ operations_center.inc.php
|_ operations_center.php
|_ operations_center_api.php
then zip the whole operations_center directory and name it operations_center.zip
Re: Nagios XI : upload a new component
Posted: Thu Dec 27, 2012 3:14 am
by Frédéric GRANAT
Hi,
My component is a dashlet, I used the zip utility to crate a ocenter.zip and it doesn't work when doing :
Admin -> manage components or manage dashlets and UPLOAD
Here's the content of my directory ocenter
dashlet.inc.php images index.php ocenter.css ocenter.inc.php ocenter.js
Rgds,
Frederic
Re: Nagios XI : upload a new component
Posted: Thu Dec 27, 2012 8:50 am
by scottwilkerson
can you send me the zip via email or PM and I'll take a look
thanks
Re: Nagios XI : upload a new component
Posted: Thu Dec 27, 2012 9:35 am
by Frédéric GRANAT
Hi,
I've just sent it to you by mail.
Rgds,
Frederic
Re: Nagios XI : upload a new component
Posted: Thu Dec 27, 2012 11:10 am
by scottwilkerson
Emailed back modifications.
For others developing new components I will point out it is a good idea to run the following in a console window on your test environment to help spot errors in your php