SNMP Result: Host did not respond to SNMP

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

Moderators: Developers, Moderators

User avatar
mmartens
Cacti User
Posts: 110
Joined: Tue May 24, 2005 6:23 pm

SNMP Result: Host did not respond to SNMP

Post by mmartens »

Hi,

I'm not able to connect to the localhost to test cacti.
Fresh install
php 5
mysql
cacti version 0.8.6d
net-snmp 5.1.2 installed
snmp of Windows 2003 installed with public as community from any host.
rrdtool c:\rrdtool
cactid c:\cactid

here the last log entries of cacti.log and below that a screenshot of php.exe poller.php run:

Please HELP???
Thanks in advance,
Marcel

cacti.log
05/25/2005 04:05:51 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\cactid\cactid.exe, ARGS: 0 1]
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The log_destination variable is 1
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The path_php variable is c:\php\php.exe
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The availability_method variable is 1
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The ping_recovery_count variable is 3
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The ping_failure_count variable is 2
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The ping_method variable is 2
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The ping_retries variable is 1
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The ping_timeout variable is 400
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The log_perror variable is 1
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The log_pwarn variable is 0
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The log_pstats variable is 0
05/25/2005 04:05:52 PM - CACTID: Poller[0] DEBUG: The threads variable is 1
05/25/2005 04:05:52 PM - CACTID: Poller[0] CACTID: Version 0.8.6d starting
05/25/2005 04:05:52 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
05/25/2005 04:05:53 PM - CACTID: Poller[0] DEBUG: PHP Script Server Routine Started
05/25/2005 04:05:53 PM - CACTID: Poller[0] DEBUG: PHP Script Server About to FORK Child Process
05/25/2005 04:05:53 PM - CACTID: Poller[0] DEBUG: PHP Script Server Child FORK Success
05/25/2005 03:05:54 PM - PHPSVR: Poller[0] DEBUG: SERVER: cactid
05/25/2005 03:05:54 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/cactid
05/25/2005 03:05:54 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/inetpub/intranet/ict/cacti
05/25/2005 03:05:54 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\Inetpub\intranet\ICT\cacti\script_server.php
05/25/2005 03:05:54 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cactid
05/25/2005 04:05:54 PM - CACTID: Poller[0] DEBUG: Confirmed PHP Script Server Running
05/25/2005 04:05:54 PM - CACTID: Poller[0] DEBUG: Initial Value of Active Threads is 0
05/25/2005 04:05:54 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
05/25/2005 04:05:54 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
05/25/2005 04:05:54 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
05/25/2005 04:05:54 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
05/25/2005 04:05:54 PM - CACTID: Poller[0] DEBUG: The UDP Ping return_code was -1, errno was 104, total_time was 2.0001
05/25/2005 04:05:56 PM - CACTID: Poller[0] Host[1] PING Result: UDP: Host is Alive
05/25/2005 04:05:56 PM - CACTID: Poller[0] Host[1] SNMP Result: Host did not respond to SNMP05/25/2005 04:05:56 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='1',status_event_count='8', status_fail_date='0000-00-00 00:00:00',status_rec_date='0000-00-00 00:00:00',status_last_error='Host did not respond to SNMP, UDP: Host is Alive',min_time='9.999990',max_time='0.000000',cur_time='0.000000',avg_time='0.000000',total_polls='9',failed_polls='9',availability='0.0000' where id='1'

05/25/2005 04:05:56 PM - CACTID: Poller[0] Host[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
05/25/2005 04:05:56 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
05/25/2005 04:05:57 PM - CACTID: Poller[0] DEBUG: SQLCMD: replace into settings (name,value) values ('date',NOW())
05/25/2005 04:05:57 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())
05/25/2005 04:05:57 PM - CACTID: Poller[0] DEBUG: Thread Cleanup Complete
05/25/2005 04:05:57 PM - CACTID: Poller[0] DEBUG: PHP Script Server Shutdown Started
05/25/2005 04:05:57 PM - CACTID: Poller[0] DEBUG: PHP Script Server Pipes Closed
05/25/2005 04:05:57 PM - CACTID: Poller[0] DEBUG: Allocated Variable Memory Freed
05/25/2005 03:05:57 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
05/25/2005 04:05:57 PM - CACTID: Poller[0] DEBUG: MYSQL Free & Close Completed
05/25/2005 04:05:57 PM - CACTID: Poller[0] Time: 5.1900 s, Threads: 1, Hosts: 1
05/25/2005 04:05:57 PM - SYSTEM STATS: Time: 6.2556 s, Method: cactid, Processes: 1, Threads: 1, Hosts: 2, Hosts/Process: 2


PHP.exe poller.php:

C:\Inetpub\intranet\ICT\cacti>php.exe poller.php
C:/net-snmp/etc/snmp/snmp.conf: line 2: Warning: Unknown token: persistentDir.
C:/net-snmp/etc/snmp/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.

05/25/2005 04:14:43 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:\cactid\cactid.exe, ARGS: 0 1]
Waiting on 1/1 pollers.
c:\rrdtool\rrdtool.exe (2052): *** system shared memory version mismatch detecte
d - 0x75BE0074/0xFFFF0080.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
C:/net-snmp/etc/snmp/snmp.conf: line 2: Warning: Unknown token: persistentDir.
C:/net-snmp/etc/snmp/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.

Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
05/25/2005 04:14:48 PM - SYSTEM STATS: Time: 5.1040 s, Method: cactid, Processes
: 1, Threads: 1, Hosts: 2, Hosts/Process: 2

C:\Inetpub\intranet\ICT\cacti>php.exe poller.php
C:/net-snmp/etc/snmp/snmp.conf: line 2: Warning: Unknown token: persistentDir.
C:/net-snmp/etc/snmp/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.

05/25/2005 10:31:43 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:\cactid\cactid.exe, ARGS: 0 1]
Waiting on 1/1 pollers.
c:\rrdtool\rrdtool.exe (2396): *** system shared memory version mismatch detecte
d - 0x75BE0074/0xFFFF0080.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
C:/net-snmp/etc/snmp/snmp.conf: line 2: Warning: Unknown token: persistentDir.
C:/net-snmp/etc/snmp/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.

Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
05/25/2005 10:31:48 PM - SYSTEM STATS: Time: 5.1013 s, Method: cactid, Processes
: 1, Threads: 1, Hosts: 2, Hosts/Process: 2

C:\Inetpub\intranet\ICT\cacti>
[/b]
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

First, edit your snmpd.conf file and remove those two lines.

Then, if you are running a cygwin install already, either update it to the latest version and delete the files cygwin files in both your rrdtool and cactid locations and make sure that c:\cygwin\bin is in your path. Another option would be to completely uninstall cygwin and rely on the cygwin files in both directories.

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?
User avatar
mmartens
Cacti User
Posts: 110
Joined: Tue May 24, 2005 6:23 pm

Post by mmartens »

I have cygwin installed latest version (allready had)
Two lined removed from snmpd.conf.
added c:\cygwin\bin to path.

I started without the cygwin install and did not work so i installed the latest cygwin.

When i try the following:
C:\net-snmp\bin>snmpget -v 1 -c public 10.180.161.165 system
Timeout: No Response from 10.180.161.165.

Deleted all cygwin dll's from cactid and rrdtool.

still no connection possible.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is a problem with either your community string or the agent on the remote host.

TheWitness :wink:
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?
User avatar
mmartens
Cacti User
Posts: 110
Joined: Tue May 24, 2005 6:23 pm

Post by mmartens »

Thx for the quick reply.
I'm desperat to solve this problem and start using cacti.

It is on the localhost and not a remote host.

and below a screenshot of my snmp settings
Attachments
snmp.JPG
snmp.JPG (32.85 KiB) Viewed 7306 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

community strings are case sensitive. Did you use a capital P Cacti? Take a look at the polling cache and/or the polling debug output.
User avatar
mmartens
Cacti User
Posts: 110
Joined: Tue May 24, 2005 6:23 pm

Post by mmartens »

Thx that helped

now i see at devices the data of my servers.

now i have with php.exe poller.php only
waiting on 1/1 pollers
waiting on 1/1 pollers
waiting on 1/1 pollers
waiting on 1/1 pollers
end so on
do i need to check something else?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try this:

mysql -u root -p cacti
> truncate table poller_output;
> quit

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?
User avatar
mmartens
Cacti User
Posts: 110
Joined: Tue May 24, 2005 6:23 pm

Post by mmartens »

Thx for all the replies

solved the problem bij setten it to cmd.php instead of cacti.

I've bin able to view graphs of several servers for two days.

Now when i click on "graphs" it keeps loading and loading and not displaing any graph???

CPU is running 100% and no result what so ever.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I bet you are using rrdtool 1.2.8. I found this problem too and the fix in this thread.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

BSOD,

Tobi has released 1.2.9 that specifically fixes your problem with TTF fonts. Therefore, you should no longer experience this problem. You can pat yourself on the back. Tobi fixed the problem based upon your report :)

The new Cywgin version can be found here: http://www.cacti.net/downloads/rrdtool/ ... -1.2.9.zip

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?
User avatar
mmartens
Cacti User
Posts: 110
Joined: Tue May 24, 2005 6:23 pm

Post by mmartens »

Hi nice to hear that I helped to improve the product!!!

I updated to the latest RRDTOOL posted above and no result....

my font was allready set to "C:\Windows\fonts\arial.ttf

tried to set rrdtool to 1.0.x instead of 1.2.x but no result.

do you guys have anything else to try???

When i use the export option my graphs look like this with no text below it:
Attachments
graph_10_1.JPG
graph_10_1.JPG (16.58 KiB) Viewed 7169 times
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try another font file.

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?
User avatar
mmartens
Cacti User
Posts: 110
Joined: Tue May 24, 2005 6:23 pm

Post by mmartens »

Hi i tried to set it to times.ttf now i see the graphs but it takes about 3 minutes to open the graphs from 1 server is this normal?

iis is running on a Pentium 3 xeon with 3 prossecors.
1 gb internal memory.

it is a dedicated web server windows web server 2003.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It all depends. RRDTool 1.2.x is slower than the previous versions. Tobi is investigating. However, I don't see any real fixes on the horizon.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests