NS Client works on XP host but not 2003.
Moderators: Developers, Moderators
-
- Posts: 21
- Joined: Wed Nov 28, 2007 6:09 am
NS Client works on XP host but not 2003.
I have a CactiEZ installation ...i've installed the NSclient on the XP computer and it graphs fine.
I did the same on the 2003 server, and enabled SNMP, but i can't graph disk space. the only thing i can graph is the network interface, and even that deosn't show a graph.
firewall is off, tried adding the data queries, but no options. etc.
any step by step guide to doing this? thanks.
I did the same on the 2003 server, and enabled SNMP, but i can't graph disk space. the only thing i can graph is the network interface, and even that deosn't show a graph.
firewall is off, tried adding the data queries, but no options. etc.
any step by step guide to doing this? thanks.
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
You have to do something different under Win2k3.
Right Click on "My Computer" Select "Properties".
On the Advanced Tab, select "Settings" under Performance.
On the Data Execution Tab Select the top option.
Then you should be able to restart the service.
Also, it should have told you what the problem was with starting the service if you'd read through your Application Event Log.
Right Click on "My Computer" Select "Properties".
On the Advanced Tab, select "Settings" under Performance.
On the Data Execution Tab Select the top option.
Then you should be able to restart the service.
Also, it should have told you what the problem was with starting the service if you'd read through your Application Event Log.
-
- Posts: 21
- Joined: Wed Nov 28, 2007 6:09 am
hi.
the event log shows that it works fine. "NSClient is now responding to queries."
I didn't disable DEP, but rather added the nsclient executable to the allow list. However it still doesn't work.
This is the debug output I'm getting:
Data Query Debug Information
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 query index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 query description'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 query sau'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 query total'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
furthermore, even the interface statistics aren't producing a graph:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="Seboxfs01 - Traffic - 192.1.30.46 (HP NC373i Multi)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/seboxfs01_traffic_in_649.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/rra/seboxfs01_traffic_in_649.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=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" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"
RRDTool Says:
ERROR: opening '/var/www/html/rra/seboxfs01_traffic_in_649.rrd': No such file or directory
the event log shows that it works fine. "NSClient is now responding to queries."
I didn't disable DEP, but rather added the nsclient executable to the allow list. However it still doesn't work.
This is the debug output I'm getting:
Data Query Debug Information
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 query index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 query description'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 query sau'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.1.30.46 Y&i9oP$!b^g8 1 125 query total'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
furthermore, even the interface statistics aren't producing a graph:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="Seboxfs01 - Traffic - 192.1.30.46 (HP NC373i Multi)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/seboxfs01_traffic_in_649.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/rra/seboxfs01_traffic_in_649.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=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" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"
RRDTool Says:
ERROR: opening '/var/www/html/rra/seboxfs01_traffic_in_649.rrd': No such file or directory
Check your cacti log files, is it even getting data back from the device? Debug it http://docs.cacti.net/node/283dublin_101 wrote:furthermore, even the interface statistics aren't producing a graph:
As for no partition data, make sure all of the snmp agents are enabled on the SNMP service, in windows.
| 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 |
-
- Posts: 21
- Joined: Wed Nov 28, 2007 6:09 am
I'm trying some of those debug actions.
The device always appears with status of unknown, yet I add its interfaces with the SNMP - Interface Statistics, yet they won't graph.
The host templates is windows 2000/XP host.
I don't know if the snmp trap service needs to be started, but i just started it anyway to test it.
The device always appears with status of unknown, yet I add its interfaces with the SNMP - Interface Statistics, yet they won't graph.
The host templates is windows 2000/XP host.
I don't know if the snmp trap service needs to be started, but i just started it anyway to test it.
They are documented in the link I posted. Changing the cacti logging level is the first thing to do...dublin_101 wrote:I'm trying some of those debug actions.
Typically this is because cacti has never determined if the device is up or down yet.dublin_101 wrote:The device always appears with status of unknown, yet I add its interfaces with the SNMP - Interface Statistics, yet they won't graph.
Cacti does not use snmp traps.dublin_101 wrote:I don't know if the snmp trap service needs to be started, but i just started it anyway to test it.
| 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 |
-
- Posts: 21
- Joined: Wed Nov 28, 2007 6:09 am
Please post an snmpwalk of 1.3.6.1.2.1.25.2.3.1 against 192.1.30.46.
| 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 |
-
- Posts: 21
- Joined: Wed Nov 28, 2007 6:09 am
thanks. find within.
Warning: Missing argument 9 for cacti_snmp_walk(), called in /var/www/html/plugins/tools/tools.php on line 120 and defined in /var/www/html/lib/snmp.php on line 225
Warning: Missing argument 10 for cacti_snmp_walk(), called in /var/www/html/plugins/tools/tools.php on line 120 and defined in /var/www/html/lib/snmp.php on line 225
SNMP Walk Results for 192.1.30.46
1.3.6.1.2.1.25.2.3.1.1.1 1
1.3.6.1.2.1.25.2.3.1.1.2 2
1.3.6.1.2.1.25.2.3.1.1.3 3
1.3.6.1.2.1.25.2.3.1.1.4 4
1.3.6.1.2.1.25.2.3.1.1.5 5
1.3.6.1.2.1.25.2.3.1.1.6 6
1.3.6.1.2.1.25.2.3.1.2.1 OID: .1.3.6.1.2.1.25.2.1.4
1.3.6.1.2.1.25.2.3.1.2.2 OID: .1.3.6.1.2.1.25.2.1.4
1.3.6.1.2.1.25.2.3.1.2.3 OID: .1.3.6.1.2.1.25.2.1.4
1.3.6.1.2.1.25.2.3.1.2.4 OID: .1.3.6.1.2.1.25.2.1.7
1.3.6.1.2.1.25.2.3.1.2.5 OID: .1.3.6.1.2.1.25.2.1.3
1.3.6.1.2.1.25.2.3.1.2.6 OID: .1.3.6.1.2.1.25.2.1.2
1.3.6.1.2.1.25.2.3.1.3.1 C: Label: Serial Number 70268958
1.3.6.1.2.1.25.2.3.1.3.2 D: Label:Data Serial Number bc770007
1.3.6.1.2.1.25.2.3.1.3.3 F: Label:Local Disk Serial Number 585da6a9
1.3.6.1.2.1.25.2.3.1.3.4 Z:
1.3.6.1.2.1.25.2.3.1.3.5 Virtual Memory
1.3.6.1.2.1.25.2.3.1.3.6 Physical Memory
1.3.6.1.2.1.25.2.3.1.4.1 4096 Bytes
1.3.6.1.2.1.25.2.3.1.4.2 4096 Bytes
1.3.6.1.2.1.25.2.3.1.4.3 4096 Bytes
1.3.6.1.2.1.25.2.3.1.4.4 0 Bytes
1.3.6.1.2.1.25.2.3.1.4.5 65536 Bytes
1.3.6.1.2.1.25.2.3.1.4.6 65536 Bytes
1.3.6.1.2.1.25.2.3.1.5.1 7680595
1.3.6.1.2.1.25.2.3.1.5.2 10084739
1.3.6.1.2.1.25.2.3.1.5.3 358424198
1.3.6.1.2.1.25.2.3.1.5.4 0
1.3.6.1.2.1.25.2.3.1.5.5 83573
1.3.6.1.2.1.25.2.3.1.5.6 53236
1.3.6.1.2.1.25.2.3.1.6.1 1978263
1.3.6.1.2.1.25.2.3.1.6.2 5481582
1.3.6.1.2.1.25.2.3.1.6.3 280721853
1.3.6.1.2.1.25.2.3.1.6.4 0
1.3.6.1.2.1.25.2.3.1.6.5 14056
1.3.6.1.2.1.25.2.3.1.6.6 14764
1.3.6.1.2.1.25.2.3.1.7.1 0
1.3.6.1.2.1.25.2.3.1.7.2 0
1.3.6.1.2.1.25.2.3.1.7.3 0
1.3.6.1.2.1.25.2.3.1.7.4 0
1.3.6.1.2.1.25.2.3.1.7.5 0
1.3.6.1.2.1.25.2.3.1.7.6 0
Warning: Missing argument 9 for cacti_snmp_walk(), called in /var/www/html/plugins/tools/tools.php on line 120 and defined in /var/www/html/lib/snmp.php on line 225
Warning: Missing argument 10 for cacti_snmp_walk(), called in /var/www/html/plugins/tools/tools.php on line 120 and defined in /var/www/html/lib/snmp.php on line 225
SNMP Walk Results for 192.1.30.46
1.3.6.1.2.1.25.2.3.1.1.1 1
1.3.6.1.2.1.25.2.3.1.1.2 2
1.3.6.1.2.1.25.2.3.1.1.3 3
1.3.6.1.2.1.25.2.3.1.1.4 4
1.3.6.1.2.1.25.2.3.1.1.5 5
1.3.6.1.2.1.25.2.3.1.1.6 6
1.3.6.1.2.1.25.2.3.1.2.1 OID: .1.3.6.1.2.1.25.2.1.4
1.3.6.1.2.1.25.2.3.1.2.2 OID: .1.3.6.1.2.1.25.2.1.4
1.3.6.1.2.1.25.2.3.1.2.3 OID: .1.3.6.1.2.1.25.2.1.4
1.3.6.1.2.1.25.2.3.1.2.4 OID: .1.3.6.1.2.1.25.2.1.7
1.3.6.1.2.1.25.2.3.1.2.5 OID: .1.3.6.1.2.1.25.2.1.3
1.3.6.1.2.1.25.2.3.1.2.6 OID: .1.3.6.1.2.1.25.2.1.2
1.3.6.1.2.1.25.2.3.1.3.1 C: Label: Serial Number 70268958
1.3.6.1.2.1.25.2.3.1.3.2 D: Label:Data Serial Number bc770007
1.3.6.1.2.1.25.2.3.1.3.3 F: Label:Local Disk Serial Number 585da6a9
1.3.6.1.2.1.25.2.3.1.3.4 Z:
1.3.6.1.2.1.25.2.3.1.3.5 Virtual Memory
1.3.6.1.2.1.25.2.3.1.3.6 Physical Memory
1.3.6.1.2.1.25.2.3.1.4.1 4096 Bytes
1.3.6.1.2.1.25.2.3.1.4.2 4096 Bytes
1.3.6.1.2.1.25.2.3.1.4.3 4096 Bytes
1.3.6.1.2.1.25.2.3.1.4.4 0 Bytes
1.3.6.1.2.1.25.2.3.1.4.5 65536 Bytes
1.3.6.1.2.1.25.2.3.1.4.6 65536 Bytes
1.3.6.1.2.1.25.2.3.1.5.1 7680595
1.3.6.1.2.1.25.2.3.1.5.2 10084739
1.3.6.1.2.1.25.2.3.1.5.3 358424198
1.3.6.1.2.1.25.2.3.1.5.4 0
1.3.6.1.2.1.25.2.3.1.5.5 83573
1.3.6.1.2.1.25.2.3.1.5.6 53236
1.3.6.1.2.1.25.2.3.1.6.1 1978263
1.3.6.1.2.1.25.2.3.1.6.2 5481582
1.3.6.1.2.1.25.2.3.1.6.3 280721853
1.3.6.1.2.1.25.2.3.1.6.4 0
1.3.6.1.2.1.25.2.3.1.6.5 14056
1.3.6.1.2.1.25.2.3.1.6.6 14764
1.3.6.1.2.1.25.2.3.1.7.1 0
1.3.6.1.2.1.25.2.3.1.7.2 0
1.3.6.1.2.1.25.2.3.1.7.3 0
1.3.6.1.2.1.25.2.3.1.7.4 0
1.3.6.1.2.1.25.2.3.1.7.5 0
1.3.6.1.2.1.25.2.3.1.7.6 0
Alright, so that windows device is properly returning the partition space data. That means it's a problem with Cacti.
Does cacti consider that device to be up or down?
Try increasing the timeout for the device in cacti.
Increase the timeout and memory values in your php.ini file too.
Does cacti consider that device to be up or down?
Try increasing the timeout for the device in cacti.
Increase the timeout and memory values in your php.ini file too.
| 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 |
-
- Posts: 21
- Joined: Wed Nov 28, 2007 6:09 am
the device status is "unknown"
i've applied ping timeout of 1000.
ping type is set at UDP ping. Should I try it with others?
i think the last time we played around with php.ini, it totally crashed our system. i'll take a snapshot of the system first.
do you have any recommendations at to which parameters to change>?
these are our current parameters:
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
cacti does have some kind of comms with this device as it was able to add the interfaces (although no graphs). and also know what device it is as per:
SNMP Information
System: Hardware: x86 Family 6 Model 15 Stepping 6 AT/AT COMPATIBLE - Software: Windows Version 5.2 (Build 3790 Multiprocessor Free)
Uptime: 17664859 (2 days, 1 hours, 4 minutes)
Hostname: SEBOXFS01
Location:
Contact:
i've applied ping timeout of 1000.
ping type is set at UDP ping. Should I try it with others?
i think the last time we played around with php.ini, it totally crashed our system. i'll take a snapshot of the system first.
do you have any recommendations at to which parameters to change>?
these are our current parameters:
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
cacti does have some kind of comms with this device as it was able to add the interfaces (although no graphs). and also know what device it is as per:
SNMP Information
System: Hardware: x86 Family 6 Model 15 Stepping 6 AT/AT COMPATIBLE - Software: Windows Version 5.2 (Build 3790 Multiprocessor Free)
Uptime: 17664859 (2 days, 1 hours, 4 minutes)
Hostname: SEBOXFS01
Location:
Contact:
Problem #1. This is why there are no graphs or data. Turn the logging level of cacti to high or debug and look though the log file for why Cacti can't talk to that device.dublin_101 wrote:the device status is "unknown"
I'd suggest ICMP. Alternatively, you can just set it the downtime detection to SNMP.dublin_101 wrote:ping type is set at UDP ping. Should I try it with others?
umm wow. Unstable system there.dublin_101 wrote:i think the last time we played around with php.ini, it totally crashed our system. i'll take a snapshot of the system first.
Try:dublin_101 wrote:do you have any recommendations at to which parameters to change>?
max_execution_time = 120 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M ; Maximum amount of memory a script may consume (8MB)
| 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 |
-
- Posts: 21
- Joined: Wed Nov 28, 2007 6:09 am
Have you looked in the cacti log file for why cacti can't tell if the device is up or down yet?
Look in the poller cache and specify that problem device. Is stuff listed?
Look in the poller cache and specify that problem device. Is stuff listed?
| 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 |
-
- Posts: 21
- Joined: Wed Nov 28, 2007 6:09 am
01/08/2008 08:25:11 AM - SPINE: Poller[0] ERROR: Problem initializing SNMP session '#VALUE!'
this comes up every now and then.
the Cacti server can now see some of the disks on the XP computer, but still nothing on the 2003 Server. Both devices are still status as unknown and for some reason the rrds are not being created.
this comes up every now and then.
the Cacti server can now see some of the disks on the XP computer, but still nothing on the 2003 Server. Both devices are still status as unknown and for some reason the rrds are not being created.
Who is online
Users browsing this forum: No registered users and 2 guests