few problems with cacti in windows
Moderators: Developers, Moderators
few problems with cacti in windows
Hi
I am newbie with cacti, so could use some help with trouble shooting few problems that I have.
I have installed cacti to windows server 2008
I added few devices(localhost and few others), all windows servers.
from command prompt "snmpwalk -v 1 -c <community name> <ip> system" gives ok responce
and setting up server gives below responce(in top of page, so snmp to servers works.
System:Hardware: Intel64 Family 6 Model 26 Stepping 5 AT/AT COMPATIBLE -
Software: Windows Version 6.1 (Build 7600 Multiprocessor Free)
Uptime: 428370786 (49 days, 13 hours, 55 minutes)
Hostname: ******.****.****.*****
Location:
Contact:
problem 1:
device status of servers is "unknown", only for localhost it is "up"
I am not sure did turning on "snmp trap" in localhost had anything to do with it.
how can I get those other servers also in "up" status
problem 2:
graphs are empty.
Localhost grid is displayed, but nothing is displayed.
at first I had poller setting 5min and 5 min, but I tested 1min for poller interval. but i have changed that back.
in tree view I have localhost listed, in list view I have another server also but for that there is only red cross
I am newbie with cacti, so could use some help with trouble shooting few problems that I have.
I have installed cacti to windows server 2008
I added few devices(localhost and few others), all windows servers.
from command prompt "snmpwalk -v 1 -c <community name> <ip> system" gives ok responce
and setting up server gives below responce(in top of page, so snmp to servers works.
System:Hardware: Intel64 Family 6 Model 26 Stepping 5 AT/AT COMPATIBLE -
Software: Windows Version 6.1 (Build 7600 Multiprocessor Free)
Uptime: 428370786 (49 days, 13 hours, 55 minutes)
Hostname: ******.****.****.*****
Location:
Contact:
problem 1:
device status of servers is "unknown", only for localhost it is "up"
I am not sure did turning on "snmp trap" in localhost had anything to do with it.
how can I get those other servers also in "up" status
problem 2:
graphs are empty.
Localhost grid is displayed, but nothing is displayed.
at first I had poller setting 5min and 5 min, but I tested 1min for poller interval. but i have changed that back.
in tree view I have localhost listed, in list view I have another server also but for that there is only red cross
Re: few problems with cacti in windows
1) lots of info/links in http://forums.cacti.net/viewtopic.php?f=3&t=11747
2) snmp traps are not needed nor used by cacti.
3) have you told cacti to graph on any of the other servers? If not, cacti wont try to determine if its up or down and thusly shows unknown.
2) snmp traps are not needed nor used by cacti.
3) have you told cacti to graph on any of the other servers? If not, cacti wont try to determine if its up or down and thusly shows unknown.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: few problems with cacti in windows
ok, here is some information.
in cacti setting=>paths all of them show sgreen=snmpwalk,snmpget,snmpbulkwalk,snmpgetnext, rrdtool, php, cactilog, spine are found.
MySQL is installed.
cacti is installed in c:\Apache\htdocs\cacti folder, since I am using apache instead of IIS
PHP is installed c:\PHP -folder
MYSQL is installed C:\program files (x86)\MySQL -folder.
rrdtool is installed C:\rrdtool -folder
cygwin is not installed, since I tought it is not necessary.
net-snmp is installed in C:\Net-SNMP\ -folder
Operating System:windows 2008 server
Webserver: Apache 2.2
Cacti:0.8.7g
Spine:0.8.7
MySQL:5.1
PHP:5.2 WINNT version
RRDTool (Cygwin or Win32 version):windows version 1.2.x
Net-SNMP:5.4
Cygwin (cygwin1.dll version):
Plugin Architecture:
I have 21 servers setup (including localhost) only 3 of them are up status.
when I added them, SNMP message top left corner informed that CNMP connection was ok.
"php -m" command gives some "cannot find module.... at line 0 in (nonoe)" rows before listing modules.
What should I check first? what could be wrong?
in cacti setting=>paths all of them show sgreen=snmpwalk,snmpget,snmpbulkwalk,snmpgetnext, rrdtool, php, cactilog, spine are found.
MySQL is installed.
cacti is installed in c:\Apache\htdocs\cacti folder, since I am using apache instead of IIS
PHP is installed c:\PHP -folder
MYSQL is installed C:\program files (x86)\MySQL -folder.
rrdtool is installed C:\rrdtool -folder
cygwin is not installed, since I tought it is not necessary.
net-snmp is installed in C:\Net-SNMP\ -folder
Operating System:windows 2008 server
Webserver: Apache 2.2
Cacti:0.8.7g
Spine:0.8.7
MySQL:5.1
PHP:5.2 WINNT version
RRDTool (Cygwin or Win32 version):windows version 1.2.x
Net-SNMP:5.4
Cygwin (cygwin1.dll version):
Plugin Architecture:
I have 21 servers setup (including localhost) only 3 of them are up status.
when I added them, SNMP message top left corner informed that CNMP connection was ok.
"php -m" command gives some "cannot find module.... at line 0 in (nonoe)" rows before listing modules.
What should I check first? what could be wrong?
Re: few problems with cacti in windows
1) You didn't address question #3.
2) followed http://docs.cacti.net/manual:087:4_help.2_debugging yet ?
2) followed http://docs.cacti.net/manual:087:4_help.2_debugging yet ?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: few problems with cacti in windows
ansver to #3
yes, I have set graphs to other servers than localhost also. localhost has grid visible but no graph bars, others have red cross instead of image.
about that trouble shoot.
those instructions are for linux, but i have windows server as OS.
so can you help me little with these
snmpget -command, what is OID and where do I get it.
cacti poller/spine, where it should be running? in linux it should be in crontab, what about windows?
rrdtool - this is new stuff for me so don't know where to start questions.
yes, I have set graphs to other servers than localhost also. localhost has grid visible but no graph bars, others have red cross instead of image.
about that trouble shoot.
those instructions are for linux, but i have windows server as OS.
so can you help me little with these
snmpget -command, what is OID and where do I get it.
cacti poller/spine, where it should be running? in linux it should be in crontab, what about windows?
rrdtool - this is new stuff for me so don't know where to start questions.
Re: few problems with cacti in windows
While the instructions have linux commands, the same basic principal applies to Windows (and there are equivalent commands too).
I'd suggest using snmpwalk for troubleshooting. OIDs can be found in the poller cache / cacti.log.
Start out with the cmd.php poller. Once everything is functional, switch to spine if desired. windows you need to create a scheduled task. The installation guide covers all of this.
I'd suggest using snmpwalk for troubleshooting. OIDs can be found in the poller cache / cacti.log.
Start out with the cmd.php poller. Once everything is functional, switch to spine if desired. windows you need to create a scheduled task. The installation guide covers all of this.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: few problems with cacti in windows
ok, I did not have that scheduled task part.
now that is done. and poller cache and cacti log starts to get content.
---------------------------
SNMPwalk to all servers work.
following command gave lot of information(that I don't understand):
snmpwalk -v 1 -c <communityname> <ip address> .1.2.6.1.2.1.2.2.1
example of what that command shows:
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
...
---------------------------------------------------
ok, all servers that has data sources, has UP status
--------------------------------------------------
few things from cacti log(some of information changed):
06/22/2011 09:22:58 AM - CMDPHP: Poller[0] Host[5] DS[69] SERVER: C:\Apache\htdocs\cacti\scripts\ss_host_cpu.php ss_host_cpu <server IP address> 5 1:161:500:1:10:<community name>:::::: get usage 15, output: 0
is something in that line OID?
I could use little help with these warnings:
06/22/2011 09:32:56 AM - CMDPHP: Poller[0] Host[1] DS[9] WARNING: Result from SNMP not valid. Partial Result: U
06/22/2011 09:32:56 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'localhost', and OID:'.1.3.6.1.4.1.2021.11.52.0'
06/22/2011 09:32:56 AM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result: U
06/22/2011 09:32:56 AM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '60' seconds, with a maximum of a '300' second Scheduled Task, but 300 seconds have passed since the last poll!
------------------------------------------------
so problem with status is now solved, I just need to add data sources.
problem still affecting: no graphs(localhost or remote server), remote servers show missing image icon(red cross), localhost shows grid, but no graph bars.
now that is done. and poller cache and cacti log starts to get content.
---------------------------
SNMPwalk to all servers work.
following command gave lot of information(that I don't understand):
snmpwalk -v 1 -c <communityname> <ip address> .1.2.6.1.2.1.2.2.1
example of what that command shows:
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
...
---------------------------------------------------
ok, all servers that has data sources, has UP status
--------------------------------------------------
few things from cacti log(some of information changed):
06/22/2011 09:22:58 AM - CMDPHP: Poller[0] Host[5] DS[69] SERVER: C:\Apache\htdocs\cacti\scripts\ss_host_cpu.php ss_host_cpu <server IP address> 5 1:161:500:1:10:<community name>:::::: get usage 15, output: 0
is something in that line OID?
I could use little help with these warnings:
06/22/2011 09:32:56 AM - CMDPHP: Poller[0] Host[1] DS[9] WARNING: Result from SNMP not valid. Partial Result: U
06/22/2011 09:32:56 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'localhost', and OID:'.1.3.6.1.4.1.2021.11.52.0'
06/22/2011 09:32:56 AM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result: U
06/22/2011 09:32:56 AM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '60' seconds, with a maximum of a '300' second Scheduled Task, but 300 seconds have passed since the last poll!
------------------------------------------------
so problem with status is now solved, I just need to add data sources.
problem still affecting: no graphs(localhost or remote server), remote servers show missing image icon(red cross), localhost shows grid, but no graph bars.
Re: few problems with cacti in windows
Nope, this script doesnt pass OID(s) to it. It's passing other snmp information to the script (which does have the OIDs).kirini wrote:06/22/2011 09:22:58 AM - CMDPHP: Poller[0] Host[5] DS[69] SERVER: C:\Apache\htdocs\cacti\scripts\ss_host_cpu.php ss_host_cpu <server IP address> 5 1:161:500:1:10:<community name>:::::: get usage 15, output: 0
is something in that line OID?
cacti was unable to query the OID '.1.3.6.1.4.1.2021.11.52.0' try an snmpwalk of '.1.3.6.1.4.1.2021.11.52.0' or '.1.3.6.1.4.1.2021.11' to get a sense if this device even supports it.kirini wrote: 06/22/2011 09:32:56 AM - CMDPHP: Poller[0] Host[1] DS[9] WARNING: Result from SNMP not valid. Partial Result: U
06/22/2011 09:32:56 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'localhost', and OID:'.1.3.6.1.4.1.2021.11.52.0'
Data Source 4 which is used by Host 1 (the links are clickable when viewed via the cacti webpage log viewer) is not returning valid data. What script is it?kirini wrote: 06/22/2011 09:32:56 AM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result: U
It appears you're trying to use 1 min polling instead of the default 5. One cannot just change the polling time faster and have everything work... its a lot more involved. There are guides in the doc site on the details.kirini wrote: 06/22/2011 09:32:56 AM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '60' seconds, with a maximum of a '300' second Scheduled Task, but 300 seconds have passed since the last poll!
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: few problems with cacti in windows
yes, I have set graphs to other servers than localhost also. localhost has grid visible but no graph bars, others have red cross instead of image.
Who is online
Users browsing this forum: No registered users and 0 guests