Export service details

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Export service details

Post by Ayush Jain »

Hi Team,

Is it possible to export service details which we are monitoring, in csv or xls format from NagiosXI.

for ex:

Host Service
A CPU_LOAD
A Memory
B Tomcat Process

Thanks,
Ayush Jain
kyang

Re: Export service details

Post by kyang »

Are you looking for something like this?
Capture.PNG
This can be done in the state history report. XI home --> Reports --> State history report under available reports section.

What service details are you looking for? Previous or current?

Does this help?
You do not have the required permissions to view the files attached to this post.
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Re: Export service details

Post by Ayush Jain »

I am just looking for all host/service which we are monitoring in Nagios.
csv list should be having 2 columns ( 1st hostname, 2nd service name)
kyang

Re: Export service details

Post by kyang »

We don't have any report to show all host/services that are being monitored.

You could try to grep the status.dat or objects.cache file and send it to a csv?

Here's a small solution, it's not displayed in two columns, but it's just to give you an idea.

Code: Select all

grep -A 1 'host_name=\|service_description=' /usr/local/nagios/var/status.dat
The output.

Code: Select all

        host_name=localhost
        service_description=Swap Usage
        modified_attributes=0
--
        host_name=localhost
        service_description=Total Processes
        modified_attributes=0
Save it to a csv file and transfer it to your desktop.

Code: Select all

grep -A 1 'host_name=\|service_description=' /usr/local/nagios/var/status.dat > /tmp/test.csv
I'm sure there's a better way, that you could try.
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Re: Export service details

Post by Ayush Jain »

I guess from this data i can write script to get the desired output :-)

Thanks,
Ayush Jain
kyang

Re: Export service details

Post by kyang »

No problem!

Did you have any more questions? Or are we okay to lock up this thread?
Ayush Jain
Posts: 28
Joined: Sat Mar 05, 2016 6:38 pm

Re: Export service details

Post by Ayush Jain »

yeah please lock it up .
Thanks:-)
kyang

Re: Export service details

Post by kyang »

Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!
Locked