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
Nagios xi : upload a new component
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios xi : upload a new component
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
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nagios xi : upload a new component
your files need to be in a directory with the same name as your component
ie.
then zip the whole operations_center directory and name it operations_center.zip
ie.
Code: Select all
operations_center
|_ operations_center.inc.php
|_ operations_center.php
|_ operations_center_api.php
-
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Nagios xi : upload a new component
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
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nagios xi : upload a new component
can you send me the zip via email or PM and I'll take a look
thanks
thanks
-
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Nagios xi : upload a new component
Hi,
I've just sent it to you by mail.
Rgds,
Frederic
I've just sent it to you by mail.
Rgds,
Frederic
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nagios xi : upload a new component
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
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
Code: Select all
tail -f /var/log/httpd/error_log