Hi,
I'm testing Nagios XI, and despite putting cfg files in the /usr/local/nagios/etc/pnp/pages folder, I can't see how to access them.
How to configure this access from Nagios XI?. What is your url?.
Thank you very much for your help
Access to 'pages' pnp with Nagios XI
Re: Access to 'pages' pnp with Nagios XI
Hello @sleeper1972
Thanks for reaching out and want to find out which config you are referring to? And what performance data results are you looking for?
Regards,
Perry
Thanks for reaching out and want to find out which config you are referring to? And what performance data results are you looking for?
Regards,
Perry
-
- Posts: 5
- Joined: Tue Feb 08, 2022 7:38 am
Re: Access to 'pages' pnp with Nagios XI
Thanks Perry for your reply.
Basically I have files (representing TV channels) and I try to generate pages per channel including the graphics of each copy.
For example:
#
# Sample Page Config
#
# Global Section
# use_regex [0|1]
# page_name < your page title >
# background_pdf <path to background pdf>
define page {
use_regex 0
page_name 010 - TVE1 TDT
}
#
define graph {
host_name referencias-ams-brutas
service_desc hourly_channel_3010
}
define graph {
host_name referencias-ams-brutas
service_desc hourly_channel_2012
}
define graph {
host_name referencias-ams-hora-Windows
service_desc hourly_channel_010
}
With Nagios Core and PNP4NAgios this is no problem for me.
But with Nagios XI, although I have put the pages configuration files in place, but I don't know how to access them from within Nagios XI, nor from a url similar to the one used by PNP4Nagios with Nagios Core.
From Nagiox XI I can access the set of graphs individually from a generic host that includes them, but I don't see a way to see the pages and the groupings it contains.
I hope I have explained myself a little better.
Regards,
Basically I have files (representing TV channels) and I try to generate pages per channel including the graphics of each copy.
For example:
#
# Sample Page Config
#
# Global Section
# use_regex [0|1]
# page_name < your page title >
# background_pdf <path to background pdf>
define page {
use_regex 0
page_name 010 - TVE1 TDT
}
#
define graph {
host_name referencias-ams-brutas
service_desc hourly_channel_3010
}
define graph {
host_name referencias-ams-brutas
service_desc hourly_channel_2012
}
define graph {
host_name referencias-ams-hora-Windows
service_desc hourly_channel_010
}
With Nagios Core and PNP4NAgios this is no problem for me.
But with Nagios XI, although I have put the pages configuration files in place, but I don't know how to access them from within Nagios XI, nor from a url similar to the one used by PNP4Nagios with Nagios Core.
From Nagiox XI I can access the set of graphs individually from a generic host that includes them, but I don't see a way to see the pages and the groupings it contains.
I hope I have explained myself a little better.
Regards,
-
- Posts: 5
- Joined: Tue Feb 08, 2022 7:38 am
Re: Access to 'pages' pnp with Nagios XI
Hi,
Basically, the copies of several TV channels are monitored, and for that reason I make a page in which the copies of the same channel are shown.
This is no problem with Nagios Core and PNP4Nagios as I can access the pages through the link provided by pnp4nagios.
However, with Nagios XI, despite putting the configuration files in the pages folder, I can't access them, neither through any url, nor through Nagios XI itself.
An example of a file would be for example:
#
# Sample Page Config
#
# Global Section
# use_regex [0|1]
# page_name < your page title >
# background_pdf <path to background pdf>
define page {
use_regex 0
page_name 010 - TVE1 TDT
}
define graph {
host_name referencias-ams-brutas
service_desc hourly_channel_3010
}
define graph {
host_name referencias-ams-brutas
service_desc hourly_channel_2012
}
define graph {
host_name referencias-ams-hora-Windows
service_desc hourly_channel_010
}
Through 'references-ams-plots' I can access all the graphs, but the idea is to access them through the pages, where they are grouped by strings.
Any idea how to access the pages?
Thank you for your help
Basically, the copies of several TV channels are monitored, and for that reason I make a page in which the copies of the same channel are shown.
This is no problem with Nagios Core and PNP4Nagios as I can access the pages through the link provided by pnp4nagios.
However, with Nagios XI, despite putting the configuration files in the pages folder, I can't access them, neither through any url, nor through Nagios XI itself.
An example of a file would be for example:
#
# Sample Page Config
#
# Global Section
# use_regex [0|1]
# page_name < your page title >
# background_pdf <path to background pdf>
define page {
use_regex 0
page_name 010 - TVE1 TDT
}
define graph {
host_name referencias-ams-brutas
service_desc hourly_channel_3010
}
define graph {
host_name referencias-ams-brutas
service_desc hourly_channel_2012
}
define graph {
host_name referencias-ams-hora-Windows
service_desc hourly_channel_010
}
Through 'references-ams-plots' I can access all the graphs, but the idea is to access them through the pages, where they are grouped by strings.
Any idea how to access the pages?
Thank you for your help
Re: Access to 'pages' pnp with Nagios XI
Hi,
Those are some wonderful explanations. Personally, I have used PNP4Nagios in only a very basic fashion, but I think I understand what you're trying to do based on the information you gave.
Option 1
If I understand correctly, in Nagios Core you would go to http://<yourIP>/nagios/some_custom_page and you would get one of these configurations.
If that's correct, then you may still be able to access those pages via a similar URL. The Nagios Core interface is still available in Nagios XI. Simply remove the xi from http://<yourIP/nagiosxi.
If that works, and you can access your pages via the Nagios Core interface, then you should be able to copy the URL for those pages, and access them using the Custom URL dashlet.
Option 2
Another possibility to investigate is the Custom Includes. I have less faith in this option, but I wanted to call it out, since the goal, to an extent, involves customizing the Nagios XI interface.
Going to Admin -> System Extensions -> Custom Includes, you have an interface to upload files to customize the XI interface. Now the limiting factor I see right now is that here we're not uploading whole pages, but rather CSS, JavaScript, and Image files. My thought is that there may be some JavaScriptery that could be done to load the configuration that you've created. Here is some documentation for getting started with Custom Includes.
https://support.nagios.com/kb/article/n ... t-556.html
Those are some wonderful explanations. Personally, I have used PNP4Nagios in only a very basic fashion, but I think I understand what you're trying to do based on the information you gave.
Option 1
If I understand correctly, in Nagios Core you would go to http://<yourIP>/nagios/some_custom_page and you would get one of these configurations.
If that's correct, then you may still be able to access those pages via a similar URL. The Nagios Core interface is still available in Nagios XI. Simply remove the xi from http://<yourIP/nagiosxi.
If that works, and you can access your pages via the Nagios Core interface, then you should be able to copy the URL for those pages, and access them using the Custom URL dashlet.
Option 2
Another possibility to investigate is the Custom Includes. I have less faith in this option, but I wanted to call it out, since the goal, to an extent, involves customizing the Nagios XI interface.
Going to Admin -> System Extensions -> Custom Includes, you have an interface to upload files to customize the XI interface. Now the limiting factor I see right now is that here we're not uploading whole pages, but rather CSS, JavaScript, and Image files. My thought is that there may be some JavaScriptery that could be done to load the configuration that you've created. Here is some documentation for getting started with Custom Includes.
https://support.nagios.com/kb/article/n ... t-556.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 5
- Joined: Tue Feb 08, 2022 7:38 am
Re: Access to 'pages' pnp with Nagios XI
Hello,
Thank you very much for your reply.
You are right, with PNP4Nagios and Nagios Core, I get through the url you say, but I can't get the same with Nagios XI.
I'll check what you tell me and let you know.
Thanks again.
Thank you very much for your reply.
You are right, with PNP4Nagios and Nagios Core, I get through the url you say, but I can't get the same with Nagios XI.
I'll check what you tell me and let you know.
Thanks again.
Re: Access to 'pages' pnp with Nagios XI
Hello @sleeper1972
Perry
Thanks,I will go ahead and lock this support post, please reach out to us via the Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.
Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users
After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.
Perry