Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cactid not working

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
fkzouf



Joined: 11 Jun 2007
Posts: 8

PostPosted: Fri Aug 24, 2007 7:46 am    Post subject: Cactid not working Reply with quote

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:

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.



log.txt
 Description:
Logging with cactid

Download
 Filename:  log.txt
 Filesize:  4.63 KB
 Downloaded:  197 Time(s)

Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Fri Aug 24, 2007 8:56 am    Post subject: Re: Cactid not working Reply with quote

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:

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.

Quote:
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
Back to top
fkzouf



Joined: 11 Jun 2007
Posts: 8

PostPosted: Fri Aug 24, 2007 9:05 am    Post subject: Reply with quote

Hello Reinhard, thanks to answer so quickly

i did
Code:

export MIBS=""


and now when i launch my cactid binary i just get this :
Code:

CACTID:


Cordially.[/code]


Last edited by fkzouf on Fri Aug 24, 2007 9:10 am; edited 1 time in total
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Fri Aug 24, 2007 9:10 am    Post subject: Reply with quote

From my cronatb:
Quote:
-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
Back to top
fkzouf



Joined: 11 Jun 2007
Posts: 8

PostPosted: Fri Aug 24, 2007 9:26 am    Post subject: Reply with quote

Cactid still can't poll all devices

Code:
 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: ...
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Fri Aug 24, 2007 2:15 pm    Post subject: Reply with quote

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
Back to top
danathane
Cacti User


Joined: 03 May 2007
Posts: 127

PostPosted: Wed Sep 05, 2007 9:01 am    Post subject: Reply with quote

Hello reinhard!!

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

Code:

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?
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Wed Sep 05, 2007 1:43 pm    Post subject: Reply with quote

I already replied to the other post ...
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group