Device Status = Unknown
Moderators: Developers, Moderators
Device Status = Unknown
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.
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
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.
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
-
- Posts: 3
- Joined: Fri Jun 01, 2007 4:24 pm
- Location: Rio de Janeiro
- Contact:
-
- Posts: 10
- Joined: Tue May 29, 2007 6:09 pm
- Location: lake of constance
- Contact:
yes i have this problem too
but to resolved it
i give rights on cacti folders to cacti users
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)
|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)
-
- Posts: 3
- Joined: Fri Jun 01, 2007 4:24 pm
- Location: Rio de Janeiro
- Contact:
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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.
TheWitness
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
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?
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?
Re: Device Status = Unknown
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
#*/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
- LucasGrzybowski
- Posts: 3
- Joined: Wed Jan 21, 2015 11:29 am
Re: Device Status = Unknown
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
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
IT Specialist
Who is online
Users browsing this forum: No registered users and 0 guests