No Graphs SNMP Not working muli part question

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

king_x
Posts: 16
Joined: Wed Jun 14, 2006 2:49 pm
Contact:

No Graphs SNMP Not working muli part question

Post by king_x »

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
king_x
Posts: 16
Joined: Wed Jun 14, 2006 2:49 pm
Contact:

Post by king_x »

Anyone? Or maybe point me to a walkthrough for snmp for cacti
TarkaDhal
Posts: 4
Joined: Thu May 18, 2006 5:33 am

Post by TarkaDhal »

Have you checked that the permissions for the cacti directories and files on the new box are set up the same as the previous box?

It may be worth trying to copy over the old files again and not upgrade it until you can see it working in the same way it was before.
User avatar
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

Post by gandalf »

king_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...
SNMP Error shows that the target device does not respond to SNMP. Check this by

Code: Select all

snmpwalk -c <community> -v 1 <target> system[code]
Reinhard
king_x
Posts: 16
Joined: Wed Jun 14, 2006 2:49 pm
Contact:

Post by king_x »

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?
king_x
Posts: 16
Joined: Wed Jun 14, 2006 2:49 pm
Contact:

Post by king_x »

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?
king_x
Posts: 16
Joined: Wed Jun 14, 2006 2:49 pm
Contact:

Post by king_x »

Update.... poller only runs when i force it... and despite cactiuser having ownership of logs and rra

i still cant clear the snmp cache or

the cacti log through the console. still says "Error: Unable to clear log, no write permissions."
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

king_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?
Login as cactiuser. Run exactly the command found in crontab from command line. As you already put in /usr/local/bin/php, thjis should be

Code: Select all

/usr/local/bin/php /usr/local/apache2/htdocs/cacti-0.8.5a/poller.php
(Well, I'm wondering about the stone-old cacti version. Or is it a reminescence to your first installation?). Watch out for errors.
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
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.
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
king_x
Posts: 16
Joined: Wed Jun 14, 2006 2:49 pm
Contact:

Post by king_x »

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
Attachments
untitled.jpg
untitled.jpg (89.4 KiB) Viewed 12356 times
config.jpg
config.jpg (520.98 KiB) Viewed 12356 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

lvm wrote:
king_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?
Login as cactiuser. Run exactly the command found in crontab from command line. As you already put in /usr/local/bin/php, thjis should be

Code: Select all

/usr/local/bin/php /usr/local/apache2/htdocs/cacti-0.8.5a/poller.php
(Well, I'm wondering about the stone-old cacti version. Or is it a reminescence to your first installation?). Watch out for errors.
Reinhard
Please also note my second to last post ...
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
where 42 is replaced by the <ID> from above.
Reinhard
king_x
Posts: 16
Joined: Wed Jun 14, 2006 2:49 pm
Contact:

Post by king_x »

i actually took the links down, u must have read it before i did attachments, sorry about that.

if i run the following

grep "Host\[149\]" cacti.log

i get absolutely no data returned...

if i run
grep "[149\]" cacti.log


i get a whole bunch of stuff returned.

would you like to see that?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yep
Reinhard
king_x
Posts: 16
Joined: Wed Jun 14, 2006 2:49 pm
Contact:

Post by king_x »

heres the output that i printed to a file
Attachments
test.txt
Heres the log
(66.09 KiB) Downloaded 159 times
Last edited by king_x on Thu Jun 15, 2006 2:30 pm, edited 1 time in total.
king_x
Posts: 16
Joined: Wed Jun 14, 2006 2:49 pm
Contact:

Post by king_x »

took down the garbled mess i did a quote on... gotta get used to attaching things... anyway u can see it above
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests