pnp4nagios xport - how to run from shell

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
michalwozniakm
Posts: 3
Joined: Tue Apr 07, 2015 5:48 am

pnp4nagios xport - how to run from shell

Post by michalwozniakm »

We can call wget http://localhost/pnp4nagios/xport/<form ... ervicedesc>

but is there any way not to use TCP on the way?
For example I can call "php /var/www/file.php" and get the result.

With PNP4Nagios I cannot even locate /xport/csv file - (is it file)?

or, maybe there is other easy way to export data from nagios 3 to csv/json in bash?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: pnp4nagios xport - how to run from shell

Post by abrist »

What version of pnp4nagios are you running?
You could just export from rrdtool:
http://oss.oetiker.ch/rrdtool/doc/rrdxport.en.html
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked