status Unknown with SNMP Downed Host Detection

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

Moderators: Developers, Moderators

Post Reply
fitz
Posts: 5
Joined: Wed Mar 21, 2007 4:51 pm

status Unknown with SNMP Downed Host Detection

Post by fitz »

Hello,

I have been using SNMP for Downed Host Detection for the last year and it has been working flawlessly. Recent I tried to added several new hosts and cacti is able to poll the host, but the Status says Unknown even though the Availability says 100%.

It's seems that when the status us Unknown no graphs are created or updated for that host which makes sense.

I have tried manually snmpwalking the hosts in question from the cacti server and get back results so I know it's not a firewall issue.

Can anyone help shed some light on this?

Thanks,
Sean
maw
Posts: 34
Joined: Wed Mar 07, 2007 2:26 am
Location: Vancouver, Canada

Post by maw »

Hi Fitz,

When you goto:
devices > device showing unknown >

does the new window show SNMP error in the top left?
:: FreeBSD6.2 - Apache 1.3.37+mod_ssl - PHP 5.2.1 - MySQL 5.0 ::
fitz
Posts: 5
Joined: Wed Mar 21, 2007 4:51 pm

Post by fitz »

Hi,

I do not see any SNMP errors for the host. It is able to get the basic info and it finds the usual items to graph (disk, network,etc).

I have attached a couple screen captures.

-Sean
Attachments
cacti-1.gif
cacti-1.gif (23.19 KiB) Viewed 4825 times
cacti-2.gif
cacti-2.gif (34.27 KiB) Viewed 4825 times
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

are you sure that the poller is running ?

Can you run it once by hand ? The status should then be "recovering" or "down".
[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]
fitz
Posts: 5
Joined: Wed Mar 21, 2007 4:51 pm

Post by fitz »

The poller is running as other graphs are updating and the cacti.log shows activity.

I can run it by hand, but it still shows this host a being unknown.

My install is on RHEL 4 with cacti-0.8.6h, cacti-cactid-0.8.6i, cacti-plugin-arch and net-snmp-5.1.2-11.

It has been working great until recently. No changes have been made except for trying to add new hosts.

-Sean
kdawg44
Posts: 7
Joined: Mon Mar 26, 2007 1:32 pm

Post by kdawg44 »

I am having the same issue except mine only occurs with Windows Hosts. My firewall and Linux hosts are up but the windows hosts show unknown even though they are walkable and are getting the SNMP information.

THanks for any suggestions.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

"unknown" is the initial status of a new device. It will not change until
- at least a single graph is defined for this host
- the poller sees this host as up (depending on "downed host detection")
Reinhard
fitz
Posts: 5
Joined: Wed Mar 21, 2007 4:51 pm

Post by fitz »

Is it possible that the poller can't complete polling before cron kicks off another job?

I now understand what changes Status, but I can't understand why the systems are stay unknown. As the availbilty is 100% and I can manually snmpwalk the server and get the results, but no graphs are created.

-Sean
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please follow hints of second link of my signature. This is some generic debugging stuff. I hope it will help you
Reinhard
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Run your poller in LOW and post a few log entries. Unknown will continue if you are using "cmd.php". If you use "cactid", then the host will appear Up/Down immediately, even if you don't have graphs.

If a device is not being polled due to timing, your overall polling will be right around 300 seconds due to the poller being terminated. That will show in your posted log.

This minor difference should be noted. Otherwise, Gandolf is correct.

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?
fitz
Posts: 5
Joined: Wed Mar 21, 2007 4:51 pm

Post by fitz »

I found switching from cactid to cmd.php fixed the problem.

I'd like to get working with cactid again.

I'll port some logs.

-Sean
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cool. The ball's in your court.

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?
bluephile
Posts: 4
Joined: Mon Apr 09, 2007 2:50 am

Post by bluephile »

I have the exact same problem as fitz. I'm using cmd.php. The logs show simply:

Code: Select all

SYSTEM STATS: Time:293.2785 Method:cmd.php Processes:2 Threads:N/A Hosts:5 HostsPerProcess:3 DataSources:17 RRDsProcessed:5
POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
SYSTEM STATS: Time:293.2683 Method:cmd.php Processes:2 Threads:N/A Hosts:5 HostsPerProcess:3 DataSources:17 RRDsProcessed:5
etc. etc.

Other hosts are working fine. I'm using SNMP & UDP Ping host downed detection. The appropriate SNMP info is showing on the device details page. Several graphs have been added for this host, but the rrds aren't being created.

Thanks,
bluephile

EDIT: I should mention that manually running the commands shown on the data source pages works; the rrds are created and the graphs are displayed. The rrds are only updated when I run the commands, however.

EDIT 2: I should also mention that all the other hosts that I'm monitoring are Linux & Windows, but this is an AIX host running net-snmp. Thanks!
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please insure you are running all the latest patches and that your path to snmpgetnext is valid.

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?
bluephile
Posts: 4
Joined: Mon Apr 09, 2007 2:50 am

Post by bluephile »

Just a status update, in case anyone stumbles across this: switching to SNMP version 2 for the host magically fixed the problem.

Thanks,
bluephile
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests