PNP from Nagios XI GUI
PNP from Nagios XI GUI
I am using the check_multi plugin to monitor some SaaS services. The way that the performance data is captured is incompatible with the performance charts in Nagios XI but work find in PNP4Nagios.
Is it possible to add a link or icon with a link to the pnp graphs or even a new tab within the "Service Status Detail" page?
Is it possible to add a link or icon with a link to the pnp graphs or even a new tab within the "Service Status Detail" page?
You do not have the required permissions to view the files attached to this post.
Re: PNP from Nagios XI GUI
This is something the devs would need to do, but I doubt they will since we have the capability to use either PNP or Highcharts for graphing. Under Admin, go to System Settings and then uncheck the "
Use Highcharts for Perfdata Graphs" box, and save the settings. This will revert to using PNP for graphs, albeit on a global scale.
Use Highcharts for Perfdata Graphs" box, and save the settings. This will revert to using PNP for graphs, albeit on a global scale.
Former Nagios employee
Re: PNP from Nagios XI GUI
Thanks tmcdonald for the information. Updating the settings to use PNP does not display the graphs from check_multi only the perf data for check_mulit commnad itself and not the embedded checks.
Re: PNP from Nagios XI GUI
Can you show us the actual check run from the command line, along with the output of it? Also, show a screenshot of the "Advanced" tab page. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: PNP from Nagios XI GUI
lmiltchev wrote:Can you show us the actual check run from the command line, along with the output of it? Also, show a screenshot of the "Advanced" tab page. Thanks!
Code: Select all
./check_multi -f /opt/tools/nagios/libexec/multi_check/website_heartbeat.cmd --s WARN=4000 --s CRITICAL=14000 --s SITE=freescale.sciforma.net
OK - 6 plugins checked, 6 ok
[ 1] az84_Phoenix HTTPS OK: 351ms - https://freescale.sciforma.net/
[ 2] tx30_Oak_Hill HTTPS OK: 212ms - https://freescale.sciforma.net/
[ 3] zch01_China HTTPS OK: 597ms - https://freescale.sciforma.net/
[ 4] zfr11_Toulouse HTTPS OK: 489ms - https://freescale.sciforma.net/
[ 5] zin45_India HTTPS OK: 918ms - https://freescale.sciforma.net/
[ 6] zmy02_Kuala_Lumpur HTTPS OK: 1145ms - https://freescale.sciforma.net/ |check_multi::check_multi::plugins=6 time=9.002568 az84_Phoenix::check_nrpe::time=351ms;4000;14000;0; tx30_Oak_Hill::check_nrpe::time=212ms;4000;14000;0; zch01_China::check_nrpe::time=597ms;4000;14000;0; zfr11_Toulouse::check_nrpe::time=489ms;4000;14000;0; zin45_India::check_nrpe::time=918ms;4000;14000;0; zmy02_Kuala_Lumpur::check_nrpe::time=1145ms;4000;14000;0;
You do not have the required permissions to view the files attached to this post.
Re: PNP from Nagios XI GUI
I asked the devs about this, and we use :: in some places as a delimiter. As your perfdata output contains that sequence in a few places, it is likely causing issues with our templating. It might be possible to write a wrapper script around check_multi that will escape the :: sequence to \:\: but I have not tested this. Are you decent with bash scripting? I don't have the time right at this moment, but if you can write it yourself that's great otherwise I could ask another tech if they would be willing.
Edit: To address your original point, the Actions Component can add links to the page:
https://assets.nagios.com/downloads/nag ... ponent.pdf
Edit 2: Or the check_multi plugin has some options that can affect perfdata:
http://my-plugin.de/wiki/projects/check ... on/options
See option 32
Edit: To address your original point, the Actions Component can add links to the page:
https://assets.nagios.com/downloads/nag ... ponent.pdf
Edit 2: Or the check_multi plugin has some options that can affect perfdata:
http://my-plugin.de/wiki/projects/check ... on/options
See option 32
Former Nagios employee
Re: PNP from Nagios XI GUI
If someone else could help that would be great.
Re: PNP from Nagios XI GUI
Try modifying your command by adding "-r 32" to it.
Remove the rrd & xml files from "/usr/local/nagios/share/perfdata/<hostname>/". Wait for 20-30 min. The perfdata should start showing up.
I tried the following command:
My graph looks goofy as I have tons of checks...
but hichart graphs do work.
Code: Select all
./check_multi -f /opt/tools/nagios/libexec/multi_check/website_heartbeat.cmd --s WARN=4000 --s CRITICAL=14000 --s SITE=freescale.sciforma.net -r 32I tried the following command:
Code: Select all
check_multi!-f /usr/local/nagios/libexec/check_multi.cmd -r 32You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: PNP from Nagios XI GUI
I saw the -r 32 options but I loose where the check was done. In my case I am using multi_check to check SaaS web services throught servers around the globe so I need to show which region the perf data is from.
Re: PNP from Nagios XI GUI
I see. In this case, you can try the following workaround. Make a backup of the original "check_multi" plugin.
Open the plugin in a text editor, and modify the following lines (around 3890 - 3900) from this:
to this:
and this:
to this:
Note: Basically, you are substituting "::" with "-".
Remove the old rrd & xml files and wait for them to get recreated. Check your graph in about 30 min.
Did this help?
Code: Select all
cp -p check_multi check_multi_backupCode: Select all
printf "$delim%s::%s::plugins$delim=%d time=%f ",Code: Select all
printf "$delim%s-%s-plugins$delim=%d time=%f ",Code: Select all
printf "$delim%s_extended::check_multi_extended::count_ok$delim=%d count_warning=%d count_critical=%d count_unknown=%d overall_state=%d ",Code: Select all
printf "$delim%s_extended-check_multi_extended-count_ok$delim=%d count_warning=%d count_critical=%d count_unknown=%d overall_state=%d ",Remove the old rrd & xml files and wait for them to get recreated. Check your graph in about 30 min.
Did this help?
Be sure to check out our Knowledgebase for helpful articles and solutions!