Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cacti does not create any graphs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mrbeeye
n00b
n00b


Joined: 04 Nov 2005
Posts: 19

PostPosted: Wed Dec 07, 2005 11:26 am    Post subject: Cacti does not create any graphs Reply with quote

Used
Code:
emerge cacti

Cacti does not create any graphs.

I manually tried
Code:
/usr/bin/php /www/cacti/poller.php

Here is output:
Code:

No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
OK u:0.01 s:0.01 r:1.01
OK u:0.01 s:0.01 r:1.02
OK u:0.01 s:0.01 r:1.02
OK u:0.02 s:0.01 r:1.02
OK u:0.02 s:0.02 r:1.03
OK u:0.02 s:0.02 r:1.03
OK u:0.02 s:0.02 r:1.03
OK u:0.02 s:0.02 r:1.03
12/07/2005 12:19:32 PM - SYSTEM STATS: Time:1.1112 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
OK u:0.02 s:0.02 r:1.03
OK u:0.02 s:0.02 r:1.04


Where is the problem?
Back to top
View user's profile Send private message
sigix
Apprentice
Apprentice


Joined: 25 Jul 2003
Posts: 192

PostPosted: Wed Dec 07, 2005 12:52 pm    Post subject: Reply with quote

is snmpd running and snmp.conf configured ?
Back to top
View user's profile Send private message
qeldroma
Guru
Guru


Joined: 17 Oct 2002
Posts: 370

PostPosted: Wed Dec 07, 2005 12:58 pm    Post subject: Reply with quote

"Cannot find module " is normally related to missing PERL-libraries. But in this case, it's name is "none"???

Any ideas? Look on the cacti-hp, there you can find all needed libraries, yo you can manually check them out on your installation..
Back to top
View user's profile Send private message
mrbeeye
n00b
n00b


Joined: 04 Nov 2005
Posts: 19

PostPosted: Wed Dec 07, 2005 12:59 pm    Post subject: Reply with quote

sigix wrote:
is snmpd running and snmp.conf configured ?

Code:
# ps auxw | grep snmpd
root      6242  0.0  0.6  11380  5532 ?    S    Nov21   0:16 /usr/sbin/snmpd -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf


Content of /etc/snmp/snmpd.conf:
Code:

com2sec local     127.0.0.1/32    public
com2sec local     192.168.1.0/24   public

group MyROGroup v1         local
group MyROGroup v2c        local
group MyROGroup usm        local

view all    included  .1                               80

access MyROGroup ""      any       noauth    exact  all    none   none

syslocation MyLocation
syscontact Me <root@xxx.yy>
Back to top
View user's profile Send private message
sigix
Apprentice
Apprentice


Joined: 25 Jul 2003
Posts: 192

PostPosted: Wed Dec 07, 2005 1:05 pm    Post subject: Reply with quote

this link might be helpful
Cacti forums
Back to top
View user's profile Send private message
Nossie
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 181

PostPosted: Wed Dec 07, 2005 1:34 pm    Post subject: Reply with quote

What version of mysql are you using? Cacti doesn't work with 5.x

Nozzie
Back to top
View user's profile Send private message
mrbeeye
n00b
n00b


Joined: 04 Nov 2005
Posts: 19

PostPosted: Wed Dec 07, 2005 2:07 pm    Post subject: Reply with quote

sigix wrote:
this link might be helpful
Cacti forums
It was helpful. I installed patched and now the output of poller.php is
Code:
OK u:0.01 s:0.03 r:1.00
OK u:0.01 s:0.03 r:1.00
OK u:0.01 s:0.03 r:1.00
OK u:0.01 s:0.03 r:1.00
OK u:0.01 s:0.03 r:2.01
12/07/2005 03:01:17 PM - SYSTEM STATS: Time:2.1060 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
Is it OK?
Back to top
View user's profile Send private message
mrbeeye
n00b
n00b


Joined: 04 Nov 2005
Posts: 19

PostPosted: Wed Dec 07, 2005 3:05 pm    Post subject: Reply with quote

There is "SNMP not in use" in SNMP information about localhost (127.0.0.1).

snmpd is running. But nmap does not show 161/udp port opened.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Wed Dec 07, 2005 10:10 pm    Post subject: Reply with quote

The machine were Cacti is running does not need to run snmpd.
What about the access rights for the folder where the rrds are stored? The cacti process needs write access to that folder of course.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Wed Dec 07, 2005 11:05 pm    Post subject: Re: Cacti does not create any graphs Reply with quote

mrbeeye wrote:
Used
Code:
emerge cacti

Cacti does not create any graphs.

I manually tried
Code:
/usr/bin/php /www/cacti/poller.php

Here is output:
Code:

No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
OK u:0.01 s:0.01 r:1.01
OK u:0.01 s:0.01 r:1.02
OK u:0.01 s:0.01 r:1.02
OK u:0.02 s:0.01 r:1.02
OK u:0.02 s:0.02 r:1.03
OK u:0.02 s:0.02 r:1.03
OK u:0.02 s:0.02 r:1.03
OK u:0.02 s:0.02 r:1.03
12/07/2005 12:19:32 PM - SYSTEM STATS: Time:1.1112 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
OK u:0.02 s:0.02 r:1.03
OK u:0.02 s:0.02 r:1.04


Where is the problem?


iirc poller only polls, it doesn't create grephs. You might need to run cmd.php instead. It's been awhile I can't remember for sure.
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
mrbeeye
n00b
n00b


Joined: 04 Nov 2005
Posts: 19

PostPosted: Thu Dec 08, 2005 10:34 am    Post subject: Reply with quote

Think4UrS11 wrote:
The machine were Cacti is running does not need to run snmpd.
What about the access rights for the folder where the rrds are stored? The cacti process needs write access to that folder of course.
Access permissions are right. Even rwx-r-xrwx and owner is apache.
Back to top
View user's profile Send private message
mrbeeye
n00b
n00b


Joined: 04 Nov 2005
Posts: 19

PostPosted: Thu Dec 08, 2005 10:37 am    Post subject: Reply with quote

I am wondering why nmap does not discover SNMP 161/UDP port opened on localhost.
Firewall does not block any localhost traffic.

I suspects SNMPd not correctly running (listening).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum