How to graph a data in other port ?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
universius
Posts: 4
Joined: Thu Apr 14, 2011 3:47 pm

How to graph a data in other port ?

Post by universius »

Hi everyone,

I'm with litle difficult to graph a database that is in a diferent port. Usually the port is 5432, but this database is on port 5433.

Someone know how to check and graph this database on port 5433 ?

I'm using Cacti Version 0.8.7d and the postgresql template to generate those graph, but this template don't graph database on port 5433.

It's possible do set witch port cacti will check the database ?

Sorry for some mistakes in english, i'm brazilian. :wink:

Thanks !
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: How to graph a data in other port ?

Post by noname »

Did you mention this template?
- http://forums.cacti.net/viewtopic.php?f=12&t=23300

If so, perhaps you should modify pg_connect() parameter in PHP script.
universius
Posts: 4
Joined: Thu Apr 14, 2011 3:47 pm

Re: How to graph a data in other port ?

Post by universius »

noname wrote:Did you mention this template?
- - PostgreSQL Host Template

If so, perhaps you should modify pg_connect() parameter in PHP script.
Well,

I'm using this one PostgreSQL Database Stats ( it's the same that you said.) . I choose it when i'm adding a new device and in Host Template I have this option.

But if a change this in php script i will uncheck all the others database on port 5432, right ?
universius
Posts: 4
Joined: Thu Apr 14, 2011 3:47 pm

Re: How to graph a data in other port ?

Post by universius »

And other doubt where in cacti i edit php script ?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: How to graph a data in other port ?

Post by noname »

>> But if a change this in php script i will uncheck all the others database on port 5432, right ?

Hmm, If I were you, I would create two Data Queries. One is for port 5432, and the other is for 5433.
Then I'd use either of two template appropriate for each device.
universius
Posts: 4
Joined: Thu Apr 14, 2011 3:47 pm

Re: How to graph a data in other port ?

Post by universius »

Well i did it and it's working. I made a copy of the php script e xml and added on the new one the parameter port 5433. Now cacti is graphing on port 5433 the database that I need. :P
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests