Poller error (no graph) : cannot find module

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
nleong
Posts: 5
Joined: Mon Mar 27, 2006 9:58 pm

Poller error (no graph) : cannot find module

Post by nleong »

Hi,

I'm new to cacti. I have managed to get everything working except I can't do any graphing.

There's missing rrd files too. Read that I need to run poller. So I run it. And i can see the devices status and ping respond time.

But I got these errros and i still can't see any graph. Help anyone ?

Cacti 0.8.6h
cactid 0.8.6g
php5.1.2
Apache2
Windows Server 2003
mySQL5
Netsnmp 5
RRDtool 1.2.10

This is the output from running poller

C:\>php c:\apache2\htdocs\cacti\poller.php
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
ERROR: change root is not supported by your OS or at least by this copy of rrdto
ol
03/28/2006 02:57:10 AM - SYSTEM STATS: Time:3.0700 Method:cmd.php Processes:1 Th
reads:N/A Hosts:4 HostsPerProcess:4 DataSources:14 RRDsProcessed:8



Attaching the log from debug. Manually running the poller.
Attachments
cacti.txt
(61.84 KiB) Downloaded 320 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

It appears you have not read the README sticky nor my windows installation guide. Please do so.

Your MIBDIRS variable is wrong, which is causing the Cannot find module errors. They dont really matter though, since cacti doesnt use mib files.
nleong
Posts: 5
Joined: Mon Mar 27, 2006 9:58 pm

Post by nleong »

My apologies. I actually read the sticky, but I missed out the Windows installation part. The SNMP mibs error have been resolved.

However, I realised that the rrd files are not being created although the poller is running it. Any idea why is this happening ?

So, from the log, I manually cut the command and paste it into the command prompt, and the rrd file created successfully.

Do I have to tweak the cmd.php file ? Cos' when the poller is running, I see some command not recognised by the windows dos promot. Eg: ps, cat etc.
Attachments
cacti.txt
(212.05 KiB) Downloaded 309 times
nleong
Posts: 5
Joined: Mon Mar 27, 2006 9:58 pm

Post by nleong »

Ok. I read the guide again, used the wrong rrdtool. Tho' the rrd files are created automatically now, I'm still not getting any data.

I will do more testing and post again if need more help.

Thanks for reading and pointing my mistake. My apologies again
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Seeing that cacti is always trying to have rrdtool create the rrd files, it looks like you have a permission issue on your rrd directory. Fire up FileMon and see what is getting denied during a polling session.
nleong
Posts: 5
Joined: Mon Mar 27, 2006 9:58 pm

Post by nleong »

Hi,

the problem have been resolved. I'm seeing graphs now. The data aer updated. The problem lies with with missing queries template files when I tried to monitor response time and availability. eg: host_availability_xxx.php

But when I try to graph something which uses SNMP data sources, everything works fine.

Of cos' theres a font issue which I have managed to resolve from some of the old post here.

Any idea where I can get the host_availability_xxx.php templates ?

thanks
norman
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What host availability templates are you talking about? Did you install some script from the forum?
nleong
Posts: 5
Joined: Mon Mar 27, 2006 9:58 pm

Post by nleong »

BSOD2600 wrote:What host availability templates are you talking about? Did you install some script from the forum?
Its the file associated with the Availability and Respond graphing template.

Didn't isntall the script from the forum. Its ok, I think I know where to get those :)

Thanks for the help so far. Managed to get both threshold n alert working. I'm a happy man for the weekend. =)
florian
Posts: 1
Joined: Tue Apr 11, 2006 6:12 pm
Contact:

could not see the graphics

Post by florian »

I instaled cacti and i cannot see any graphics. It looks like are broken.
I run in cmd the poller and shows me something like that:

C:\apache2\htdocs\cacti>php poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.4

04/12/2006 02:04:13 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceed
ed. Exiting.

I turned on graph debug mode and says that:
RRDTool Says:

ERROR: opening 'C:/apache2/htdocs/cacti/rra/localhost_load_1min_5.rrd': No such file or directory

In rra directory the cacti log say:
04/09/2006 07:05:27 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:20:19 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:24:05 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:24:06 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:25:45 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:25:46 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:25:46 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:28:55 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:28:56 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:29:04 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:29:04 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:29:05 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:29:05 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:29:05 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/11/2006 04:29:05 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
04/12/2006 12:51:13 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
04/12/2006 12:59:09 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
04/12/2006 01:00:05 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
04/12/2006 01:37:38 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
04/12/2006 01:55:14 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Cannot connect to MySQL server on 'localhost' is a major problem. Follow my installation guide in my signature. Make sure you set up a cacti username/password in mysql and set that in /include/config.php.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest