Opening Graph View Inside Nagios Frame

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
js888k
Posts: 18
Joined: Wed Mar 29, 2017 8:08 am

Opening Graph View Inside Nagios Frame

Post by js888k »

All,

I need to include the Graph View page inside of my Nagios XI home screen. Except when I do this, the Cacti Graph page takes over the browser window instead of staying inside the assigned frame.

Is there a way to load the Graph View page inside of a frame without it taking over the whole browser window?

Jeff
----
Jeff Singleton

- Cacti v1.1.5
- Syslog v2.1
- Flowview v2.0
- Thold v1.0.2
js888k
Posts: 18
Joined: Wed Mar 29, 2017 8:08 am

Re: Opening Graph View Inside Nagios Frame

Post by js888k »

Its really sad that a forum designed for helping people with Cacti can't bother to have anyone respond.

This is my last attempt at using these forums for help.

Bye.
----
Jeff Singleton

- Cacti v1.1.5
- Syslog v2.1
- Flowview v2.0
- Thold v1.0.2
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Opening Graph View Inside Nagios Frame

Post by Rno »

24hours is not that mutch for help, you should be a little patient !

And if you provide some more information, maybe you will get something !!

like some code you use to see what you did !!
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
js888k
Posts: 18
Joined: Wed Mar 29, 2017 8:08 am

Re: Opening Graph View Inside Nagios Frame

Post by js888k »

What possible information besides the question I asked do I need to provide?

What code do I need to show when I have made no modifications?

Your response is a useless as not getting any response at all.
----
Jeff Singleton

- Cacti v1.1.5
- Syslog v2.1
- Flowview v2.0
- Thold v1.0.2
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Opening Graph View Inside Nagios Frame

Post by Rno »

Well I thing you add a dashlet to your dashboard !
So what value did you put on it ?
How did you format the URL of the graph ?

I have access to a Nagios XI install, but if you won't give any info on what you did, I can't help
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
js888k
Posts: 18
Joined: Wed Mar 29, 2017 8:08 am

Re: Opening Graph View Inside Nagios Frame

Post by js888k »

The only thing in Nagios I did was to create a javascript Custom Include so that I have a link to my Cacti URL (specifically pointing to the graph_view.php file) in my sidebar / left navigation. When I click on that link, instead of the graph_view.php loading within the Nagios maincontentframe it takes over the whole browser window. This effectively removes the frame and leaves me with the Cacti graph view screen only. I know this works because I have several tools that load just fine within the maincontentframe using the same method.

Is is possible to have the graph_view.php load within a frame without taking over the whole browser window?

What else can I possibly provide to explain what I am trying to do?
----
Jeff Singleton

- Cacti v1.1.5
- Syslog v2.1
- Flowview v2.0
- Thold v1.0.2
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Opening Graph View Inside Nagios Frame

Post by Osiris »

Do the opposite, add Nagios to cacti.
Before history, there was a paradise, now dust.
js888k
Posts: 18
Joined: Wed Mar 29, 2017 8:08 am

Re: Opening Graph View Inside Nagios Frame

Post by js888k »

That isn't what I want to do.

I want to view just the graphs from cacti inside a Nagios frame.

If this can't be done...I wish someone would just say so.
----
Jeff Singleton

- Cacti v1.1.5
- Syslog v2.1
- Flowview v2.0
- Thold v1.0.2
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Opening Graph View Inside Nagios Frame

Post by Rno »

graph_view.php don't show just 1 graph, but a whole set of it
if you wan't to see just 1 graph you can use dashlet with the URL of the graph, or you can use something like that:

http://cacti/cacti/graph.php?action=vie ... rra_id=all

where the graph_id is the ID of the graph you would like to see, but in this case you need to be authenticated on Cacti or it will not work
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
js888k
Posts: 18
Joined: Wed Mar 29, 2017 8:08 am

Re: Opening Graph View Inside Nagios Frame

Post by js888k »

Osiris wrote:Do the opposite, add Nagios to cacti.
I tried this and Nagios ends up crushed inside of a frame that Cacti controls.

Its unusable this way.
----
Jeff Singleton

- Cacti v1.1.5
- Syslog v2.1
- Flowview v2.0
- Thold v1.0.2
js888k
Posts: 18
Joined: Wed Mar 29, 2017 8:08 am

Re: Opening Graph View Inside Nagios Frame

Post by js888k »

Rno wrote:graph_view.php don't show just 1 graph, but a whole set of it
if you wan't to see just 1 graph you can use dashlet with the URL of the graph, or you can use something like that:

http://cacti/cacti/graph.php?action=vie ... rra_id=all

where the graph_id is the ID of the graph you would like to see, but in this case you need to be authenticated on Cacti or it will not work
Thanks, but I want to view the graphs_view.php page as the guest user. That means I want to see ALL the graphs.
----
Jeff Singleton

- Cacti v1.1.5
- Syslog v2.1
- Flowview v2.0
- Thold v1.0.2
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Opening Graph View Inside Nagios Frame

Post by Osiris »

Write a simple php script in Cacti base path to do what you want to do, use graph_image and not graph_json.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest