Device Status = Unknown

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

Moderators: Developers, Moderators

fadhil
Posts: 3
Joined: Wed May 30, 2007 4:43 am

Device Status = Unknown

Post by fadhil »

Hello everyone,

I'm having a problem with cacti on my Red Hat Enterprise Linux ES release 4 (Nahant Update 2). I'm trying to use cacti to monitor a several SNMP-based devices, such as routers and firewalls.
Status of my devices (including Localhost) is always Unknown (this isn't happening in my Debian 4 box), but the SNMP query to the agent is normal (i think). SELinux and firewall is disabled, PHP 5.1.6, net-snmp 5.1.2, mysql 5.0.27, rrdtool 1.2.18.
Because of that, the graph won't display, but on my debian, it's working nicely.

Is there anyone that could help me?

thanks b4.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Can you confirm that the poller is running every 5 minutes?
[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]
fadhil
Posts: 3
Joined: Wed May 30, 2007 4:43 am

Post by fadhil »

is it something like:
php <cactipath>/cmd.php?
i'm running it now, but only the localhost is Up (at least there's something Up), and other is Unknown.

Code: Select all

# php cacti/cmd.php
No log handling enabled - turning on stderr logging
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
05/31/2007 09:23:09 AM - CMDPHP: Poller[0] Time: 0.0743 s, Theads: N/A, Hosts: 2

fadhil
Posts: 3
Joined: Wed May 30, 2007 4:43 am

Post by fadhil »

problem solved!
thanks!!!
:D
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Would you please be so kind to report your solution? This will help others running into the same direction ...
Reinhard
wagnerluizrj
Posts: 3
Joined: Fri Jun 01, 2007 4:24 pm
Location: Rio de Janeiro
Contact:

Post by wagnerluizrj »

I have this problem too. How did you fix it?
Jarek_Brol
Posts: 10
Joined: Tue May 29, 2007 6:09 pm
Location: lake of constance
Contact:

Post by Jarek_Brol »

I have this problem too
Mika2006
Cacti User
Posts: 178
Joined: Thu May 03, 2007 2:25 am

Post by Mika2006 »

yes i have this problem too
but to resolved it
i give rights on cacti folders to cacti users
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
wagnerluizrj
Posts: 3
Joined: Fri Jun 01, 2007 4:24 pm
Location: Rio de Janeiro
Contact:

Post by wagnerluizrj »

I didn't resolved it. :(
I tried to change the owner of cacti folder to user cactiuser and give all rights with chmod 777 in this folder.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here is the bottom line. You "may" not have a problem.

1) If you are running cmd.php and have not graphs created, the device remains as unknown as it is not tested since it is not polled for anything.
2) If you are running cactid, it is tested always.

Running either cmd.php or poller.php from the command line always helps.

Code: Select all

php -q cmd.php <host_id1> <host_id2>

Code: Select all

php -q poller.php
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?
JOEGOR
Posts: 13
Joined: Tue Oct 13, 2009 11:59 pm

Post by JOEGOR »

I tried this 2 command but still not work... :(
Do you have any idea?
Thanks
coolest
Posts: 33
Joined: Wed Oct 14, 2009 3:52 am

Post by coolest »

Try using the chown cacti:cacti (assuming your using cacti as a user) the rra and logs directories. Then use the cacti user to run the cmd.php and poller.php.

Graph reads the rra files if you have different permission it won't show up.

Hope this help... :D
linux83
Cacti User
Posts: 70
Joined: Tue Oct 11, 2011 1:40 am

Re: Device Status = Unknown

Post by linux83 »

thanks for your feedback.


linux83
Cisco Networking
*LeArN To KnOw*
dmitso
Posts: 1
Joined: Sat Aug 17, 2013 5:18 am

Re: Device Status = Unknown

Post by dmitso »

In my case it was mistake from web tutorial, on how to put job in /etc/cron.d/cacti I copied everything and forgot to remove # in front of:
#*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1

so it should be
*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1

now it works
User avatar
LucasGrzybowski
Posts: 3
Joined: Wed Jan 21, 2015 11:29 am

Re: Device Status = Unknown

Post by LucasGrzybowski »

Hi guys!

I solve this issue changing in Settings > Poller ...
In Host Availability Setting Choose Ping to determine if a host is available for polling.

Done problem solved!

This problem is caused by SNMP which not works.

Best Regards

Lucas Grzybowski
IT Specialist
wagnerluizrj wrote:I have this problem too. How did you fix it?
Lucas Grzybowski
IT Specialist
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest