Cactid not working

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
fkzouf
Posts: 8
Joined: Mon Jun 11, 2007 8:32 am

Cactid not working

Post by fkzouf »

Hello,

I installed mysql and snmp devel files and i followed the install procedure, anyways i get the attached cacti log file.

and if i execute manually the binary cactid i get this :

Code: Select all

CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6i starting
No log handling enabled - turning on stderr logging
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
Unlinked OID in IANAifType-MIB: ianaifType ::= { mib-2 30 }
Undefined identifier: mib-2 near line 7 of /usr/share/snmp/mibs/ifType.my
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
Unlinked OID in IANAifType-MIB: ianaifType ::= { mib-2 30 }
Undefined identifier: mib-2 near line 7 of /usr/share/snmp/mibs/ifType.my
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
Unlinked OID in IANAifType-MIB: ianaifType ::= { mib-2 30 }
Undefined identifier: mib-2 near line 7 of /usr/share/snmp/mibs/ifType.my
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
Unlinked OID in IANAifType-MIB: ianaifType ::= { mib-2 30 }
Undefined identifier: mib-2 near line 7 of /usr/share/snmp/mibs/ifType.my
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
....
Last point : i still have my poller php that launches himself every 5 minutes by the crontab, should i remove it from crontab ?


Cordially.
Attachments
log.txt
Logging with cactid
(4.63 KiB) Downloaded 417 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cactid not working

Post by gandalf »

fkzouf wrote:Hello,

I installed mysql and snmp devel files and i followed the install procedure, anyways i get the attached cacti log file.

and if i execute manually the binary cactid i get this :

Code: Select all

CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6i starting
No log handling enabled - turning on stderr logging
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
Unlinked OID in IANAifType-MIB: ianaifType ::= { mib-2 30 }
Undefined identifier: mib-2 near line 7 of /usr/share/snmp/mibs/ifType.my
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
Unlinked OID in IANAifType-MIB: ianaifType ::= { mib-2 30 }
Undefined identifier: mib-2 near line 7 of /usr/share/snmp/mibs/ifType.my
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
Unlinked OID in IANAifType-MIB: ianaifType ::= { mib-2 30 }
Undefined identifier: mib-2 near line 7 of /usr/share/snmp/mibs/ifType.my
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
Unlinked OID in IANAifType-MIB: ianaifType ::= { mib-2 30 }
Undefined identifier: mib-2 near line 7 of /usr/share/snmp/mibs/ifType.my
Undefined OBJECT-GROUP (snmpBasicNotificationsGroup): At line 692 in /usr/share/snmp/mibs/v2-mib.my
....
This only tells you that you have some broken mibs in your mib include directory. Not that unusual, to be honest. Cure it by exporting MIBS="" to avoid MIB loading. As a side effect, it will speed up processing.
Last point : i still have my poller php that launches himself every 5 minutes by the crontab, should i remove it from crontab ?
If you remove it, no data will be fetched from any target any more. I'm quite sure you will not want this
Reinhard
fkzouf
Posts: 8
Joined: Mon Jun 11, 2007 8:32 am

Post by fkzouf »

Hello Reinhard, thanks to answer so quickly

i did

Code: Select all

export MIBS=""
and now when i launch my cactid binary i just get this :

Code: Select all

CACTID:
Cordially.[/code]
Last edited by fkzouf on Fri Aug 24, 2007 9:10 am, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

From my cronatb:
-bash-3.00$ crontab -l
# delete MIB environment variable
MIBS=""
# -----------------------
# Cacti Poller
# -----------------------
*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php > /var/www/html/cacti/log/poller.log 2>&1
HTH
Reinhard
fkzouf
Posts: 8
Joined: Mon Jun 11, 2007 8:32 am

Post by fkzouf »

Cactid still can't poll all devices :(

Code: Select all

 08/24/2007 04:14:58 PM - SYSTEM STATS: Time:293.1700 Method:cactid Processes:1 Threads:1 Hosts:289 HostsPerProcess:289 DataSources:2311 RRDsProcessed:558
08/24/2007 04:14:58 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
08/24/2007 04:14:43 PM - CACTID: Poller[0] Host[76] DS[999] WARNING: SNMP timeout detected [500 ms], ignoring host '10.253.31.2'
08/24/2007 04:14:43 PM - CACTID: Poller[0] Host[76] DS[999] WARNING: SNMP timeout detected [500 ms], ignoring host '10.253.31.2'
08/24/2007 04:13:33 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:33 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:33 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:33 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:33 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:33 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:33 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:32 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:32 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:32 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
08/24/2007 04:13:32 PM - CACTID: Poller[0] Host[50] DS[779] WARNING: Result from SNMP not valid. Partial Result: ...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

First, incease threads to 10-15.
Next, use the procedure explained at the second link of my signature to find the OIDs that will not respond. Usually, they are not availabe from that very target. Please post your findings
Reinhard
danathane
Cacti User
Posts: 127
Joined: Thu May 03, 2007 9:03 am

Post by danathane »

Hello reinhard!!

I have a little problem with Cactid. when I run php poller.php, i have this result :

Code: Select all

CACTID: Host[1260] DS[14963] WARNING: SNMP timeout detected [500 ms], ignoring host 'x.x.x.x'
CACTID: Host[1260] DS[14970] WARNING: SNMP timeout detected [500 ms], ignoring host 'x.x.x.x'
CACTID: Host[1260] DS[14949] WARNING: SNMP timeout detected [500 ms], ignoring host '1x.x.x.x'
CACTID: Host[1260] DS[14956] WARNING: SNMP timeout detected [500 ms], ignoring host 'x.x.x.x'
CACTID: Host[1260] DS[14963] WARNING: SNMP timeout detected [500 ms], ignoring host 'x.x.x.x'


I have put the snmp timeout to 600, but It doesn't work and even if i change the snmp timeout value to 600, it still condiders that the timeout is set to 500. Do you have any trick for me please?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I already replied to the other post ...
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests