Nagios xi : upload a new component

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Nagios xi : upload a new component

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios xi : upload a new component

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Nagios xi : upload a new component

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Nagios xi : upload a new component

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Nagios xi : upload a new component

Post by scottwilkerson »

can you send me the zip via email or PM and I'll take a look

thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Nagios xi : upload a new component

Post by Frédéric GRANAT »

Hi,
I've just sent it to you by mail.

Rgds,

Frederic
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Nagios xi : upload a new component

Post 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

Code: Select all

tail -f /var/log/httpd/error_log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart