Hi all,
I have been trying for weeks with this. I am running on windows server 2008.
cacti 0.8.7e
RRDTool 1.2.15
net-snmp 5.4.1
I then used a program called xampp which is a complete package which you install and consists of
Apache 2.2.12
MySQL 5.1.37
PHP 5.3.0
when I run the poller.php manually, it creates files in the rra directory but graphs are still not coming up, am just getting little red crosses. However when I run the poller.php I get the following message:
C:\xampp\htdocs\cacti>php poller.php
c:\usr\etc\snmp/snmp.conf: line 2: Warning: Unknown token: persiste
c:\usr\etc\snmp/snmp.conf: line 3: Warning: Unknown token: tempFile
10/20/2009 09:09:32 AM - POLLER: Poller[0] WARNING: Scheduled Task
c with the Poller Interval! The Poller Interval is '300' seconds,
m of a '300' second Scheduled Task, but 61591 seconds have passed s
poll!
10/20/2009 09:09:36 AM - SYSTEM STATS: Time:4.2418 Method:cmd.php P
hreads:N/A Hosts:7 HostsPerProcess:1 DataSources:8 RRDsProcessed:5
I can see there is some sort of problem with the two lines I have made italic but cannnot see what the issue is in the snmp.conf file??? I will attach this file so all can see.
I have read through the snmp readme file to make sure it is working and it says to run the following command:
snmptranslate -IR -Td IF-MIB::linkDown
The above command should generate:
IF-MIB::linkDown
linkDown NOTIFICATION-TYPE
-- FROM IF-MIB
OBJECTS { ifIndex, ifAdminStatus, ifOperStatus }
DESCRIPTION "A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus."
::= { iso(1) org(3) dod(6) internet(1) snmpV2(6) snmpModules(3) snmpMIB(1)
After running this, I get exactly the same results that should be generated as above.
I have checked permissions to all directories, and I read that Apache uses the SYSTEM user for permissions and have made sure that SYSTEM has full permissions to all directories.
The only graphs that are being generated are for the localhost, but all other devices just show red crosses.
I am now at a loss so any help would be tremendously appreciated.
Kind Regards
[solved] no graphs and poller.php not running automatically
Moderators: Developers, Moderators
Problem with those 'helpful' packages, is that cacti doesn't always work with the latest and greatest. In this case, php 5.3 is a problem and you need to go back to 5.2.x. Have you considered using my windows installer?
Those errors in snmp.conf really shouldn't matter much, but go ahead and comment out those two lines.
Instead of messing around with snmptranslate, I'd simply just snmpwalk and OID (like for system uptime or an interface).
Those errors in snmp.conf really shouldn't matter much, but go ahead and comment out those two lines.
Instead of messing around with snmptranslate, I'd simply just snmpwalk and OID (like for system uptime or an interface).
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
hi,
thanks for response. I know it isn't a problem with the version of PHP in this package as I know someone who has got it working with exactly the same xampp package as I am using.
OK, I shall ignore those errors if they do not matter, but why is it creating files in the rra directory only for the locahost and not for my other device.
When I check my device it is not returning any snmp information. it is saying both snmp error and tcp ping timed out.
Sorry but I don't understand what your last line of comment meant. Im suspecting that the RRDTool is not working properly but how can I check this???
thanks for response. I know it isn't a problem with the version of PHP in this package as I know someone who has got it working with exactly the same xampp package as I am using.
OK, I shall ignore those errors if they do not matter, but why is it creating files in the rra directory only for the locahost and not for my other device.
When I check my device it is not returning any snmp information. it is saying both snmp error and tcp ping timed out.
Sorry but I don't understand what your last line of comment meant. Im suspecting that the RRDTool is not working properly but how can I check this???
Right,
under the device I am trying to get data from, I changed the snmp version to version 1 instead of 2, I now have snmp information being shown and the ping is successful.
It even shows the status of the device as being up
It has also created a couple of graphs in my rra folder for the new device!!! brilliant.
However, it is not picking up data and this is what is recorded in the log when I run the poller.php manually, as it never runs automatically.
10/20/2009 12:19:58 PM - SYSTEM STATS: Time:1.6510 Method:cmd.php Processes:20 Threads:N/A Hosts:3 HostsPerProcess:1 DataSources:7 RRDsProcessed:7
10/20/2009 12:19:58 PM - CMDPHP: Poller[0] Host[14] DS[131] WARNING: Result from SNMP not valid. Partial Result: U
10/20/2009 12:19:58 PM - CMDPHP: Poller[0] Host[14] DS[132] WARNING: Result from SNMP not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:56 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Scheduled Task, but 281 seconds have passed since the last poll!
Please, enlighten me. I feel I am very close to getting this working, but yet still so far.
under the device I am trying to get data from, I changed the snmp version to version 1 instead of 2, I now have snmp information being shown and the ping is successful.
It even shows the status of the device as being up
It has also created a couple of graphs in my rra folder for the new device!!! brilliant.
However, it is not picking up data and this is what is recorded in the log when I run the poller.php manually, as it never runs automatically.
10/20/2009 12:19:58 PM - SYSTEM STATS: Time:1.6510 Method:cmd.php Processes:20 Threads:N/A Hosts:3 HostsPerProcess:1 DataSources:7 RRDsProcessed:7
10/20/2009 12:19:58 PM - CMDPHP: Poller[0] Host[14] DS[131] WARNING: Result from SNMP not valid. Partial Result: U
10/20/2009 12:19:58 PM - CMDPHP: Poller[0] Host[14] DS[132] WARNING: Result from SNMP not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:57 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result: U
10/20/2009 12:19:56 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Scheduled Task, but 281 seconds have passed since the last poll!
Please, enlighten me. I feel I am very close to getting this working, but yet still so far.
I now have graphs for a number of my devices and data on them as well!!! Amazing.
However, I managed to gain this by setting up a scheduled task in windows to run a batch file every 5 minutes which runs the poller.php manually, which I set up yesterday evening and left on through the night. This morning, I have a beautiful graph with a constant flow of data on it.
This is very exciting, I feel that I have NEARLY succeeded. However, I am still having this problem with the poller not running automatically. Any idea why this could be?????
Thanks again in advance for everyones help so far and to come hopefully.
Kind Regards
However, I managed to gain this by setting up a scheduled task in windows to run a batch file every 5 minutes which runs the poller.php manually, which I set up yesterday evening and left on through the night. This morning, I have a beautiful graph with a constant flow of data on it.
This is very exciting, I feel that I have NEARLY succeeded. However, I am still having this problem with the poller not running automatically. Any idea why this could be?????
Thanks again in advance for everyones help so far and to come hopefully.
Kind Regards
[SOLVED] Still no graphs and poller.php not running automati
Doh.......
I can't believe this. I have been trying to sort this out for weeks, not realising that the scheduled task needs to be set through windows and NOT cacti.
I thought there was a feauture within cacti that ran the poller.php on a schedule, not through windows itself!!! DDrrrrrr.
Thanks for the help everyone.
This is now solved.
I can't believe this. I have been trying to sort this out for weeks, not realising that the scheduled task needs to be set through windows and NOT cacti.
I thought there was a feauture within cacti that ran the poller.php on a schedule, not through windows itself!!! DDrrrrrr.
Thanks for the help everyone.
This is now solved.
Who is online
Users browsing this forum: No registered users and 2 guests