Device Status "Unknown"...why???

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Device Status "Unknown"...why???

Post by DevilSun »

This is a device I had previously setup in 0.8.5 and had it disabled. I deleted it, and a few days later I re-added it now that I have 0.8.6. The device exists, is contactable via both pinging and SNMP yet shows up as "Unknown" status when I list devices and am not getting any graphs for it.

I have only the SNMP-Interface Stats Data Query setup for it, and the status of that dq is "Success [209 Items, 26 Rows]". I do a verbose query, and everything is correct. I added graphs to the device all fine and dandy but they're not getting created because the device is in an unknown state. I've disabled and re-enabled the device. Done everything I can think of, and it's still unknown after the device has been in Cacti overnight.

Poller settings are "Ping" because I have a few devices that don't respond to strict SNMP info (Win2003 hardened domain controllers), and the ping type was UDP. I just switched it to ICMP, but I don't see why this would be a problem.

What else could be causing this device to be "Unknown" status to Cacti?

Win2003 w/ IIS6
Cacti 0.8.6
MySQL 4.0.20a
PHP 4.3.7.7
Perl 5.8.4.810
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Oh yeah, using the cmd.php poller too not cactid. Not having any problems with any other devices.
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

I'm sorry, is this too complex of a problem to get any input or do I happen to get the weird problems that no one has ever seen before?
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

TTT once again...switch has been in Cacti and enabled for 3 days now, still showing up as "Unknown" even though the device is pingable and return SNMP data...
addlema
Cacti User
Posts: 81
Joined: Wed Aug 18, 2004 8:26 am
Location: Bloomington, IN
Contact:

Post by addlema »

Actually i have this same sort of problem.. I have 3 devices that were listed as UP in Cacti, they then went down, and now have been up for 5 days but Cacti still lists them as down...

Also i have had a device in Cacti Recovering for about 3 days now...

Also 2 devices I added on Monday have not left here unknown status yet...

Cacti .0.8.6 on Gentoo
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

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

Post by TheWitness »

DevilSun,

Just read this one for the first time. I believe that there may be an issue with PHP that is causing this problem. Run cmd.php from the command line in LOW and see if you are getting PHP warning messages.

This is likely causing the problem. Post your results. Also, verify that the sockets extension is built into PHP if you are running Unix or the php_sockets.dll extension included in the php.ini file. This is required if you are using either UDP or ICMP.

Thanks,

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?
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

I have 14 hosts, however when I ran it under Medium so I could see results, it appears 1, if not 2 hosts are never showing up as being polled, i.e. doesn't seem to be gathering data for them which is fairly odd.

Zero warnings...PHP sockets is good to go as well.

Code: Select all

Content-type: text/html
X-Powered-By: PHP/4.3.7

#!/usr/bin/php -q
10/06/2004 11:43:24 AM - CMDPHP: Poller[0] Time: 55.2745 s, Theads: N/A, Hosts: 14
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Here's something even more weird, here's what's in my log file for poller.php

Code: Select all

10/06/2004 12:55:36 PM - SYSTEM STATS: Time: 36.3913 s, Method: cmd.php, Processes: 4, Threads: N/A, Hosts: 15, Hosts/Process: 4 
cmd.php reports 14 hosts, poller.php says 15?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

DevilSun,

We have a temporary workaround in cmd.php to address non-host based data sources. This feature is depricated but was supported in the earliest versions of CACTI. Therefore, we are including Host ID 0 which only exists in those cases.

We are discouraging users from using this method since with CACTI 0.8.6x we are checking the status of the host prior to wasting time polling a downed host.

Bottom line is that your host count is therefore 1 higher than the total number of hosts. It's stupid, but true. I think I'll change it now.

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?
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

So did I do something wrong by setting up this Dell Switch as opposed to previously when you weren't checking for downed hosts?

I just upgraded to 0.8.6b BTW and giving it a few cycles...

What is the temporary work around, is it included in "b", and does it fix my problem or are we still trying to fix my problem? If it's any help, the switch worked prior to any 0.8.6 which is when you introduced polling only if the device is up I beleive.

Would it be possible for future versions to be able to turn off downed host detection?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

DevilSun,

Send me a complete debug log via e-mail at larryjadams@comcast.net. This does not make sense and I need to browse the code. Also, try using cactid for a few cycles and see if the devices becomes UP.

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?
mondaka
Posts: 18
Joined: Wed Mar 03, 2004 7:47 pm

Post by mondaka »

Hi,

Did you find a solution for this problem. I got something similar with version 0.8.6e, any device added becomes Unknown.

I tried with setting more timeout, deleting then adding, clearing poller cache, clearing snmp statistics, and nothing works.

Regards,

|PHP 5.0.4 | MySQL 4.1.12-log | Net-SNMP 5.2.1 | RRDtool 1.2.6 | Apache 2.0.54 | Cacti 0.8.6e | Cactid 0.8.6e| Solaris 8 |
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Nope, no solutions, any of these devices which were "Unknown" status can never be re-added and work. I've almost given up and want to start from scratch, although it'd be a super pain in the arse.
User avatar
ichoudhury
Posts: 46
Joined: Tue May 31, 2005 8:18 am

Post by ichoudhury »

I get that too with certain servers. I go to the server and restart SNMP service and that seems to resolve the issue.
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests