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
Export service details
-
kyang
Re: Export service details
Are you looking for something like this?
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?
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
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)
csv list should be having 2 columns ( 1st hostname, 2nd service name)
-
kyang
Re: Export service details
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.
The output.
Save it to a csv file and transfer it to your desktop.
I'm sure there's a better way, that you could try.
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.datCode: Select all
host_name=localhost
service_description=Swap Usage
modified_attributes=0
--
host_name=localhost
service_description=Total Processes
modified_attributes=0
Code: Select all
grep -A 1 'host_name=\|service_description=' /usr/local/nagios/var/status.dat > /tmp/test.csv-
Ayush Jain
- Posts: 28
- Joined: Sat Mar 05, 2016 6:38 pm
Re: Export service details
I guess from this data i can write script to get the desired output 
Thanks,
Ayush Jain
Thanks,
Ayush Jain
-
kyang
Re: Export service details
No problem!
Did you have any more questions? Or are we okay to lock up this thread?
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
yeah please lock it up .
Thanks:-)
Thanks:-)
-
kyang
Re: Export service details
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!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!