Odd Installation Problem

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

Moderators: Developers, Moderators

research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

yes, it cant write sessions to /tmp .. it says "no such file or directory for /tmp/sessionID"

hmm , /tmp is 777 what else we can do ?
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

created a tmp directory under /var/www and its worked.

and I can guess why its worked now, because the apache comes with openbsd by default and its already chrooted :) And I forgat that.

Thanks rony for your great help.

I hope this topic could help other obsd problems with cacti :)

Thanks again
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

Well, now I'm having problem with SNMP I guess.

I cant retrieve the graphs. Also while adding device it says " SNMP error "

net-snmp is installed , maybe need some configurations? if so , like?
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/htdocs/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/htdocs/cacti/resource/snmp_queries/interface.xml'

---

is it good or bad?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ah, for future reference, you had to create /var/www/tmp because apache is running in a chroot.

I didn't notice support for snmp installed in php. So, you have to use the net-snmp binaries. Because you are using a chroot, you have to link or copy snmpget and snmpwalk into a directory in the chroot and change the path in cacti to be relative to the chroot directory.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

well I copied snmpwalk and snmpget into /var/www/htdocs/cacti

and changed the configuration from cacti , I still get snmp error while adding new device
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

The path to snmpget would be "/cacti/snmpget", is that what you put?

And I don't know if it will work right if you copy it... You may need more things to make it work right.

Might just be easier to get snmp support working in php.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

I think we are getting closer :D

This is the nmap results :

Open Ports:

80
169
199
514
3306
4500

, I see that snmpd is working , right ?

Here is my snmpd.conf which is located under /etc/snmp : ( maybe the file settings are wrong? )

---
syslocation
syscontact
sysservices 79
rocommunity public
agentuser root
agentgroup wheel
agentaddress 169

---

is there anything wrong with snmpd.conf ?
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

also installed php4-snmp

phpinfo shows:

snmp
NET-SNMP Support enabled
NET-SNMP Version 5.1.2

but cacti still doesnt shows the graph
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

any idea ?
Landstalker
Posts: 14
Joined: Wed Aug 24, 2005 11:11 am

Post by Landstalker »

You need to nmap for udp ports, not tcp.

Do a nmap -sU localhost to scan for udp ports.
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

I have fixed snmp problem, it can connect right now from udp 161.

but I think graphs are broken ?

I'm running chrooted apache.

Can someone please tell me what is wrong that its not creating graphs ?

Might be paths to snmpwalk , rrdtool ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Are you running poller.php from cron every 5 minutes?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Landstalker
Posts: 14
Joined: Wed Aug 24, 2005 11:11 am

Post by Landstalker »

I have a similar issue, cannot see any graphs, although I have one graph being created but only has one thin line of information in it for 12:30 which is weird. I've got my cron job running although cron reports the following:

Sep 22 13:55:01 nagios crond[11019]: (root) CMD (cactiuser /usr/local/httpd/php/bin/php /usr/local/httpd/htdocs/cacti/poller.php > /dev/null 2>&1)
research
Cacti User
Posts: 72
Joined: Tue Sep 20, 2005 9:27 am

Post by research »

Well this is the results..

crontab is running by root, that might be any problem?

"*/5 * * * * root php ....."

also I'm running chrooted apache

but rrdtool,snmpwalk,snmpget commands configured in cacti settings are :

for rrdtool : /usr/local/bin/rrdtool
for snmpwalk : / usr/local/bin/snmpwalk
for snmpget : /usr/local/bin/snmpget

---
2nd problem:
also I'm facing with the problem while trying to add graphs to a host:
Attachments
2nd Problem
2nd Problem
snmp.JPG (48.55 KiB) Viewed 1786 times
1st problem
1st problem
broken.JPG (22.88 KiB) Viewed 1788 times
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests