View previous topic :: View next topic |
Author |
Message |
mrbeeye n00b
Joined: 04 Nov 2005 Posts: 19
|
Posted: Wed Dec 07, 2005 11:26 am Post subject: Cacti does not create any graphs |
|
|
Used
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 |
|
|
sigix Apprentice
Joined: 25 Jul 2003 Posts: 192
|
Posted: Wed Dec 07, 2005 12:52 pm Post subject: |
|
|
is snmpd running and snmp.conf configured ? |
|
Back to top |
|
|
qeldroma Guru
Joined: 17 Oct 2002 Posts: 370
|
Posted: Wed Dec 07, 2005 12:58 pm Post subject: |
|
|
"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 |
|
|
mrbeeye n00b
Joined: 04 Nov 2005 Posts: 19
|
Posted: Wed Dec 07, 2005 12:59 pm Post subject: |
|
|
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 |
|
|
sigix Apprentice
Joined: 25 Jul 2003 Posts: 192
|
Posted: Wed Dec 07, 2005 1:05 pm Post subject: |
|
|
this link might be helpful
Cacti forums |
|
Back to top |
|
|
Nossie Apprentice
Joined: 19 Apr 2002 Posts: 181
|
Posted: Wed Dec 07, 2005 1:34 pm Post subject: |
|
|
What version of mysql are you using? Cacti doesn't work with 5.x
Nozzie |
|
Back to top |
|
|
mrbeeye n00b
Joined: 04 Nov 2005 Posts: 19
|
Posted: Wed Dec 07, 2005 2:07 pm Post subject: |
|
|
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 |
|
|
mrbeeye n00b
Joined: 04 Nov 2005 Posts: 19
|
Posted: Wed Dec 07, 2005 3:05 pm Post subject: |
|
|
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 |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Wed Dec 07, 2005 10:10 pm Post subject: |
|
|
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 |
|
|
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Wed Dec 07, 2005 11:05 pm Post subject: Re: Cacti does not create any graphs |
|
|
mrbeeye wrote: | Used
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 |
|
|
mrbeeye n00b
Joined: 04 Nov 2005 Posts: 19
|
Posted: Thu Dec 08, 2005 10:34 am Post subject: |
|
|
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 |
|
|
mrbeeye n00b
Joined: 04 Nov 2005 Posts: 19
|
Posted: Thu Dec 08, 2005 10:37 am Post subject: |
|
|
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 |
|
|
|