switch down...but is up

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

Moderators: Developers, Moderators

Post Reply
Mistake
Posts: 15
Joined: Fri Aug 03, 2007 5:27 am

switch down...but is up

Post by Mistake »

i have installed cacti on ubuntu...ok work....but some switchs appaer down -.- but is up....snmp work.....i dont' understand

and rrdtool dont create rrd file.....but for another yes -.- the chmod for rra directory is 777 :lol:


this is an error on log

08/08/2007 04:10:05 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id, rrd_name, time, output) values (20, 'traffic_out', '2007-08-08 16:10:05', '734146326')"
08/08/2007 04:10:05 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id, rrd_name, time, output) values (20, 'traffic_in', '2007-08-08 16:10:05', '3294382245')"

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

Post by TheWitness »

Looks at though you may have two cron instances running. If you installed from RPM, you may be interested in looking for a cron running both as the cactiuser and as root. Disable one of them.

This has nothing to do with the up/down issues. Goto Settings->Poller and choose the SNMP ping method.

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?
Mistake
Posts: 15
Joined: Fri Aug 03, 2007 5:27 am

Post by Mistake »

Looks at though you may have two cron instances running. If you installed from RPM, you may be interested in looking for a cron running both as the cactiuser and as root. Disable one of them.
i dont understand this :o i have installed cacti from apt-get

this is my crontab file

Code: Select all

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user	command

*/5 * * * * ubuntu php /usr/share/cacti/site/poller.php > /dev/null 2>&1
#

and this is the log of poller.php

Code: Select all

ubuntu@ubuntu-desktop:/usr/share/cacti$ php /usr/share/cacti/site/poller.php
08/09/2007 01:35:51 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/site/cmd.php 0 13]
08/09/2007 01:35:52 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/swtpa2_traffic_in_20.rrd --template traffic_in:traffic_out 1186659351:1359946215:770727498
08/09/2007 01:35:52 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/server_antivirus_traffic_in_12.rrd --template traffic_out:traffic_in 1186659351:957250210:29778739
08/09/2007 01:35:52 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/server_antivirus_errors_in_13.rrd --template errors_out:discards_out:discards_in:errors_in 1186659351:0:0:0:0
08/09/2007 01:35:52 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/sw1pa2_traffic_in_24.rrd --template traffic_in:traffic_out 1186659351:382094123:80365977
08/09/2007 01:35:52 PM - SYSTEM STATS: Time:1.1614 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:12 RRDsProcessed:4
OK u:0.00 s:0.00 r:0.10
ERROR: illegal attempt to update using time 1186659351 when last update time is 1186659351 (minimum one second step)
ERROR: illegal attempt to update using time 1186659351 when last update time is 1186659351 (minimum one second step)
ERROR: illegal attempt to update using time 1186659351 when last update time is 1186659351 (minimum one second step)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Mistake wrote:
Looks at though you may have two cron instances running. If you installed from RPM, you may be interested in looking for a cron running both as the cactiuser and as root. Disable one of them.
i dont understand this :o i have installed cacti from apt-get
replace yum in Larry's statement by apt-get. So you will have to have a look at /etc/cron.d/cacti or "crontab -e -u ubuntu" or the like to find the second crontab entry. Please deactivate one of both.
Reinhard
Mistake
Posts: 15
Joined: Fri Aug 03, 2007 5:27 am

Post by Mistake »

i have deleted /etc/cron.d/cacti

but is the same
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: switch down...but is up

Post by gandalf »

Are there still double entries like
Mistake wrote: 08/08/2007 04:10:05 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id, rrd_name, time, output) values (20, 'traffic_out', '2007-08-08 16:10:05', '734146326')"
08/08/2007 04:10:05 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id, rrd_name, time, output) values (20, 'traffic_in', '2007-08-08 16:10:05', '3294382245')"
And please post a screenshot
Reinhard
Mistake
Posts: 15
Joined: Fri Aug 03, 2007 5:27 am

Post by Mistake »

rizkimul
Posts: 1
Joined: Tue Aug 14, 2007 1:32 am
Location: Indonesia

Post by rizkimul »

Mistake, is your problem solved?

I've got a problem quite similar with yours, with these symptoms:
- some switchs appaer down, but is up
- snmp work
- rrdtool don't create rrd file.....but for another yes

But, there's nothing wrong in the log, only:
08/14/2007 01:37:35 PM - SYSTEM STATS: Time:152.7498 Method:cmd.php Processes:1 Threads:N/A Hosts:43 HostsPerProcess:43 DataSources:578 RRDsProcessed:291

And I don't have the double-cron issue.

So what? Do anyone know the solution?
IPServices
Posts: 5
Joined: Wed Aug 15, 2007 8:44 am
Location: UK

Post by IPServices »

We have the same problem as rizkimul. We have over 50 devices graphing without problem and then suddenly we can no longer get new devices to graph. One old device is also now having problems.

SNMP is fine and we can do a snmpwalk from cacti network gui. In the device list the new devices are show as down. The cmd poller runs for about 2 minutes and there is nothing obvious in the logs. There is enough disk space.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests