|
|
| Author |
Message |
Teecee
Joined: 28 Feb 2006 Posts: 34
|
Posted: Tue Jul 11, 2006 5:03 pm Post subject: New install cacti status unknown |
|
|
| Quote: | Cacti Version - 0.8.6h
Poller Type - CMD.php
Server Info - Linux 2.6.15-25-386
Web Server - Apache/2.0.55 (Ubuntu) PHP/5.1.2
PHP - 5.1.2
PHP Extensions - xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, soap, SPL, shmop, session, Reflection, posix, mime_magic, mbstring, iconv, hash, gettext, ftp, filepro, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, snmp, mysql, mysqli
MySQL - 5.0.22-Debian_0ubuntu6.06-log
RRDTool - 1.2.11
SNMP - 5.2.1.2
PluginsHost Info (hostinfo - v0.1)
npc - v0.1
Network Tools (tools - v0.2)
Update Checker (update - v0.2)
Device Monitoring (monitor - v0.6)
Network Discovery (discovery - v0.5) |
Above is my cacti info. I have Ubuntu 6.06 installed on a vmware machine. The VM main OS is windows 2003. This is a new install. I have cacti and nagios installed on this server. The problem is I am getting a status unknown on the device page. I know the device is up and SNMP is working on the device because I look at my old install of cacti which I still have up and running and the status says up and I get SNMP info.
Now for the local host which is the only device after an install, that says up, but all the other devices say unknown. Any ides why? If I click on the ap07 device I do get SNMP info in the top corner.
| Description: |
|
| Filesize: |
11.52 KB |
| Viewed: |
2406 Time(s) |

|
| Description: |
|
| Filesize: |
19.92 KB |
| Viewed: |
2406 Time(s) |

|
|
|
| Back to top |
|
 |
cigamit Developer
Joined: 07 Apr 2005 Posts: 946 Location: B/CS Texas
|
Posted: Tue Jul 11, 2006 11:51 pm Post subject: |
|
|
You get SNMP info, so it seems that Cacti is at least able to do some type of communication to the device, so we can rule out you having the VMWare adapter setup incorrectly.
Can you ping the host from the Cacti machine? Do you have the Downed Host Detection (under Settings >> Poller) set to SNMP, SNMP and Ping, or Ping?
Also, nice to see you use the Hostinfo plugin for its intended purpose!
|
|
| Back to top |
|
 |
Teecee
Joined: 28 Feb 2006 Posts: 34
|
Posted: Wed Jul 12, 2006 10:32 am Post subject: |
|
|
| cigamit wrote: | You get SNMP info, so it seems that Cacti is at least able to do some type of communication to the device, so we can rule out you having the VMWare adapter setup incorrectly.
Can you ping the host from the Cacti machine? Do you have the Downed Host Detection (under Settings >> Poller) set to SNMP, SNMP and Ping, or Ping?
Also, nice to see you use the Hostinfo plugin for its intended purpose! |
Yes I can ping the host from the Cacti machine. My settings for down host detection WERE set to SNMP only and UDP. I have changed them to ping and SNMP and ICMP. Now I am getting a ms response to the local host but the others are still at uknown.
| Description: |
|
| Filesize: |
19.3 KB |
| Viewed: |
2370 Time(s) |

|
| Description: |
|
| Filesize: |
9.6 KB |
| Viewed: |
2370 Time(s) |

|
|
|
| Back to top |
|
 |
growntree
Joined: 12 Jul 2006 Posts: 3
|
Posted: Wed Jul 12, 2006 10:45 am Post subject: It just takes ages... |
|
|
I had exactly the same problem. It just took ages to appear (about 2 hours).
If you go into discover your servers should be listed and if anything like mine should show as up even though in devices they show as unknown.
I added both ESX servers from discover, but they took about 2 hours from them to change from unknown to up in devices.
|
|
| Back to top |
|
 |
Teecee
Joined: 28 Feb 2006 Posts: 34
|
Posted: Wed Jul 12, 2006 10:52 am Post subject: Re: It just takes ages... |
|
|
| growntree wrote: | I had exactly the same problem. It just took ages to appear (about 2 hours).
If you go into discover your servers should be listed and if anything like mine should show as up even though in devices they show as unknown.
I added both ESX servers from discover, but they took about 2 hours from them to change from unknown to up in devices. |
Well discover isnt picking up anything yet. Is ICMP the best way to do discover? I also ented my ip range as 192.168.0.0/255.255.240.0.
I will wait a bit and see what happens. We are at an hour right now with status still unknown.
|
|
| Back to top |
|
 |
Teecee
Joined: 28 Feb 2006 Posts: 34
|
Posted: Wed Jul 12, 2006 1:10 pm Post subject: |
|
|
| Several hours later and the status is still unknown.
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Wed Jul 12, 2006 2:35 pm Post subject: |
|
|
| Poller running? Make sure that it is running.
|
|
| Back to top |
|
 |
Teecee
Joined: 28 Feb 2006 Posts: 34
|
Posted: Wed Jul 12, 2006 3:00 pm Post subject: |
|
|
| rony wrote: | | Poller running? Make sure that it is running. |
I would assume it is.
Is there a way I can double check to make sure it is? Treat me as a noob because I am when it comes to linux.
| Description: |
|
| Filesize: |
32.7 KB |
| Viewed: |
2348 Time(s) |

|
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Wed Jul 12, 2006 3:05 pm Post subject: |
|
|
From the web interface, go to system utilities and view the Cacti log. What is the last SYSTEM STATS line you see, and it's time stamp?
See nothing, then the poller is not running.
|
|
| Back to top |
|
 |
Teecee
Joined: 28 Feb 2006 Posts: 34
|
Posted: Wed Jul 12, 2006 3:10 pm Post subject: |
|
|
Here is some of the lines that I see.
07/12/2006 03:10:04 PM - SYSTEM STATS: Time:2.3129 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
07/12/2006 03:05:03 PM - SYSTEM STATS: Time:2.0797 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
07/12/2006 03:00:04 PM - SYSTEM STATS: Time:2.2103 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
07/12/2006 02:55:04 PM - SYSTEM STATS: Time:2.0669 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
07/12/2006 02:50:02 PM - SYSTEM STATS: Time:1.0626 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
07/12/2006 02:45:03 PM - SYSTEM STATS: Time:1.0833 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
07/12/2006 02:40:03 PM - SYSTEM STATS: Time:1.0603 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
07/12/2006 02:35:02 PM - SYSTEM STATS: Time:1.0572 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
07/12/2006 02:30:04 PM - SYSTEM STATS: Time:2.0768 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Wed Jul 12, 2006 3:30 pm Post subject: |
|
|
What user is running the poller?
If you want to use ping, I suggest, reluctantly, that you run the poller as root.
|
|
| Back to top |
|
 |
Teecee
Joined: 28 Feb 2006 Posts: 34
|
Posted: Wed Jul 12, 2006 3:36 pm Post subject: |
|
|
| rony wrote: | What user is running the poller?
If you want to use ping, I suggest, reluctantly, that you run the poller as root. |
Here is where my lack of linux knowledge comes in. How do I find out what user is running poller?
|
|
| Back to top |
|
 |
Teecee
Joined: 28 Feb 2006 Posts: 34
|
Posted: Tue Jul 18, 2006 1:48 pm Post subject: |
|
|
| Bump...
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9691 Location: MI, USA
|
Posted: Tue Jul 18, 2006 3:18 pm Post subject: |
|
|
Teecee,
Follow the following procedure:
1) Goto Utilities and Select "View Poller Cache"
2) Verify that there are Data Sources for the hosts in question. If not, stop.
3) Turn logging to DEBUG
4) Open a shell as root/administrator and run "php <path_cacti>/cmd.php"
5) If you get responses, this is good. Look for host status information, like host is up, or host down skipping...
6) If you don't see bad information, then your issue would be permissions or local environment.
7) Next, as root/administrator, run "php poller.php", you should get lot's of "OK"'s.
If you failed step 2), then you likely have a database issue and should simply first check that you have all the patches applied, and if you do, reinstall your database. If running MySQL 5.x, make sure strict mode if off.
TheWitness
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|