|
|
| Author |
Message |
Turbo_boy
Joined: 08 May 2008 Posts: 5
|
Posted: Thu May 08, 2008 6:28 am Post subject: [Solved] Reading win2k3 SNMP |
|
|
Hello there,
I got cacti running for about 3 weeks now without any problems (on my router traffic)
But now I want to add a remote win2k3 server to monitor it with traffic/hdd/memory etc.
Followed everything and some graphs just get made (without any data) but some of them just hang on pollers.
If I put the error message on HIGH I receive message about
waiting 1/1 pollers and cactiplus hangs and the poller stopt about 250 seconds later.
The hangs are on the Mount Partition Data Query.
The problem is Cactiplus so far I can see here...
I tried spine too, but even then it freez/hangs
Kind regards,
Turbo_boy |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6601 Location: WA, USA
|
Posted: Thu May 08, 2008 12:15 pm Post subject: |
|
|
1) read http://forums.cacti.net/viewtopic.php?t=11747 ENTIRELY and repost.
2) If you're using WMI scripts, they can drastically increase the time polling takes. you might consider upping the number of concurrent pollers to increase performance (but not too many!). |
|
| Back to top |
|
 |
Turbo_boy
Joined: 08 May 2008 Posts: 5
|
Posted: Thu May 08, 2008 12:53 pm Post subject: |
|
|
Oké..
Operating System: Windows 2003 Enterprise server
Webserver: Apache/2.2.8
Cacti: 0.8.7b
Spine: Fresh download
MySQL: 5.0.51a
PHP: 5.2.5
RRDTool (Cygwin or Win32 version): 1.2 Win32 version
Net-SNMP: 5.4.1-3
Cygwin (cygwin1.dll version):
Plugin Architecture: none
I don't use any WMI scripts, just NET-SNMP on the machine I want to monitor .
When increasing the amouth of poller it still doesn't work.
*edit*
The poller is being executed as Administrator as like the webserver does.
Debug from command line:
| Code: |
Waiting on 1/3 pollers.
05/08/2008 08:00:06 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceede
d. Exiting.
05/08/2008 08:00:06 PM - SYSTEM STATS: Time:58.6899 Method:cmd.php Processes:5 T
hreads:N/A Hosts:3 HostsPerProcess:1 DataSources:8 RRDsProcessed:4
Warning: pclose(): 77 is not a valid stream resource in C:\webserver\htdocs\cact
i\lib\rrd.php on line 57
05/08/2008 08:00:06 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/webserver/php/php.exe, ARGS: -q C:/webserver/htdocs/cacti/poller_comm
ands.php]
Loop Time is: 58.7094728947
Sleep Time is: 241.27137208
Total Time is: 58.7286279202
|
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6601 Location: WA, USA
|
Posted: Thu May 08, 2008 3:17 pm Post subject: |
|
|
| Looks like you've got some possible NTFS permission problems. Make sure the IUSR and IIS_WPG accounts have read/execute rights on all cacti files, rrdtool.exe, php.exe, spine.exe, and cmd.exe. |
|
| Back to top |
|
 |
Turbo_boy
Joined: 08 May 2008 Posts: 5
|
Posted: Thu May 08, 2008 3:54 pm Post subject: |
|
|
While..
I don't even have those users...
The poller is being runned under Administrator Account which is part of local domain.
When looking which program's stay running, its cmd.exe, snmpget.exe, rrdtool.exe
When closing snmpget.exe the scripts ends and graphs are there. But I don't
get why snmpget.exe hangs. So should that be too a NTFS problem? |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6601 Location: WA, USA
|
Posted: Thu May 08, 2008 9:52 pm Post subject: |
|
|
Those are standard users on a Windows 2003 system. Since you've apparently changed/removed them, it's now up to you to set the correct NTFS permissions on the required Cacti files.
Wait, you have a script calling snmpget? Why aren't you using PHP snmp? |
|
| Back to top |
|
 |
Turbo_boy
Joined: 08 May 2008 Posts: 5
|
Posted: Fri May 09, 2008 1:46 am Post subject: |
|
|
| BSOD2600 wrote: | | Those are standard users on a Windows 2003 system. Since you've apparently changed/removed them? |
I did a installation as standard never changed or removed any user from it. As I hear from a friend of my the accounts are created only if you install IIS which I didn't.
| BSOD2600 wrote: |
Wait, you have a script calling snmpget? Why aren't you using PHP snmp
|
How do I even use PHP snmp? Because I can't select that one by default in cacti poller settings... (I currently have cmd.php selected)
The snmpget.exe is from my net-snmp folder (which is a executable)
*edit update*
Oké I have searched some for the PHP snmp and find out that it is a php module which was commented out in my config. Now there are graphs, without any data.
When using the snmpget method after closing the snmpget.exe there was a graph too with grafics.
PS. I do receive some message about some functions aren't being found.. Could it be that it is that problem? |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6601 Location: WA, USA
|
Posted: Fri May 09, 2008 12:03 pm Post subject: |
|
|
| Turbo_boy wrote: | | I did a installation as standard never changed or removed any user from it. As I hear from a friend of my the accounts are created only if you install IIS which I didn't. |
Ah yes, thats correct. I forgot you had apache. Well in that case, the apache user account needs to have access to all those files/folders which typically the IUSR/IIS_WPG accounts receive. More information regarding those in my installation guide.
| Turbo_boy wrote: | Oké I have searched some for the PHP snmp and find out that it is a php module which was commented out in my config. Now there are graphs, without any data.
PS. I do receive some message about some functions aren't being found.. Could it be that it is that problem? |
What error messages? See if they're addressed in my FAQ (in the installation guide page). As for your lack of graphs, read http://docs.cacti.net/node/283 |
|
| Back to top |
|
 |
Turbo_boy
Joined: 08 May 2008 Posts: 5
|
Posted: Sat May 10, 2008 1:18 am Post subject: |
|
|
Hi there,
I enabled the PHP snmp and for some reason it works now.
About the error's they are that it can't find some functions of SNMP.
But I readed that I can ignore thouse
As I sayed, it works.
Thanks for your help. |
|
| Back to top |
|
 |
|