Windows XP New Install

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

Moderators: Developers, Moderators

DJ Prem
Posts: 16
Joined: Sun May 02, 2004 6:33 pm
Contact:

Post by DJ Prem »

For PHP I use the php4isap.dll and as told I have extracted and linked the snmpget and walk.

Could you verify the settings and tell me what is correct and what is wrong
Attachments
main.PNG
main.PNG (92.68 KiB) Viewed 4440 times
DJ Prem
Posts: 16
Joined: Sun May 02, 2004 6:33 pm
Contact:

Post by DJ Prem »

Dam!! I cant get this to work and the creator does not reply either....Gadhi can we do a remote assist session and try solve this?
Guest

Post by Guest »

well if your screen shot is correct, then you are missing the extention separator in snmpwalk.exe. That get's used to process the query i believe
DJ Prem
Posts: 16
Joined: Sun May 02, 2004 6:33 pm
Contact:

Post by DJ Prem »

I made that change rigth after posting the picture
Ghandi
Cacti User
Posts: 73
Joined: Tue May 04, 2004 5:09 am
Location: Graz / Austria

Post by Ghandi »

hmm.. mystery,

yes... send me an email with your ip adress and a time where i can connect.

my email is:

rene.pauly@bfi-stmk.at

greetings..
Lux
Cacti User
Posts: 195
Joined: Tue Nov 11, 2003 10:57 am
Location: Luxembourg

Post by Lux »

If you are using the SNMP version that Ghandi linked to earlier in this thread, then you should have Cacti set to UCD-SNMP and not NET-SNMP. There isn't a major difference between the two, but some of the command options are different.

Once you get this working, don't forget to uncheck atleast the SNMP logging option. This will very quickly fill up your HD (I had over a 500MB log file before I discovered this....).

Also, what version of Cacti are you running? I had loads of problems with 0.8.5 (I always received the red SNMP ERROR message when I added a device), but 0.8.5a seemed to fix everything.

Are you certain that you have the correct community string for the devices that you are trying to poll? If you are infact using public as the read community string on that device, then change it as soon as possible. It simply isn't secure (not that SNMP is secure, but using the default community strings is sloppy). Also check to make sure that your cacti station is allowed to poll that device. Windows servers allow you to input a list of addresses that can poll it with SNMP.

I hope this helps.

Mike
Ghandi
Cacti User
Posts: 73
Joined: Tue May 04, 2004 5:09 am
Location: Graz / Austria

Post by Ghandi »

hmm.. in my cacti settings i use net-snmp 5.x, schould i also change this value?

in my case its runnig good :-?
Lux
Cacti User
Posts: 195
Joined: Tue Nov 11, 2003 10:57 am
Location: Luxembourg

Post by Lux »

It probably wouldn't hurt. I'm not even sure that it matters, as I can't imagine that cacti is passing many options to snmpwalk and get in the first place. Where it probably matters (complete speculation on my part) is with SNMPv3.

Mike
DJ Prem
Posts: 16
Joined: Sun May 02, 2004 6:33 pm
Contact:

Post by DJ Prem »

Hey!

I'm in the GMT timezone (UK) so let me know when it's convinient.

the cacti is @ http://premgi99.plus.com/cacti user/pass admin
Lux
Cacti User
Posts: 195
Joined: Tue Nov 11, 2003 10:57 am
Location: Luxembourg

Post by Lux »

DJPrem, I've taken a look at your installation (sorry, I know I wasn't exactly invited....). However, I have found something interesting for you. When you turn on graph debugging in the graph management screen you get the following error:

Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="DAN-NET Server - Traffic" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="c\:\inetpub\wwwroot\cacti/rra/main_traffic_in_54.rrd":traffic_in:AVERAGE DEF:b="c\:\inetpub\wwwroot\cacti/rra/main_traffic_in_54.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" 2>&1,rb): No error in c:\inetpub\wwwroot\cacti\lib\rrd.php on line 58



Warning: fgets(): supplied argument is not a valid stream resource in c:\inetpub\wwwroot\cacti\lib\rrd.php on line 72

A quick search of the Cacti board turned up a similar issue posted by Dieter at:

http://www.raxnet.net/board/viewtopic.p ... ight=popen

In short, he had a permissions problem between IIS and PHP. He didn't post a detailed description of his solution, but I'm certain that he would be willing to give you some help if you need it.

Mike
Ghandi
Cacti User
Posts: 73
Joined: Tue May 04, 2004 5:09 am
Location: Graz / Austria

Post by Ghandi »

thats support like class 1! ;)

lux for president! *hehe*
DJ Prem
Posts: 16
Joined: Sun May 02, 2004 6:33 pm
Contact:

Post by DJ Prem »

Gr8t! I've PM'd him now just gonna wait for a reply
User avatar
dieter
Cacti User
Posts: 164
Joined: Fri Feb 20, 2004 3:08 pm

Post by dieter »

Oops, I answered the wrong solution to the PM. Hadn't read this thread yet.

Not sure what helped because it has been a while that I met this problem. You can try 2 things.

1. giving rights to cmd.php to everyone. Right click, sharing and security and add the user Everyone giving read and execute privileges. (note that this is safe as far as you don't share your windows folder. Nobody can access the file cmd.exe although they COULD use it given that they could access it, which is not the case)

2. Let the website use another user then the standard IUSR_yourcomputername. This is how you do this: On the My Computer icon right click and choose manage. Go to services and applications -> internet information service. Now go to your virtual directory of the website and right click -> properties. Go to the Directory Security tab. There you find Anonymous Access and authentication control. Press edit and check the anonymous acces button. Use the button browse to enter the admin account. This should solve your problem.
DJ Prem
Posts: 16
Joined: Sun May 02, 2004 6:33 pm
Contact:

Post by DJ Prem »

I did as you to as shown in the screenshosts but it still does not generate the graphs and at the end i restarted IIS
Attachments
untitled.PNG
untitled.PNG (81.7 KiB) Viewed 4383 times
User avatar
dieter
Cacti User
Posts: 164
Joined: Fri Feb 20, 2004 3:08 pm

Post by dieter »

why are you making a virtual dir for rrdtool? cacti needs a virtual dir
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests