Hello
I have a script on my Linux machine that outputs strings and a variable associated to that string.
I want to send that data to my NagiosXI server every 5 minutes, Is it possible for Nagios to take that data and create a graph with it?
Example : minute 0 >> peter=1 , jack=2. minute 5 >> peter=3,jack=10.
And what is the best way forward to do if possible?
Thanks
Nagios Graphs
Re: Nagios Graphs
For the performance side, here's a bit more information about it -
https://assets.nagios.com/downloads/nag ... fdata.html.
You'll need to have your script return the data in a way that works for perfdata.
To forward it you can use a passive check that reports to Nagios. Here's a link with with more information about passive checks -
https://assets.nagios.com/downloads/nag ... hecks.html
https://assets.nagios.com/downloads/nag ... fdata.html.
You'll need to have your script return the data in a way that works for perfdata.
To forward it you can use a passive check that reports to Nagios. Here's a link with with more information about passive checks -
https://assets.nagios.com/downloads/nag ... hecks.html
Former Nagios Employee
Re: Nagios Graphs
You will need to format that data in a way that Nagios can understand, and send it in as a passive check. The following two links should help a lot with this:
https://nagios-plugins.org/doc/guidelines.html#AEN200
https://assets.nagios.com/downloads/nrd ... erview.pdf
If you are using XI you already have NRDP and can skip the installation steps.
https://nagios-plugins.org/doc/guidelines.html#AEN200
https://assets.nagios.com/downloads/nrd ... erview.pdf
If you are using XI you already have NRDP and can skip the installation steps.
Former Nagios employee
Re: Nagios Graphs
thanks a lot! I am fairly new to nagios and those links really helped me
One question though, I can see the right way is to send the passive checks via nrdp, and the document says it is required to install php on my Linux machine to be able to send the information to the nrdp server, but the Linux machine doesn't have internet access and it doesn't allow any additional software to be installed on.
Is there an alternative for that?
thank
One question though, I can see the right way is to send the passive checks via nrdp, and the document says it is required to install php on my Linux machine to be able to send the information to the nrdp server, but the Linux machine doesn't have internet access and it doesn't allow any additional software to be installed on.
Is there an alternative for that?
thank
Re: Nagios Graphs
Ahh, you posted this in the Nagios XI section so I assumed PHP/NRDP was already installed. NRDP is a PHP-based solution, so if you are running Core you will need to either install PHP or use NSCA to accept check results:
http://nagios.sourceforge.net/download/ ... _Setup.pdf
Can you pelase confirm whether you are using Core or XI?
http://nagios.sourceforge.net/download/ ... _Setup.pdf
Can you pelase confirm whether you are using Core or XI?
Former Nagios employee
Re: Nagios Graphs
Thank you for the reply. Yes it is Nagiox xi indeed (and php is installed there) , I was referring to my remote Linux machine that will send the passive checks to nagios, as the document says I have to execute the php client script on the client in order to send the information to the nagiox/nrdp server.
Re: Nagios Graphs
If the script is written in PHP, then yes, you will need PHP installed on the client machine. Scripts can be written in many different languages though, so you are not just limited to PHP.
Former Nagios Employee
Re: Nagios Graphs
Thank you for the reply, luckily I have found a shell script for this script.
Thank you
Thank you
Re: Nagios Graphs
Is there anything else you need assistance with in this thread?
Former Nagios Employee.
me.
me.
Re: Nagios Graphs
No thanks! Too many kind people in this forum 