trying to install / configuring cacti on kubuntu

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

Moderators: Developers, Moderators

jpgeerets
Posts: 18
Joined: Mon Nov 28, 2005 4:33 pm

trying to install / configuring cacti on kubuntu

Post by jpgeerets »

hi folks,

im a bit sad....
i guess im to stupid for this program.
perhaps someone can talk me trough this

i tryed to install and configure cacti on kubuntu.
install seems to be ok, but configuring.....
i can make a new device, my wrt54g with ww-wrt firmware.
router works great! snmp also works
when i configure a new device, i choose generic snmp template.
it also gives me some snmp information.
but, then i cant see any graphs.....
i hope someone can help me.....

thanks in advance!!!
jpgeerets
Posts: 18
Joined: Mon Nov 28, 2005 4:33 pm

Post by jpgeerets »

i guess this is to difficult for all you....?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'm somewhat confused. Does your first host run well? Data Gathering ok, Graphing ok? Only second host not working?
Please switch to DEBUG mode (Settings) and look at <patch_cacti>/log/cacti.log for anything unusual.
Reinhard
jpgeerets
Posts: 18
Joined: Mon Nov 28, 2005 4:33 pm

Post by jpgeerets »

sorry for my late reaction.

non of my hosts works.
i guess i do something stupids, but i dont know what.

i hope someone can talk me trough this...

tia
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yes, I want to help. But I need more info. e.g. a screenshot from the device list showing all devices and the status of them. Then a screenshot of a single device from the device edit screen. At last a screenshot from the graphs display to have a look what is displayed (no graph, an empty graph, a weird graph or what).
Then, Please goto Settings and Switch logging to DEBUG. Run this at least for a single polling cycle and post your <path_cacti>/log/cacti.log (gzipped).
Reinhard
jpgeerets
Posts: 18
Joined: Mon Nov 28, 2005 4:33 pm

Post by jpgeerets »

hi Reinhard,

attacht 3 pics. i hope this will help.
the logs you asked for r all empty.

i guess the system is not polling...
is that possible?
where can i chek this?
when i look in:
system utilities - snmp cache, there is a lot of data
when i look in:
system utilities - poller cache, this is empty...

i hope you can give me some advice....

tia!!!
Jean-Paul
Attachments
devices.png
devices.png (19.83 KiB) Viewed 6129 times
devices-detail.png
devices-detail.png (74.19 KiB) Viewed 6129 times
graph.png
graph.png (11.36 KiB) Viewed 6129 times
settings-poller.png
settings-poller.png (57.36 KiB) Viewed 6129 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Status unknown will prevent generating rrds. Goto Settings and change Downed Host Detection to "SNMP - Reliable". Watch your device list. Host should go "up".
To get more info, please switch to DEBUG mode (see: Settings -> General -> Poller Logging Level). Run your cacti poller for at least one polling cycle. Then have a look at <path_cacti>/log/cacti.log to see what's going wrong.
Optionally delete the cacti.log before if it's too huge.
Reinhard
jpgeerets
Posts: 18
Joined: Mon Nov 28, 2005 4:33 pm

Post by jpgeerets »

i have changed the settings as you told.
the device state still is "unkown".

when i looked in:
- graph management
- select the device
- click on turn on graph debig mode
there comes a line said:

RRDTool Says:

ERROR: invalid rpn expression in: a,8,*

the logs stay empty.
al the logs i told in previous reply.

is it possible to force a poll?
somewhere a button which i can push "poll now"?

perhaps it is intersting to know....
the router is a wrt54G with dd-wrt firmware on .


greatings,
Jean-Paul
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may run the poller from command line. Simply copy the statement from crontab and see what happens.
Reinhard
jpgeerets
Posts: 18
Joined: Mon Nov 28, 2005 4:33 pm

Post by jpgeerets »

there is only 1 item in the crontab.
this is for log rotate.

so there is no for cacti.

i have looked for the user and for the user root.

Jean-Paul
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

To be more precise: cacti installation tells you to change _the_ crontab. You will have to call the poller from crontab to get the data.
crontab may be /etc/crontab, /etc/cron.d/cacti, crontab of user root, crontab of user cactiuser (and maybe more). rpm install for my redhat distro generates /etc/cron.d/cacti.

Reinhard
jpgeerets
Posts: 18
Joined: Mon Nov 28, 2005 4:33 pm

Post by jpgeerets »

ok,

i guess i made the correct device configs and graphs configs.

the only hting i can try is to completely un-install an re-install of the cacti and rrd tool.

i guess this will be something for tomorrow....

thanks!
Jean-Paul
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I would not advise you to do so. See installation docs on how to configure the crontab at http://www.cacti.net/downloads/docs/htm ... _unix.html for unix. See step 7 in there.
Reinhard
jpgeerets
Posts: 18
Joined: Mon Nov 28, 2005 4:33 pm

Post by jpgeerets »

ok,
your suggestion was to late..
the new install was already done, but, al your advise in previous posts i put in the new installation.
it seems im going a little further...
then i move the mouse over the "graphs", the cursos change in a little crossline. not the normal pointer.
i put in the stuff in the crontab.

the logs still keep empty.....

the cache poller now is going to be filled. there seems to be progress.

the device still is unknown. i dont knpw how to enable this.
i put it already to SNMP - Reliable.
stil the host status is unknown.

my crontab now looks like:
*/5 * * * * cacti php /usr/share/cacti/site/poller.php > /dev/null 2>&1

i guess this will be ok.

i hope the graphs r coming closer....
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

jpgeerets wrote:i put it already to SNMP - Reliable.
Good for now. Keep this.
my crontab now looks like:
*/5 * * * * cacti php /usr/share/cacti/site/poller.php > /dev/null 2>&1
i guess this will be ok.
That's fine.
Please switch to DEBUG mode (see: Settings -> General -> Poller Logging Level).
To have a test, run your cacti poller from command line:

Code: Select all

php /usr/share/cacti/site/poller.php
This may produce lots of output. In this case, redirect output to a file and examine this. In DEBUG mode, cacti tells you about every polling command cacti executes to get data. Perhaps you'll discover the problem; else post your log
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests