Please help PIA!!!

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Please help PIA!!!

Post by trungmv »

Hi all,
I am using cacti Version 0.8.7i and using with PIA 3.0.
Everything installed Cacti is fine, but something happen with PIA installed.
- installation plugin completed:
Image

- But i can not loading some tabs:
Image

This is my config.php file:
<?php
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "xxxxxx";
$database_port = "3306";
$database_ssl = false;
/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";

$config['url_path'] = "/sysmon/";

$plugins = array();
$plugins[] = 'settings';
$plugins[] = 'thold';
$plugins[] = 'monitor';
?>

Can anyone tell me where i install wrong?
And how to install PIA 3.1??
Thank you so much

Your any feedback is appreciated,
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Please help PIA!!!

Post by noname »

>> I am using cacti Version 0.8.7i and using with PIA 3.0.

Such a problem occurs when you have forced to install PIA3.0 into Cacti 0.8.7i.
It seems that PIA3.0 was made for Cacti 0.8.7h (only).

>> And how to install PIA 3.1??

Perhaps PIA3.1 isn't released separately. I recommend re-installing Cacti bundled PIA version from the beginning.
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Please help PIA!!!

Post by trungmv »

Thank you your reply,

As you said that re-install cacti, so where i can find Plugin Management to managed some plugins??
i can not find file .diff on PIA 3.1, Could you tell me how to apply PIA 3.1 with Cacti Version: 0.8.7i ?
Is the copy overwrite to directory Cacti?

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

Re: Please help PIA!!!

Post by noname »

Did you use "Cacti with Plugin Architecture" correctly?
- http://www.cacti.net/download_cacti.php

If so, then please make sure:
1) $url_path in 'include/config.php'
2) User Management > admin > Realm Permissions > Plugin Management

The file .diff and pa.sql don't exist since PIA3.1.
Plugin relevant tables will be created when you imported cacti.sql.
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Please help PIA!!!

Post by trungmv »

Hi noname,

My mean is how and where i can putting all files on PIA 3.1 to cacti?
Is copy all files on PIA 3.1 to cacti directory?
With PIA 3.0 and previously has file .diff, so easy to used patch command
But with PIA 3.1 i do not know how to do
Could you guild me?

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

Re: Please help PIA!!!

Post by noname »

trungmv wrote: My mean is how and where i can putting all files on PIA 3.1 to cacti?
Is copy all files on PIA 3.1 to cacti directory?
What do you mean "all files" ?
trungmv wrote: With PIA 3.0 and previously has file .diff, so easy to used patch command
But with PIA 3.1 i do not know how to do
1) Download and unpack "Cacti with Plugin Architecture"
2) Make sure directory permissions
3) Edit 'include/config.php'
4) Import cacti.sql into your Cacti DB
5) Open http://server/cacti/ via browser then install Cacti
6) Enable "Plugin Management" at Realm Permissions
7) Place particular plugin files under plugins/ directory and activate it from GUI
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Please help PIA!!!

Post by trungmv »

Thank you your helpful reply,

My fault is only used cacti-0.8.7i to installed not cacti-0.8.7i-PIA-3.1, i am silly.
After i completed installation cacti and plugins seem to all fine.

But i have trouble with graphs, can not display data:
Image

Debug the graph:
Image

My crond job:
[root@xxxxxxxxx]# crontab -l -u cactiuser
*/5 * * * * cactiuser /usr/bin/php /var/www/html/sysmon/poller.php > /dev/null 2>&1

I very appreciate if you tell me how to resolved this issue?

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

Re: Please help PIA!!!

Post by noname »

Does 'cactiuser' have write permission to rra/ directory?

% ls -ld /var/www/html/sysmon/rra/

Please check this also:
- Initial Graph does not appear - Cacti Docs
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Please help PIA!!!

Post by trungmv »

Hi,

This is cactiuser permisssion:
[root@xxxxxxxx]# ls -ld /var/www/html/sysmon/rra/
drwxr-xr-x 2 cactiuser cacti 4096 Sep 12 04:55 /var/www/html/sysmon/rra/
and i changed file log to need permission
But I think i have troubled with create cron.
This is my cacti log:
Image

when i checked:
[root@xxxxxxx]# crontab -l
no crontab for root
[root@xxxxxxxx]# crontab -l -u cactiuser
no crontab for cactiuser
[root@xxxxxxxx]# cd /etc/cron
[root@xxxxxxx cron.d]# cd /etc/cron.d/
[root@d]# ll
total 4
-rw-r--r-- 1 root root 84 Feb 17 13:52 cacti
and content in file cacti:
*/5 * * * * cactiuser /usr/bin/php /var/www/html/sysmon/poller.php > /dev/null 2>&1

So, may i create cron is right??
or what ever to do?
Please let me know how to do.


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

Re: Please help PIA!!!

Post by noname »

- Install and Configure Cacti - Cacti Docs (See step 7.)

Or:
# crontab -l cactiuser -e
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Please help PIA!!!

Post by trungmv »

Hi,

I tried many times but not yet,


Thank you take time to help,
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Please help PIA!!!

Post by noname »

NOTICE:

When you tried "crontab -l cactiuser -e" (instead of editing /etc/crontab directly),
add the line as following:
*/5 * * * * /usr/bin/php /var/www/html/sysmon/poller.php > /dev/null 2>&1
(Do not insert "cactiuser")
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Please help PIA!!!

Post by trungmv »

Your reply is very helpful,

after used as your guild, now i can loading the graphs,

But all graphs are empty:
Image

My cron:
[cactiuser@xxxx log]$ crontab -l
*/5 * * * * /usr/bin/php /var/www/html/sysmon/poller.php > /dev/null 2>&1

Do you have any point?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Please help PIA!!!

Post by noname »

Then I think it's time to start this: Debugging - Cacti Docs (aka gandalf's 2nd link)
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Please help PIA!!!

Post by trungmv »

Oh, after i edited something ,
Now i can get all graphs :D :D ,
But my ethenet has not data, although, i Select a graph type:In/Out Bits (64-bit Counters)
Image
any help is appreciate
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest