I am looking to get performance data of various alerts setup in my Nagios Core/XI. I think it is stored in RRDs. Are there ways I can get access to it?
Is there a way I can get historic performance data of various alerts in Nagios as json/xml?
1.7k Views Asked by nikhilvora At
1
There are 1 best solutions below
Related Questions in SNMP
- What is community based authentication in SNMP?
- SNMP :snmpwalk response from NAS timeout issue
- Is it possible to use log4r ( logger for Ruby ) to send SNMP traps?
- Which language and lib is better suited for high-performant network devices polling server (SNMP)?
- Device SNMP Commands
- PySNMP Error InterfaceIndexOrZero Error
- Passing the file data into function
- Local snmpwalk fails with Unknown Object Identifier, but remote works
- Multiple snmp open port
- Showing progress as shell script runs
- Can't receive snmpv3 trap with adventnet
- Compiling Libvirt-snmp on VMware ESXi
- Are there version options for Indy SNMP traps?
- Wrong source IP Address is getting displayed in NMS for net-snmp Traps
- snmp implementation in Qt in Ubuntu
Related Questions in NAGIOS
- 403 Forbidden and 13 Permission Denied
- Nagios with Munin services gives unknown
- How to monitor Wildfly with Nagios?
- Questions Nagios Monitoring
- Nagios monitoring for Exchange highavailability [Failover]
- Centreon/Icinga: command by services
- python3 sys.exit vs SystemExit
- Nagios check_ssh plugin not working
- Can Nagios be used on embedded devices
- Storing data from Nagios into MariaDB using ndoutils-2.0.0
- Can we add 2 event handlers in nagios service definition
- Nagios to monitor network firewall, router, switch and wireless equipments
- gitlab not working after installing nagios and apache but still both nginx and gitlab are running
- Make fact available during puppet catalog compilation
- LDAPS Authentication for Nagios Web GUI
Related Questions in NAGIOSXI
- Nagios check_ssh plugin not working
- Storing data from Nagios into MariaDB using ndoutils-2.0.0
- Is there a way I can get historic performance data of various alerts in Nagios as json/xml?
- CHECK_NRPE: Error - Could not complete SSL handshake
- Attribute Syntax for JSON query in check_json.pl
- How to have custom warning and critical time for nagios check_http?
- Extract Nagios object definitions from a monolithic configuration file to individual files
- By changing MIB values(SNMPv2 to SNMPv3), new SNMP Traps are not being received
- Nagios: how to apply manual changes in services cfg files
- nagios mysql replication plugin displays failed state for remote server
- Nagios Error: The server is temporarily unable to service your request due to maintenance downtime or capacity problems
- Raid alert catch python script need to have Nagios logic added
- Use of uninitialized value $5 and argument isn't numeric in numeric lt (<)
- Nagios won't create performace-data for plugin
- How can be Nagios RRD database imported to Influxdb
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you're using Nagios XI you can get this data a few different ways.
If you're using XI 5 or later, then the easiest way that springs to mind is the API. Log in to your XI server as an administrator, navigate to 'Help' menu, then select 'Objects Reference' on the left hand side navigation and find 'GET objects/rrdexport' from the Objects Reference navigation box (or just scroll down to near the bottom).
An example curl might look like this:
Your response should look something like:
BUT WAIT, THERE IS ANOTHER WAY
This way will work no matter what version you're on, and would actually work if you were processing performance data with NPCD on a Core system as well.
Log in to your server via ssh or console and get your butt over to the
/usr/local/nagios/share/perfdatadirectory. From here we're going to use the localhost object as an example..Once you run the
rrdtool dumpcommand, there is going to be an awful lot of output, so I keep that as an exercise for you, the reader ;)If you're trying to automate something of some kind, then you should note that the xml files contain meta data for the rrd files and could potentially be useful to parse first.
Also, if you're anything like me, you love reading technical manuals. Here is a great one to read: RRDTool documentation
Hope this helped!