New install cacti status unknown

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

Moderators: Developers, Moderators

Post Reply
Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm

New install cacti status unknown

Post by Teecee »

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
Plugins
  • Host 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.
Attachments
devices.jpg
devices.jpg (19.92 KiB) Viewed 15171 times
ap07 snmp info
ap07 snmp info
ap07.jpg (11.52 KiB) Viewed 15171 times
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

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!
Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm

Post by Teecee »

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.
Attachments
Host Detection settings
Host Detection settings
hostdetect.jpg (9.6 KiB) Viewed 15135 times
devices.jpg
devices.jpg (19.3 KiB) Viewed 15135 times
growntree
Posts: 3
Joined: Wed Jul 12, 2006 9:08 am

It just takes ages...

Post by growntree »

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.
Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm

Re: It just takes ages...

Post by Teecee »

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.
Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm

Post by Teecee »

Several hours later and the status is still unknown.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Poller running? Make sure that it is running.
[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]
Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm

Post by Teecee »

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.
Attachments
Poller settings
Poller settings
poller.jpg (32.7 KiB) Viewed 15113 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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.
[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]
Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm

Post by Teecee »

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
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What user is running the poller?

If you want to use ping, I suggest, reluctantly, that you run the poller as root.
[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]
Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm

Post by Teecee »

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?
Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm

Post by Teecee »

Bump...
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
likefeel
Posts: 1
Joined: Fri Apr 16, 2010 5:27 am

thank~

Post by likefeel »

thank all
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest