All Windows hosts: only Partial Monitoring

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

Moderators: Developers, Moderators

Clocks
Posts: 14
Joined: Fri Nov 09, 2007 3:25 pm

All Windows hosts: only Partial Monitoring

Post by Clocks »

I have a whole array of windows hosts and TCP endpoints I am monitoring with cacti. For the windows based hosts, I cannot get any information on the disks or the memory stack. I have tried doing some basic troubleshooting.

On the windows side, I am using the Microsoft SNMP application with appropriately configured firewall, service entry, and RO community. All availible agents are checked in the agent configuration tab.

I know that cacti can get there because I have all of the other graphs working.

To aid in troubleshooting, I have setup a guest account for you folks to see a couple of minor hosts as an example. Once the problem is solved, the port access and user go away.

http://landerson.serveftp.com:10080/

user graphs
password graphs
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

read http://forums.cacti.net/viewtopic.php?t=11747 and repost.

Click on verbose query for the disk query on a device which you think should work. Does it return any data?
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

Hmm, I have the same issue. I do not get any entries returned when I click 'Verbose Query' for the SNMP - Get Mounted Partitions data query. I can communicate via snmpwalking the OID's so that work. This goes for all my Windows installations.
The odd thing is that I have had it working on a different Cacti installation, however that was an earlier version of Cacti.

My configuration;
CentOS with Apache. Cacti 8.6j, am using CactiD as poller.
I have snmp service installed and using ro community.

Any ideas?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

MikaelS: Can cacti successfully poll anything via snmp on those broken windows boxes?
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

Hi,

yes I am monitoring other services via SNMP successfully. The prolem exists on all my Windows hosts.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What things are you polling on the windows hosts via snmp?
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

I am currently polling interface statistics and amount of running processes via SNMP. If I snmpwalk the OID's from the server running Cacti it works, but not when I through Cacti.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

MikaelS wrote:I am currently polling interface statistics and amount of running processes via SNMP.
This is done by Cacti, right?
MikaelS wrote:If I snmpwalk the OID's from the server running Cacti it works, but not when I through Cacti.
If all of the 'Agents' are enabled in the snmp service, then it's time to reinstall the microsoft snmp agent.
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

Yes, Cacti is doing that.

Reinstalling MS Snmp service on the Windows machines won't solve it. The problem is somewhere in Cacti. From a different Cacti installation I do the verbose query on the same machines.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Cacti uses /scripts/ss_host_disk.php to collect disk partition info from a device. When you snmpwalk .1.3.6.1.2.1.25.2.3.1, you get data back from the windows host? Try increasing the timeout for that Windows device. Also increase the timeout values and memory in your php.ini file.
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

Snmpwalking that oid returns me with all drives, sizes etc. Increasing memory usage and timeout didn't do anything unfortunately. Timeout isn't really the issue I'd guess anyway as the command is ran very fast and doesn't stand and wait for a timeout.


[root@hostingmon1 scripts]# /usr/bin/php -q /opt/statistics/scripts/ss_host_disk.php xx.xx.xx.xx 48 "1:161:1000:ixxintern:|host_snmp_username|:|host_snmp_password|:MD5::[None]" query index
[root@hostingmon1 scripts]# /usr/bin/php -q /opt/statistics/scripts/ss_host_disk.php xx.xx.xx.xx 48 "1:161:1000:ixxintern:|host_snmp_username|:|host_snmp_password|:MD5::[None]" query total
[root@hostingmon1 scripts]#

Doesn't return anything if I run it from a command line, assuming I've gotten the command line right.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

MikaelS wrote:Doesn't return anything if I run it from a command line, assuming I've gotten the command line right.
You have to run any ss_* script from the PHP script server. use php script_server.php to start it. Look in your poller cache for the exact command cacti executes for the host in question using the ss_host_disk script.

It really doesn't make any sense why a snmpwalk from the cacti box works, yet the one from within cacti, does not. Windows boxes use the php_snmp dll for queries, but I believe linux users use net-snmp or ucd-snmp. Might be some sort of issue with those, which I'm not familiar with.

Can cacti successfully query non-windows devices for the 'SNMP - Get Mounted Partitions' query?
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

I haven't tried non-windows servers as I have a different graph for them. But I did, and no, it doesn't work so it's not restricted to Windows machines.

Couldn't find the host I'm trying with in the poller cache in regards of ss_host_disk.php.
I just tried the SNMP - Get Processor Information, it works perfect. So I have 2 ss_* scripts that works.

Could it be something in the script or data query that is wrong?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

MikaelS wrote: Couldn't find the host I'm trying with in the poller cache in regards of ss_host_disk.php.
I just tried the SNMP - Get Processor Information, it works perfect. So I have 2 ss_* scripts that works.
Look in your poller cache for a device which has the SNMP - Get Processor Information query added and an associated data source created. It should show up something like: <hostname> - Used Space - C: Label:Ares Serial Num
MikaelS wrote:Could it be something in the script or data query that is wrong?
Possibly. Overwrite your current /cacti/script/ and /cacti/resources/ files with the ones from the cacti zip file you downloaded from this website.
MikaelS
Posts: 10
Joined: Thu Dec 21, 2006 11:02 am

Post by MikaelS »

BSOD2600 wrote: Look in your poller cache for a device which has the SNMP - Get Processor Information query added and an associated data source created. It should show up something like: <hostname> - Used Space - C: Label:Ares Serial Num
The device which has SNMP - Get Processor information doesn't have any datasource called like that.
BSOD2600 wrote: Possibly. Overwrite your current /cacti/script/ and /cacti/resources/ files with the ones from the cacti zip file you downloaded from this website.
Tried it, didn't work. Tried the ones from the Cacti8.7a archive, didn't work either.

I changed the patch in the data query to use script_queries/host_disk.xml instead of script_server/host_disk.xml, this actually made me see the disks when I did verbose query. It doesn't create any graphs for me however as an error happens when the poller runs, but it don't think I should be using the script_queries/host_disk.xml script anyway, right?
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests