Page 1 of 1
nagios notification file
Posted: Wed Dec 16, 2015 3:01 am
by zaji_nms
dear expert,
would like to know about an attached nagiois notifcation file data from where its reading data and how it is coming kindly check an attached file for your information
Re: nagios notification file
Posted: Wed Dec 16, 2015 3:12 pm
by rkennedy
I believe what you're looking for is stored in SQL in the nagios_notifications table.
Re: nagios notification file
Posted: Wed Dec 16, 2015 3:19 pm
by ssax
It is reading it from the multiple DB tables and using and using SQL joins to pull in the other tables, is there something specific that you're trying to accomplish?
Re: nagios notification file
Posted: Thu Dec 17, 2015 12:29 am
by zaji_nms
dear ssax,
yes it seems reading from multible db as i have seen nagios_notification there are no host / services colum in the table , i would like to know the statistics about
how many alarms being notify time frame from : --- > to : with search criteria ( down / critical ) etc etc ( search contact / search " content " ) and display result
how many repetitive alarms ? for which host which services from specified time period which i select and give me display
my devloper will trying to get it done outside XI but he needs to know how that table comes as present there are no feature in current XI and its very much urgent so need your quick feedback
Re: nagios notification file
Posted: Thu Dec 17, 2015 4:48 pm
by bwallace
zaji_nms,
'mguthrie' answered your recent question in this post
https://support.nagios.com/forum/viewto ... 99&p=29471
mguthrie wrote:Performance data is not actually stored in mysql, but it's in an rrd file (round robin database) stored in /usr/local/nagios/share/perfdata. Data can be retrieved from the command line by something like the following:
Code: Select all
rrdtool fetch /usr/local/nagios/share/perfdata/myhost/myservice.rrd AVERAGE -s <starttime> -e <endtime>
There's also a graph image API in Nagios XI that can be accessed directly from the web. However it requires an active XI session.
[url]http://<yourserver>/nagiosxi/includes/components/perfdata/graphApi.php?host=192.168.5.11&service=&source=1&view=3&start=&end=[/url]
You could access an image like this externally by using backend credentials from the Backed API URL component.
http://library.nagios.com/library/produ ... ackend-api
Hopefully this helps, but let us know if otherwise.
Re: nagios notification file
Posted: Sun Dec 20, 2015 1:46 am
by zaji_nms
dear bwallace
my query regarding how to read nagios_notification table as in SQL no host / service coloum. ??
Regards,
Re: nagios notification file
Posted: Mon Dec 21, 2015 10:31 am
by rkennedy
Under the nagios_notification table you should see an object_id column - each service has a unique object_id.
From there, look at the nagios_services table, and then the service_object_id - the object_id will correlate to this. You will also see a host_object_id in the nagios_service table which correlates to the nagios_hosts table, host_object_id.
Re: nagios notification file
Posted: Sun Dec 27, 2015 2:38 am
by zaji_nms
thanks a lot.
u may close this thread.