Unknown status

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

Moderators: Developers, Moderators

Post Reply
bdptcob
Posts: 16
Joined: Fri Feb 22, 2008 4:21 pm

Unknown status

Post by bdptcob »

I have a strange problem. I have a device that shows up as Status: Unknown. I can ping this machine from the cacti server. I can run an snmpwalk (snmpwalk -Os -c public -v 1 ldapserver system) on this machine from the cacti server. It was working in december, but since then, the os has been reinstalled and the server has a different functionality now. I have deleted the device from cacti and re-added it to no avail. Any help would be greatly appreciated.

P.S. This is our master ldap server. We have a slave ldap server. Same os, same snmp version, same snmpd config file and it works fine. The only difference in the machines is the master has openfire jabber chat running and a firewall. I've dropped the firewall and it does not make a difference.
bdptcob
Posts: 16
Joined: Fri Feb 22, 2008 4:21 pm

Post by bdptcob »

One more thing. If I go into Cacti's system utilities, there is entries for the machine in snmp cache, but nothing in poller cache. Now I'm really new to cacti and snmp in general so I may be missing something obvious. Thanks.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Which graphs/data source were created for the new target?
Reinhard
bdptcob
Posts: 16
Joined: Fri Feb 22, 2008 4:21 pm

Post by bdptcob »

ucd/net cpu usage, load average, memory usage.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

When editing the target, what do you see at the upper left corner (SNMP output). Please post it
Reinhard
bdptcob
Posts: 16
Joined: Fri Feb 22, 2008 4:21 pm

Post by bdptcob »

Atlas - Chat server (atlas.mycompany.com)
SNMP Information
System: Linux atlas.mycompany.com 2.6.9-67.ELsmp #1 SMP Fri Nov 16 12:48:03 EST 2007 i686
Uptime: 141948 (0 days, 0 hours, 23 minutes)
Hostname: atlas.mycompany.com
Location: LocalDataCenter
Contact: bdptcob bdptcob@mycompany.com
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So at least it answers to SNMP requests. What is your "Downed Host Detection" method (for cacti087, it's a per-host-setting, for earlier releases it's a global setting)
Reinhard
bdptcob
Posts: 16
Joined: Fri Feb 22, 2008 4:21 pm

Post by bdptcob »

It was set to ping but I changed it to ping and snmp and just snmp to no avail.
bdptcob
Posts: 16
Joined: Fri Feb 22, 2008 4:21 pm

Post by bdptcob »

Got it to show it as up by adding a data source. However, it's not graphing.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

bdptcob wrote:Got it to show it as up by adding a data source. However, it's not graphing.
Ok, I forgot to mention that adding at least one data source is required to even work on that host. Now, please follow second link of my sig for more help
Reinhard
mickh
Posts: 33
Joined: Tue Mar 11, 2008 12:50 pm

Post by mickh »

I've the same problem with two OpenBSD hosts I'm trying to graph. I tried all kind of combinations for the "Downed Device Detection":
  1. SNMP -- not working

    Code: Select all

    System: OpenBSD <hostname> 4.3 GENERIC#696 i386
    Uptime: 2250307 (0 days, 6 hours, 15 minutes)
    Hostname: <hostname>
    Location: 
    Contact: <user>@<hostname>
  2. Ping and SNMP -- not working (see above)
  3. Ping -- working, with Ports 22/tcp (ssh); because Port 23/tcp/udp (telnet) are disabled
If I use ICMP I get the following error messages (and yes, any user on my box is allowed to use ping/ICMP):

Code: Select all

Warning: socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted in /var/www/cacti/lib/ping.php on line 158
Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /var/www/cacti/lib/ping.php on line 160
But even if I got the device to work, I'm curious why the SNMP-"ping" doesn't work. Any ideas?

Thanks(M)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

ICMP requires root privileges or setuid.
SNMP should work, at least if you plan to use SNMP type queries/templates. My advice is to focus on SNMP. And as the SNMP information shows up on the device edit screen, we should get it.
Reinhard
mickh
Posts: 33
Joined: Tue Mar 11, 2008 12:50 pm

Post by mickh »

@Gandalf, I did a "su - cactiuser" and executed "ping" and "cacti/scritps/ping.pl" with ICMP and it worked. Therefore I'm quite shure that ping.php (which I couldn't try from the command line) should work with ICMP as well. Also, please consider the errors of ping.php I posted above.

What else can I do to further debug the case that the SNMP availability-check is not working? Besides from showing the above posted info, what MIB/OID is CACTI checking for the SNMP availablility check?

Thanks(M)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

mickh wrote:What else can I do to further debug the case that the SNMP availability-check is not working? Besides from showing the above posted info, what MIB/OID is CACTI checking for the SNMP availablility check?

Thanks(M)
Cacti executes a getnext request on OID .1 and .1.3, AFAIK.
Are you using spine? There's a nice debug mode with spine that will help
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests