n00b: poller.php under Debian

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

Moderators: Developers, Moderators

Post Reply
swmspam
Posts: 4
Joined: Sun Oct 24, 2010 10:34 am

n00b: poller.php under Debian

Post by swmspam »

I setup a Cacti box with a fresh install of Debian, apache2, mysql, php5, and installed cacti. The web interface came up right away, and setup a bunch of devices with SNMP data sources. No graphs. I'm logged into the cacti machine as root.

Code: Select all

# php /usr/share/cacti/site/poller.php
Runs without errors. I look into /var/lib/cacti/rra and there are no files. This may be a permission issue? I clear the permissions with a sledgehammer:

Code: Select all

# chmod -R 777 /var/lib/cacti/
Run poller.php again, but /rra/ directory remains empty.
swmspam
Posts: 4
Joined: Sun Oct 24, 2010 10:34 am

Re: n00b: poller.php under Debian

Post by swmspam »

After a couple hours, I noticed some files in the /rra/ directory. Screenshots attached of the Cacti web interface and the console.
Attachments
console.jpg
console.jpg (131.78 KiB) Viewed 961 times
Cacti_screenshot.jpg
Cacti_screenshot.jpg (72.26 KiB) Viewed 961 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: n00b: poller.php under Debian

Post by gandalf »

If you have run poller.php as root (or some user <> "cactiuser"), the rra files may have wrong permissions.
R.
swmspam
Posts: 4
Joined: Sun Oct 24, 2010 10:34 am

Re: n00b: poller.php under Debian

Post by swmspam »

I cleared all files:

Code: Select all

cd /var/lib/cacti/rra
rm *
Waited for the rra files to reappear. Cacti web interface has no change from my previously posted screenshot.

Additionally, I looked at the users:

Code: Select all

# cat /etc/passwd | cut -d":" -f1
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
www-data
backup
list
irc
gnats
nobody
libuuid
Debian-exim
statd
******
sshd
clamav
snmp
mysql
And now the cron.d file:

Code: Select all

MAILTO=root
*/5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: n00b: poller.php under Debian

Post by gandalf »

Debian systems unfortunately have their own user layout (which I do not know). So please follow 2nd link of my sig to learn more
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests