snmp error?

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Herminator
Posts: 17
Joined: Mon Aug 22, 2005 11:46 am

snmp error?

Post by Herminator »

Here is my problem.
I installed everything by the manual.
When i run manually run poller.php at the command prompt it doesn't show errors but it won't put files in de rra directory so i won't show the images. Not even with the administrator account. So it isn't a security issue.
C:\cactid>c:\php\php.exe g:\www\cacti\poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.8

<br><strong>This script is only meant to run at the command line.</strong>
C:\cactid>

This is when i run cactid with debug mode on.
I have installed net-snmp from here http://net-snmp.sourceforge.net/ but it doens't respond. I don't understand why. How can i test if it works?
C:\cactid>cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: DEBUG: The path_php_server variable is
CACTID: DEBUG: The path_cactilog variable is g:\www\cacti\log\cacti.log
CACTID: DEBUG: The log_destination variable is 1
CACTID: DEBUG: The path_php variable is c:\php\php.exe
CACTID: DEBUG: The availability_method variable is 2
CACTID: DEBUG: The ping_recovery_count variable is 3
CACTID: DEBUG: The ping_failure_count variable is 2
CACTID: DEBUG: The ping_method variable is 2
CACTID: DEBUG: The ping_retries variable is 1
CACTID: DEBUG: The ping_timeout variable is 400
CACTID: DEBUG: The log_perror variable is 1
CACTID: DEBUG: The log_pwarn variable is 1
CACTID: DEBUG: The log_pstats variable is 1
CACTID: DEBUG: The threads variable is 1
CACTID: DEBUG: The polling interval is the system default
CACTID: DEBUG: The number of concurrent processes is 1
CACTID: DEBUG: The script timeout is 25
CACTID: DEBUG: StartHost='0', EndHost='0', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: CACTID: Version 0.8.6e starting
CACTID: MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
CACTID: CACTID: Initializing Net-SNMP API
CACTID: CACTID: Initializing PHP Script Server
CACTID: DEBUG: Parent pid=2244, Script Server pid=0
CACTID: DEBUG: Initial Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
CACTID: Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function

CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
CACTID: Host[1] SNMP Result: Host did not respond to SNMP
CACTID: DEBUG: SQLCMD: update host set status='1',status_event_count='25', statu
s_fail_date='0000-00-00 00:00:00',status_rec_date='0000-00-00 00:00:00',status_l
ast_error='Host did not respond to SNMP',min_time='9.999990',max_time='0.000000'
,cur_time='0.000000',avg_time='0.000000',total_polls='26',failed_polls='26',avai
lability='0.0000' where id='1'

CACTID: Host[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function

CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: SQLCMD: replace into settings (name,value) values ('date',NOW())
CACTID: DEBUG: SQLCMD: insert into poller_time (poller_id, start_time, end_time)
values (0, NOW(), NOW())
CACTID: DEBUG: Thread Cleanup Complete
CACTID: DEBUG: PHP Script Server Pipes Closed
CACTID: DEBUG: Allocated Variable Memory Freed
CACTID: CACTID: Shutting down Net-SNMP API
CACTID: DEBUG: MYSQL Free & Close Completed
CACTID: Execution Time: 2.8680 s, Threads: 1, Hosts: 2

C:\cactid>
I have checked everything and looked on the forums for solutions and tried everything but i can't solve my problem.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I suggest you use the Microsoft SNMP agent. You can use net-snmp snmpget or GetIF to test if snmp is working on the device.

PHP 4.4.0 is the latest, I suggest you upgrade.

No rrdfiles are being created, because cacti has not received any valid data (yet). You must run poller.php for this to happen. Only run cactid.exe for debugging purposes.
Herminator
Posts: 17
Joined: Mon Aug 22, 2005 11:46 am

Post by Herminator »

I have uninstalled net-snmp en installed the windows snmp
GetIF can't get an connecting with snmp


I have updated php to 4.4.0. I get this result.
C:\>c:\php\php g:\www\cacti\poller.php
Content-type: text/html
X-Powered-By: PHP/4.4.0

08/22/2005 11:27:23 PM - SYSTEM STATS: Time: 3.0561 s, Method: cmd.php, Processe
s: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 11, RRDs Processed
0

C:\>
Also i see
SNMP Information
SNMP error
In the host page.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Before you bother getting Cacti to try and collecting and data from that host, you will need getif or net-snmp snmpget to successfully get SNMP data.

Is there a firewall thats blocking the snmp traffic?
Herminator
Posts: 17
Joined: Mon Aug 22, 2005 11:46 am

Post by Herminator »

I have no firewall turned on.
I have everything installed on my local computer.

I have made these settings in my windows snmp service.
http://www.paessler.com/manuals/prtg_tr ... 000xp1.htm

Still no response in getif and in smtputil.

I can't figure out why its not working.

[Edit]
My 2003 server works fine now over the network
It looks like the service on my local computer won't install correctly.
It says
On or more services for the snmp component took more than their alloted time to start. Installatation will continue, but services will not be available until they have started completely.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests