No Graphs SNMP Not working muli part question
Moderators: Developers, Moderators
No Graphs SNMP Not working muli part question
Hey guys... Ive got an issue im sure you ahve seen before but ive searched and searched and havent found anything to fix my prob.
lemme start by giving u some background...
I had an older version of cacti on a linux box and wanted to move it to another one... well i thought i would go ahead and upgrade when i moved it... so i copied the old version over and upgraded etc.
well this box is new... so it may not be configured properly.
cacti is running everything is there but its not graphing...if i check my devices it says snmp error... so i know my snmp stuff must be setup incorrectly... i know its installed, but if i try a snmpd status it doesnt report anything...
Also
if i try to clear the cacti log or poller cache it never clears it i get the error no write permissions. can someone help me.. im very new to this and will answer any questions as best i can, i would love to get this running though because my vp is on my back about it.
Thanks guys
Derek
lemme start by giving u some background...
I had an older version of cacti on a linux box and wanted to move it to another one... well i thought i would go ahead and upgrade when i moved it... so i copied the old version over and upgraded etc.
well this box is new... so it may not be configured properly.
cacti is running everything is there but its not graphing...if i check my devices it says snmp error... so i know my snmp stuff must be setup incorrectly... i know its installed, but if i try a snmpd status it doesnt report anything...
Also
if i try to clear the cacti log or poller cache it never clears it i get the error no write permissions. can someone help me.. im very new to this and will answer any questions as best i can, i would love to get this running though because my vp is on my back about it.
Thanks guys
Derek
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: No Graphs SNMP Not working muli part question
SNMP Error shows that the target device does not respond to SNMP. Check this byking_x wrote:cacti is running everything is there but its not graphing...if i check my devices it says snmp error... so i know my snmp stuff must be setup incorrectly... i know its installed, but if i try a snmpd status it doesnt report anything...
Code: Select all
snmpwalk -c <community> -v 1 <target> system[code]
Reinhard
alright.. im solving my own probs but still not far enough yet.
fixed the poller added /usr/local/bin/php instead of php
this is the line get after i manually run the poller
06/15/2006 01:18:26 PM - SYSTEM STATS: Time:9.1263 Method:cmd.php Processes:10 Threads:N/A Hosts:21 HostsPerProcess:3 DataSources:59 RRDsProcessed:39
im guessing that makes sense to someone?
assuming this is a good thing, how come i still have no graphs?
fixed the poller added /usr/local/bin/php instead of php
this is the line get after i manually run the poller
06/15/2006 01:18:26 PM - SYSTEM STATS: Time:9.1263 Method:cmd.php Processes:10 Threads:N/A Hosts:21 HostsPerProcess:3 DataSources:59 RRDsProcessed:39
im guessing that makes sense to someone?
assuming this is a good thing, how come i still have no graphs?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Login as cactiuser. Run exactly the command found in crontab from command line. As you already put in /usr/local/bin/php, thjis should beking_x wrote:wow okay its definitely communicating now... i fixed that part... still no data on my graphs... i think maybe my poller is screwed up...
right now i have it as
*/5 * * * * cactiuser php /usr/local/apache2/htdocs/cacti-0.8.5a/poller.php > /dev/null 2>&1
in /etc/crontab
any ideas?
Code: Select all
/usr/local/bin/php /usr/local/apache2/htdocs/cacti-0.8.5a/poller.php
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
This sums the activity of a pollers run. The value of processes is far too high (assuming you do not have a 4-8 way machine). It should be about 1-2 times the number of processors. And the STATS show, that data is gathered and stored.king_x wrote:06/15/2006 01:18:26 PM - SYSTEM STATS: Time:9.1263 Method:cmd.php Processes:10 Threads:N/A Hosts:21 HostsPerProcess:3 DataSources:59 RRDsProcessed:39
So please post a screenshot of the failing graphs. Try selecting one of the failing graphs and post a screenshot of the resulting page as well
Reinhard
Not sure im giving u what you are asking for but.... here goes
i upgraded from 0.8.5a to the most recent release, in the upgrade doc is said to rename the new directory the same as the old one..
Cacti is currently running on one of our san attached servers.
as for the screenies they are attached
hope thats what you wanted...
heres the config of it as well, showing it getting its snmp info.. had to white and black out some stuff
oh and if i run your command as cactiuser i get
06/15/2006 01:43:12 PM - SYSTEM STATS: Time:9.1340 Method:cmd.php Processes:10 Threads:N/A Hosts:21 HostsPerProcess:3 DataSources:59 RRDsProcessed:39
i upgraded from 0.8.5a to the most recent release, in the upgrade doc is said to rename the new directory the same as the old one..
Cacti is currently running on one of our san attached servers.
as for the screenies they are attached
hope thats what you wanted...
heres the config of it as well, showing it getting its snmp info.. had to white and black out some stuff
oh and if i run your command as cactiuser i get
06/15/2006 01:43:12 PM - SYSTEM STATS: Time:9.1340 Method:cmd.php Processes:10 Threads:N/A Hosts:21 HostsPerProcess:3 DataSources:59 RRDsProcessed:39
- Attachments
-
- untitled.jpg (89.4 KiB) Viewed 12348 times
-
- config.jpg (520.98 KiB) Viewed 12348 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please also note my second to last post ...lvm wrote:Login as cactiuser. Run exactly the command found in crontab from command line. As you already put in /usr/local/bin/php, thjis should beking_x wrote:wow okay its definitely communicating now... i fixed that part... still no data on my graphs... i think maybe my poller is screwed up...
right now i have it as
*/5 * * * * cactiuser php /usr/local/apache2/htdocs/cacti-0.8.5a/poller.php > /dev/null 2>&1
in /etc/crontab
any ideas?(Well, I'm wondering about the stone-old cacti version. Or is it a reminescence to your first installation?). Watch out for errors.Code: Select all
/usr/local/bin/php /usr/local/apache2/htdocs/cacti-0.8.5a/poller.php
Reinhard
And please attach screenshots to your post, no external links ...
The host edit screen looks good. The Graph shows NaN, that means that no valid data is found in the rrd files. So please switch Settings -> Logging Level to DEBUG for ONE polling cycle and find the Host as Host[<ID>] in ./log/cacti.log (where <ID> is the nukmber of the host found in the url when editing it). Post e.g. the result of
Code: Select all
grep "Host\[42\]" cacti.log
Reinhard
Who is online
Users browsing this forum: No registered users and 0 guests