Windows SNMP-Transfer data file from host to nagios xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
furong99
Posts: 4
Joined: Mon May 24, 2021 6:46 am

Windows SNMP-Transfer data file from host to nagios xi

Post by furong99 »

Hi there ,

I'm new to Nagios xi, might not understand all the possible feature that Nagios xi could manage to perform. I'm currently using Windows SNMP to monitor host, is there any possible way to get data transfer from host to Nagios xi server? For example to transfer one of the data csv file from host into Nagios xi server and display it out.

Hope to hear from all pros soon, Thanks a lot!
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Windows SNMP-Transfer data file from host to nagios xi

Post by gsmith »

Hi

I am not quite sure what you are asking. If you are asking if Nagios xi can get a file
from a remote host and display the answer is no.

xi does keep performance data for the hosts and services in /usr/local/nagios/share/perfdata

They are stored as rrd files.

Info about rrd files can be found: https://oss.oetiker.ch/rrdtool/

Is that what you were looking for?

Thanks
furong99
Posts: 4
Joined: Mon May 24, 2021 6:46 am

Re: Windows SNMP-Transfer data file from host to nagios xi

Post by furong99 »

Hi there,

Thanks for your reply. Sorry for my misleading in the posts above, the thing I'm looking for is not entirely to send a file from a remote host to Nagios xi server, the thing I'm trying to figuring out is to send data instead of the performance data of the hosts and services from remote host into Nagios xi server.
For example to sent a random single line data like : application_id,data1,data2
and store the data into the Nagios xi server.

Based on your reply, now that I understand performance data for the hosts and services is stored in rdd files in the path: /usr/local/nagios/share/perfdata
Is it possible to send the data I mentioned in above into Nagios xi server and stored in the form of rdd files?

Hope to hear from you soon, Thanks!
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Windows SNMP-Transfer data file from host to nagios xi

Post by gsmith »

Hi,

You sure could do what you are looking for, though it most likely wouldn't be via SNMP.

Many people have written their own plugins to suit there needs. You should take
a look at https://exchange.nagios.org// for a bunch of examples. This is
a good place to start because someone might have already done the work for you :D

If you determine that you need to write your own plugin you could do a Google search
on 'nagios plugins tutorial' I just took a look at that search and there is a ton of information
out there. You can use perl, shell scripts, python, powershell, etc

I can't really give you step-by-step instructions on creating the plugin you need
because there are all sorts of options, design considerations and constraints that you
would have to make decisions about.

Was this helpful for you?

Thanks
furong99
Posts: 4
Joined: Mon May 24, 2021 6:46 am

Re: Windows SNMP-Transfer data file from host to nagios xi

Post by furong99 »

Hi,

Great to know that there are way to do what I am looking for. There are another question that I would like to ask, are all the collected data from hosts and services are stored in rdd files? Or there are data that collected from hosts that are stored in other kind of file types other than rdd in the nagios xi server.


Hope to hear from you soon, Thanks!
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Windows SNMP-Transfer data file from host to nagios xi

Post by gsmith »

Hi,

The only data saved is the perf data, which is stored in the rrd files. The reason for this is that
the rrd files will reach a certain size and stop growing.
RRDtool (round-robin database tool) aims to handle time series data such as network bandwidth, temperatures or CPU load. The data is stored in a circular buffer based database, thus the system storage footprint remains constant over time.

It also includes tools to extract round-robin data in a graphical format, for which it was originally intended. Bindings exist for several programming languages, e.g. Perl, Python, Ruby, Tcl, PHP and Lua. There is an independent full Java implementation called rrd4j.
- Wikipedia
Thanks