No logs, No rra, all devices status is unknown

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

Moderators: Developers, Moderators

Post Reply
colinn
Posts: 6
Joined: Fri Apr 21, 2006 4:57 am
Contact:

No logs, No rra, all devices status is unknown

Post by colinn »

I have Gentoo linux
PHP5
Apache2

All devices that i'm add, looks unknown status
but when i make verbose query it tell's me that all is ok
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/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'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Found item [ifIndex='7'] index: 7 [from value]
+ Found item [ifIndex='8'] index: 8 [from value]
+ Found item [ifIndex='9'] index: 9 [from value]
+ Found item [ifIndex='10'] index: 10 [from value]
+ Found item [ifIndex='11'] index: 11 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Down'] index: 2 [from value]
+ Found item [ifOperStatus='Down'] index: 3 [from value]
+ Found item [ifOperStatus='Down'] index: 4 [from value]
+ Found item [ifOperStatus='Down'] index: 5 [from value]
+ Found item [ifOperStatus='Up'] index: 6 [from value]
+ Found item [ifOperStatus='Down'] index: 7 [from value]
+ Found item [ifOperStatus='Down'] index: 8 [from value]
+ Found item [ifOperStatus='Up'] index: 9 [from value]
+ Found item [ifOperStatus='Up'] index: 10 [from value]
+ Found item [ifOperStatus='Up'] index: 11 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='Port 1 on Unit 1'] index: 1 [from value]
+ Found item [ifDescr='Port 2 on Unit 1'] index: 2 [from value]
+ Found item [ifDescr='Port 3 on Unit 1'] index: 3 [from value]
+ Found item [ifDescr='Port 4 on Unit 1'] index: 4 [from value]
+ Found item [ifDescr='Port 5 on Unit 1'] index: 5 [from value]
+ Found item [ifDescr='Port 6 on Unit 1'] index: 6 [from value]
+ Found item [ifDescr='Port 7 on Unit 1'] index: 7 [from value]
+ Found item [ifDescr='Port 8 on Unit 1'] index: 8 [from value]
+ Found item [ifDescr='Port 9 on Unit 1'] index: 9 [from value]
+ Found item [ifDescr='Port 10 on Unit 1'] index: 10 [from value]
+ Found item [ifDescr='ethernet switch low driver'] index: 11 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd(6)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 4 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 5 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 6 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 7 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 8 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 9 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 10 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 11 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='100000000'] index: 1 [from value]
+ Found item [ifSpeed='0'] index: 2 [from value]
+ Found item [ifSpeed='0'] index: 3 [from value]
+ Found item [ifSpeed='0'] index: 4 [from value]
+ Found item [ifSpeed='0'] index: 5 [from value]
+ Found item [ifSpeed='100000000'] index: 6 [from value]
+ Found item [ifSpeed='0'] index: 7 [from value]
+ Found item [ifSpeed='0'] index: 8 [from value]
+ Found item [ifSpeed='1000000000'] index: 9 [from value]
+ Found item [ifSpeed='10000000'] index: 10 [from value]
+ Found item [ifSpeed='10000000'] index: 11 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 1 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 2 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 3 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 4 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 5 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 6 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 7 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 8 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 9 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 10 [from value]
+ Found item [ifHwAddr='00:00:30:4F:43:7B:D0'] index: 11 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='20.1.2.10'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/home/colinn/cacti-0.8.6h/resource/snmp_queries/interface.xml'


I read everything in this forum? but nothing help me....
What else can i do?? Please help me..
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

have you run the poller once at least ?

It seems you miss the crontab entry : http://www.cacti.net/downloads/docs/htm ... _unix.html
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
colinn
Posts: 6
Joined: Fri Apr 21, 2006 4:57 am
Contact:

Post by colinn »

*/5 * * * * cactiuser php /home/colinn/cacti-0.8.6h/poller.php > /dev/null 2>&1
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you check (as cactiuser) that the /home/colinn directory is readable ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
colinn
Posts: 6
Joined: Fri Apr 21, 2006 4:57 am
Contact:

Post by colinn »

drwxr-xr-x 11 cactiuser cacti 4096 Apr 19 22:11 cacti-0.8.6h

You see, everything seemed to be ok..
but there is one strange thing, why all devices status is unknown
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you run the poller once by hand :

Code: Select all

$ php /home/colinn/cacti-0.8.6h/poller.php
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
colinn
Posts: 6
Joined: Fri Apr 21, 2006 4:57 am
Contact:

Post by colinn »

cactiuser@film /home/colinn $ php /home/colinn/cacti-0.8.6h/poller.php
bash: php: command not found

i have installed php by modules to apache.. how can i run it from command line
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I didn't see you were using Gentoo Linux :)

Add this to /etc/portage/package.use :

Code: Select all

dev-lang/php dba session ftp cli xml xsl posix sockets
You'll have to emerge PHP again...

By default, PHP5 comes without the CLI binary with Gentoo.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
colinn
Posts: 6
Joined: Fri Apr 21, 2006 4:57 am
Contact:

Post by colinn »

You are genius!!!!!!!!
Thank you very very much..
I'm own to you..
After emeging everything is ok..
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests