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 answers
Related Questions in SNMP
- calculating availability of node using SysUpTime.0 variable collcted in prometheus and exposing to grafana
- pysnmp-lextudio using next() with the getCmd() generator leads to TypeError: 'tuple' object is not an iterator
- Perl / Undefined value as a HASH reference when running SNMP queries
- How do I stop my snmp4j USM users from overwrighting at runtime?
- IPv6 send is not working in pysnmp when snmpwalk is being run through IPv6 from external servers
- snmp v3 with snmp4j unable to authenticate
- Run a shell command from an web excel dropdown
- snmp4j agent responds to snmpget requests but fails to respond to snmpwalk request
- Crashing after receiving SNMP-response with PySNMP library
- Snmp4j agent table, oid in the wrong order
- Docker issue: SNMP Listener doesn't work only when it has been deployed from docker: Permission Denied
- How do I get multiple OID values in PySNMP?
- Grafana Mimir: Configuration & data source
- Grafana Mimir - SNMP data source
- Snmp_ex2_simple_standard_test throws an error “failed retrieving agent data”
Related Questions in NAGIOS
- nrpe returning different results remotely for check_apt
- Poller is not picking up the Queued tasks, the Host and Service checks are getting timed out
- Nagios Crashes when Thruk attempts to connect to livestatus
- Compile or install HariSekhon/Nagios-Plugins on ARM
- Monitoring SQL Agent Service on Windows Server with Nagios
- Powershell script showing UNKN state in Check_MK
- Thruk API : Not Found The requested URL /thruk/r/v1 was not found on this server
- how to configure hostgroup inheritance in Nagios 4.4.5 and display it on Nagios webpage
- Unable to restart my Nagios Job using EyesOfNetwork
- Icinga2: API-filter for specific service
- Nagios : event handle for container restart
- Ngnix apps in subfolders with different ports
- Nagios Install Plugin for NCPA client via NCPA API
- syntax error: operand expected [error token is "/ "]
- nagios core not honouring scheduled downtime parent child
Related Questions in NAGIOSXI
- Nagios Install Plugin for NCPA client via NCPA API
- How to add hostgroup to another hostgroup
- NagiosXI docker container: return code of 13 is out of bounds
- Use of uninitialized value $5 and argument isn't numeric in numeric lt (<)
- How to store data in nagios from a kafka consumer
- Nagios contacts configuration
- Raid alert catch python script need to have Nagios logic added
- Nagios Error: The server is temporarily unable to service your request due to maintenance downtime or capacity problems
- How can be Nagios RRD database imported to Influxdb
- Nagios won't create performace-data for plugin
- Nagios config file syntax
- By changing MIB values(SNMPv2 to SNMPv3), new SNMP Traps are not being received
- Nagios: how to apply manual changes in services cfg files
- How to convert json file from nagios to rrd for plotting with rrdgraph?
- How do you export the data from a Nagios XI service to a file
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?
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)
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!