Windows XP New Install
Moderators: Developers, Moderators
Windows XP New Install
I'm new to Cacti and I've installed it and it works but it does not create graphs and it comes with SNMP errors can some please help me troubleshoot the problem.
It's being using with IIS
It's being using with IIS
Hi,
sorry that i post my problem here, but i have the same problem, i use windows xp and IIS, i installed php, mysql, perl and cacti, everything is runnig but when i start cmd.php the following error message will shown
-------------------------------------------------------------------------------
Der Befehl "cat" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Content-type: text/html
X-Powered-By: PHP/4.3.6
command: perl C:\inetpub/scripts/linux_memory.pl MemFree:, output:
Der Befehl "cat" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
command: perl C:\inetpub/scripts/linux_memory.pl SwapFree:, output:
Der Befehl "uptime" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
MULTI command: perl C:\inetpub/scripts/loadavg_multi.pl, output: 1min: 5min: 10m
in:
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value:
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value:
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value:
Der Befehl "who" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
command: perl C:\inetpub/scripts/unix_users.pl, output:
Der Befehl "ps" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
command: perl C:\inetpub/scripts/unix_processes.pl, output:
Das System kann die angegebene Datei nicht finden.
snmp: 10.10.10.2:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value:
Das System kann die angegebene Datei nicht finden.
snmp: 10.10.10.2:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value:
Das System kann die angegebene Datei nicht finden.
snmp: 10.10.10.2:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value:
Das System kann die angegebene Datei nicht finden.
snmp: 10.10.10.2:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value:
update c:\inetpub/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:U
update c:\inetpub/rra/localhost_mem_swap_4.rrd --template mem_swap N:U
update c:\inetpub/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:l
oad_15min N:::
update c:\inetpub/rra/localhost_users_6.rrd --template users N:U
update c:\inetpub/rra/localhost_proc_7.rrd --template proc N:U
update c:\inetpub/rra/zentraler_router_traffic_in_9.rrd --template traffic_in:tr
affic_out N::
update c:\inetpub/rra/zentraler_router_traffic_in_10.rrd --template traffic_in:t
raffic_out N::
time: 0
------------------------------------------------------
and no graphs will be displayed! i hope anyone can help me, sorry for my bad english...
lg ghandi
sorry that i post my problem here, but i have the same problem, i use windows xp and IIS, i installed php, mysql, perl and cacti, everything is runnig but when i start cmd.php the following error message will shown
-------------------------------------------------------------------------------
Der Befehl "cat" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Content-type: text/html
X-Powered-By: PHP/4.3.6
command: perl C:\inetpub/scripts/linux_memory.pl MemFree:, output:
Der Befehl "cat" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
command: perl C:\inetpub/scripts/linux_memory.pl SwapFree:, output:
Der Befehl "uptime" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
MULTI command: perl C:\inetpub/scripts/loadavg_multi.pl, output: 1min: 5min: 10m
in:
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value:
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value:
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value:
Der Befehl "who" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
command: perl C:\inetpub/scripts/unix_users.pl, output:
Der Befehl "ps" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
command: perl C:\inetpub/scripts/unix_processes.pl, output:
Das System kann die angegebene Datei nicht finden.
snmp: 10.10.10.2:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value:
Das System kann die angegebene Datei nicht finden.
snmp: 10.10.10.2:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value:
Das System kann die angegebene Datei nicht finden.
snmp: 10.10.10.2:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value:
Das System kann die angegebene Datei nicht finden.
snmp: 10.10.10.2:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value:
update c:\inetpub/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:U
update c:\inetpub/rra/localhost_mem_swap_4.rrd --template mem_swap N:U
update c:\inetpub/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:l
oad_15min N:::
update c:\inetpub/rra/localhost_users_6.rrd --template users N:U
update c:\inetpub/rra/localhost_proc_7.rrd --template proc N:U
update c:\inetpub/rra/zentraler_router_traffic_in_9.rrd --template traffic_in:tr
affic_out N::
update c:\inetpub/rra/zentraler_router_traffic_in_10.rrd --template traffic_in:t
raffic_out N::
time: 0
------------------------------------------------------
and no graphs will be displayed! i hope anyone can help me, sorry for my bad english...
lg ghandi
Ghandi, you appear to have two separate issues.
All of the error messages are related to the default cacti installation. If you go into the devices section, you will see something titled Local host, or something like that. Simply delete this. The local host is for a unix based computer and it is trying to call a shell script. That's why you are seeing errors about "cat", "ps" and "who".....
Your second problem is that no data is being returned. There too many possabilities, so let me ask a few questions:
When you select devices and click on your central router, does the SNMP discovery work? (if it works you will see a section titled snmp Information at the top of your browser screen. It should show you the system, uptime, and hostname) If this doesn't work, then you need to troubleshoot your SNMP system.
If the above test succeeds, then check if you are using SNMP version 1, 2 or 3. Check the Cacti Settings --> path section for the path to your SNMP programs. If it says <DEFAULT> then you are using PHP snmp which only supports SNMP version 1. If you are polling your hosts with version 2 or 3 snmp then the polling will fail (but device discovery will still work).
If everything still works properly, then check the security on your router/firewall and make sure that your cacti machine is allowed to communicate with the router via SNMP.
If nothing else works, take a break, drink a beer, and then report the results of your tests to this board.
Mike
All of the error messages are related to the default cacti installation. If you go into the devices section, you will see something titled Local host, or something like that. Simply delete this. The local host is for a unix based computer and it is trying to call a shell script. That's why you are seeing errors about "cat", "ps" and "who".....
Your second problem is that no data is being returned. There too many possabilities, so let me ask a few questions:
When you select devices and click on your central router, does the SNMP discovery work? (if it works you will see a section titled snmp Information at the top of your browser screen. It should show you the system, uptime, and hostname) If this doesn't work, then you need to troubleshoot your SNMP system.
If the above test succeeds, then check if you are using SNMP version 1, 2 or 3. Check the Cacti Settings --> path section for the path to your SNMP programs. If it says <DEFAULT> then you are using PHP snmp which only supports SNMP version 1. If you are polling your hosts with version 2 or 3 snmp then the polling will fail (but device discovery will still work).
If everything still works properly, then check the security on your router/firewall and make sure that your cacti machine is allowed to communicate with the router via SNMP.
If nothing else works, take a break, drink a beer, and then report the results of your tests to this board.
Mike
hi,
first of all, thanks for your help, for me, cacti is a beautifull tool, if it works . user who are not good at administration unix machines, get a chance to make things which really interessting and important real
ok, i have delete all things in which unix stands, all data sources, all data import methods, all default devices and so on.
The snmp problem was php, because i used the cgi method of it, now i have installed the sapi php and change the default value from the paths to
c:\windows\system32\snmp.exe
now when i start cmd.php i can see following words....
-----------------------------------------------------------------------
c:\php\php.exe c:\inetpub\cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.6
snmp: 10.10.10.161:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value:
snmp: 10.10.10.161:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value
:
update c:\inetpub/rra/my_pc_traffic_in_21.rrd --template traffic_in:traffic_out
N::
time: 31
--------------------------------------------------------------------
everything seems to be right or? but my graphs still will be broken
now i take a brake, trink a beer and wait hopefully for a answer that will help me
thanks till here!
ghandi
first of all, thanks for your help, for me, cacti is a beautifull tool, if it works . user who are not good at administration unix machines, get a chance to make things which really interessting and important real
ok, i have delete all things in which unix stands, all data sources, all data import methods, all default devices and so on.
The snmp problem was php, because i used the cgi method of it, now i have installed the sapi php and change the default value from the paths to
c:\windows\system32\snmp.exe
now when i start cmd.php i can see following words....
-----------------------------------------------------------------------
c:\php\php.exe c:\inetpub\cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.6
snmp: 10.10.10.161:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value:
snmp: 10.10.10.161:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value
:
update c:\inetpub/rra/my_pc_traffic_in_21.rrd --template traffic_in:traffic_out
N::
time: 31
--------------------------------------------------------------------
everything seems to be right or? but my graphs still will be broken
now i take a brake, trink a beer and wait hopefully for a answer that will help me
thanks till here!
ghandi
It looks like you are not getting any replies back. You should see a number at the end of each of the SNMP lines and also at the end of the UPDATE lines.
I have never tried SAPI PHP so I'm not sure what issues ou might have with that. I would try ucd-snmp which is available at
http://net-snmp.sourceforge.net It works quite well for me. Just unzip the files into a directory with a valid unix like name (I.E. no spaces), set the path to the binaries in the paths section of cacti and try again. NOTE: The path must be a complete path I.E. c:\usr\bin\snmpget.exe
You can also try running an snmpget from the commandline to see if you are getting a reply from your router.
Mike
I have never tried SAPI PHP so I'm not sure what issues ou might have with that. I would try ucd-snmp which is available at
http://net-snmp.sourceforge.net It works quite well for me. Just unzip the files into a directory with a valid unix like name (I.E. no spaces), set the path to the binaries in the paths section of cacti and try again. NOTE: The path must be a complete path I.E. c:\usr\bin\snmpget.exe
You can also try running an snmpget from the commandline to see if you are getting a reply from your router.
Mike
hi,
ok, i have download net-snmp and with the command snmpget i have checked it, i think it would be fine.
when i start cmd.php following is print out:
----------------------------------------------------------------------
C:\>c:\php\php c:\inetpub\cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.6
snmp: 10.10.10.161:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value:
20549554
snmp: 10.10.10.161:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value
: 7407796
update c:\inetpub/rra/my_pc_traffic_in_21.rrd --template traffic_in:traffic_out
N:20549554:7407796
time: 0
--------------------------------------------------
i think it looks like good, but no graphs will be shown, following i've found in the debug mode..
RRDTool Says:
Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="My PC - Traffic - 10.10.10.161 (Intel(R) PRO/10)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\inetpub/rra/my_pc_traffic_in_21.rrd":traffic_in:AVERAGE DEF:b="C\:\inetpub/rra/my_pc_traffic_in_21.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\lib\rrd.php on line 58
Warning: fgets(): supplied argument is not a valid stream resource in C:\inetpub\lib\rrd.php on line 72
----------------------------------------------
any idea? i hope so...
thanks a lot!
ok, i have download net-snmp and with the command snmpget i have checked it, i think it would be fine.
when i start cmd.php following is print out:
----------------------------------------------------------------------
C:\>c:\php\php c:\inetpub\cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.6
snmp: 10.10.10.161:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value:
20549554
snmp: 10.10.10.161:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value
: 7407796
update c:\inetpub/rra/my_pc_traffic_in_21.rrd --template traffic_in:traffic_out
N:20549554:7407796
time: 0
--------------------------------------------------
i think it looks like good, but no graphs will be shown, following i've found in the debug mode..
RRDTool Says:
Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="My PC - Traffic - 10.10.10.161 (Intel(R) PRO/10)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\inetpub/rra/my_pc_traffic_in_21.rrd":traffic_in:AVERAGE DEF:b="C\:\inetpub/rra/my_pc_traffic_in_21.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\lib\rrd.php on line 58
Warning: fgets(): supplied argument is not a valid stream resource in C:\inetpub\lib\rrd.php on line 72
----------------------------------------------
any idea? i hope so...
thanks a lot!
I've never seen an error like that.... Then again, I don't look at my log files very often either. Two more things for you to check:
Is the rrd file being created? look in <cacti root directory>\cacti\rra You should see your rrd file. Check to make sure that it is being updated (date time group).
You need a few data points in your RRA before RRDtool will produce a graph, so if you have just created the RRD file, fun cmd.php a few times to give it something to graph. Though I don't think this is your problem.
I've noticed that the RRDtool command doesn't include an RRD file to generate a graph from.... Unfortunately, that's a bit beyond me.
Does anyone else have an idea?
Mike
Is the rrd file being created? look in <cacti root directory>\cacti\rra You should see your rrd file. Check to make sure that it is being updated (date time group).
You need a few data points in your RRA before RRDtool will produce a graph, so if you have just created the RRD file, fun cmd.php a few times to give it something to graph. Though I don't think this is your problem.
I've noticed that the RRDtool command doesn't include an RRD file to generate a graph from.... Unfortunately, that's a bit beyond me.
Does anyone else have an idea?
Mike
hi,
now i have checked the rrd file, it is updated every 5 minutes, like i have configured it.
when i create a directory for the html export path using the mrtg statistics it will be functionally, all graphs are right and look nice, but this isn't what i want.
graphs genereted on the fly are much better then statics.
what shall i do?
i hope anyone had an idea
thanks for your help.
ghandi
now i have checked the rrd file, it is updated every 5 minutes, like i have configured it.
when i create a directory for the html export path using the mrtg statistics it will be functionally, all graphs are right and look nice, but this isn't what i want.
graphs genereted on the fly are much better then statics.
what shall i do?
i hope anyone had an idea
thanks for your help.
ghandi
YEAAAAH i have checked it!!!!!!!!
the iusr user need executable rights to cmd.exe, i have found the following post in this forum, and now everything is working iam soooo happy
thanks a lot for your help
the post i've found:
-----------------------------------
Hello,
After changing the permissions for the cmd.exe cacti is working.
Here is the command to do this:
c:\windows\system32\cacls cmd.exe
C:\windows\system32\cmd.exe TOOLS\IUSR_TOOLS:N
BUILTIN\Users:R
BUILTIN\Power Users:R
BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
In my case TOOLS\IUSR_TOOLS (IIS - default web site properties - Directory Security - Anonymouse and ......) must have executable rights to the cmd.exe command.
To change these permissions do the following:
cacls cmd.exe /E /P IUSR_TOOLS:F (do not forget the /E)
-----------------------------------
but know anyone why the cmd.exe needs this rights?
ghandi
the iusr user need executable rights to cmd.exe, i have found the following post in this forum, and now everything is working iam soooo happy
thanks a lot for your help
the post i've found:
-----------------------------------
Hello,
After changing the permissions for the cmd.exe cacti is working.
Here is the command to do this:
c:\windows\system32\cacls cmd.exe
C:\windows\system32\cmd.exe TOOLS\IUSR_TOOLS:N
BUILTIN\Users:R
BUILTIN\Power Users:R
BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
In my case TOOLS\IUSR_TOOLS (IIS - default web site properties - Directory Security - Anonymouse and ......) must have executable rights to the cmd.exe command.
To change these permissions do the following:
cacls cmd.exe /E /P IUSR_TOOLS:F (do not forget the /E)
-----------------------------------
but know anyone why the cmd.exe needs this rights?
ghandi
I deleted the orginal localhost and also deleted all the graphs and created a new device (my pc with the cacti installation) and set it to use the usd/net SNMP Host as I'm using the PHP SNMP.
I ran cmd scheduled task there was no but not value (how do i copy and paste from the cmd)
What am I missing that it's not connecting to the SNMP?
I ran cmd scheduled task there was no but not value (how do i copy and paste from the cmd)
What am I missing that it's not connecting to the SNMP?
Feel free to tell me anythig is wrong, system specification below
Windows XP Pro SP1
IIS 5.1
MySQL 4.0.18
PHP 4.3.6
Activestate Perl (latest build)
Deleted original Localhost and graphs
Under Cacti Settings, changed the SNMP Version to UCD-SNMP 4.x from NET-SNMP 5.x as PHP shows UCD
SNMPwalk & get are set to <DEFAULT> (no idea what that is)
Added a new Device
Description: local
Hostname: locahost
Host Template: ucd/net snmp host
SNMP Community: public
Click Save
It saved it but under SNMP Info it shows SNMP Error, so what am I missing or doin wrong?
Windows XP Pro SP1
IIS 5.1
MySQL 4.0.18
PHP 4.3.6
Activestate Perl (latest build)
Deleted original Localhost and graphs
Under Cacti Settings, changed the SNMP Version to UCD-SNMP 4.x from NET-SNMP 5.x as PHP shows UCD
SNMPwalk & get are set to <DEFAULT> (no idea what that is)
Added a new Device
Description: local
Hostname: locahost
Host Template: ucd/net snmp host
SNMP Community: public
Click Save
It saved it but under SNMP Info it shows SNMP Error, so what am I missing or doin wrong?
how do you installed php?
in my case, i get the same problem, when i installed php in cgi mode (execution file php.exe)
take the isapi files and configure it in the iis. for further information how do to this, look at the windows install guide, and follow the points of php installation.
In cacti the <DEFAULT> falue, points to your snmp.exe file, i have download snmp from net-snmp and point the walk and get snmp to my download folder, like
c:\snmp\usr\bin\snmpget.exe
and the snmp version, is net-snmp 5.x
greetings
in my case, i get the same problem, when i installed php in cgi mode (execution file php.exe)
take the isapi files and configure it in the iis. for further information how do to this, look at the windows install guide, and follow the points of php installation.
In cacti the <DEFAULT> falue, points to your snmp.exe file, i have download snmp from net-snmp and point the walk and get snmp to my download folder, like
c:\snmp\usr\bin\snmpget.exe
and the snmp version, is net-snmp 5.x
greetings
hi, take this version of snmp, i have download it from net-snmp its
http://prdownloads.sourceforge.net/net- ... ror=belnet
hmm.. call me silly but i doesn't know which version of snmp cacti is using, but i know with which version cacti will run on my pc
iam also new at cacti, and all i have checked is the snmp interface statistics.. i hope i will get more time to spend on cacti, so i can configure for more usefull things..
greetings
http://prdownloads.sourceforge.net/net- ... ror=belnet
hmm.. call me silly but i doesn't know which version of snmp cacti is using, but i know with which version cacti will run on my pc
iam also new at cacti, and all i have checked is the snmp interface statistics.. i hope i will get more time to spend on cacti, so i can configure for more usefull things..
greetings
Who is online
Users browsing this forum: No registered users and 0 guests