Monitoring windows services
Moderators: Developers, Moderators
Monitoring windows services
I just started using Cacti, and am using the cactiEZ cd found here http://cactiusers.org/ and have set it up to monitor a few windows 2003 servers using windows SNMP. The problem I am having is for the windows services I always get a Service State of 0 indicating it is stopped even though the service is running. Stopping the service does not have any affect on this service state.
Any suggestions?
Thanks in advance
Any suggestions?
Thanks in advance
returns all my services like this.1.3.6.1.4.1.77.1.2.3.1.1
.1.3.6.1.4.1.77.1.2.3.1.1.6.83.101.114.118.101.114 Server
returns all of them like this.1.3.6.1.4.1.77.1.2.3.1.2
.1.3.6.1.4.1.77.1.2.3.1.2.6.83.101.114.118.101.114 4
I figured you didn't need the whole thing so I just copied the first entry, since they all look similar just different OIDS, please let me know if you need more.
Check out the monitoring running processes script in my signature.
| 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 |
Ah, ok... well I recall there was someone who wrote a simple WMI script for that (search the script forum).
Most often a process is tied to a service, so my script would work...
Most often a process is tied to a service, so my script would work...
| 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 |
Hum... so it seems that walk in indeed returning the correct information (4 means RUNNING). The first most likely culprit is the fields lengths in the database which were updated in Cacti v0.8.6i to accomidate for this exact issue.arosenau wrote:returns all my services like this.1.3.6.1.4.1.77.1.2.3.1.1
.1.3.6.1.4.1.77.1.2.3.1.1.6.83.101.114.118.101.114 Serverreturns all of them like this.1.3.6.1.4.1.77.1.2.3.1.2
.1.3.6.1.4.1.77.1.2.3.1.2.6.83.101.114.118.101.114 4
I figured you didn't need the whole thing so I just copied the first entry, since they all look similar just different OIDS, please let me know if you need more.
What version of Cacti are you running?
I am running Cacti v0.8.6i. My complete Host information is below
Cacti Version - 0.8.6i
Plugin Architecture - 1.0
Poller Type - Cactid v0.8.6i
Server Info - Linux 2.6.9-42.0.3.EL
Web Server - Apache/2.0.52 (CentOS)
PHP - 4.3.9
PHP Extensions - yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, mysql, snmp, eAccelerator
MySQL - 4.1.20
RRDTool - 1.2.15
SNMP - 5.1.2
Plugins
- PHP Network Weathermap (weathermap - v0.82)
Thresholds (thold - v0.3.0)
Device Monitoring (monitor - v0.7)
Network Discovery (discovery - v0.6)
Network Tools (tools - v0.2)
Syslog Monitoring (haloe - v0.4)
mactrack
RRD Cleaner (rrdclean - v1.1)
Update Checker (update - v0.3)
FlowView (flowview - v0.3)
Host Info (hostinfo - v0.1)
Error Images (errorimage - v0.1)
This is a fresh install. I have tried clearing the cache already. Here is the output I get from the scripts in debug mode.
/usr/bin/rrdtool create \
/var/www/html/rra/exchange_server_service_state_33.rrd \
--step 300 \
DS:service_state:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
/usr/bin/rrdtool create \
/var/www/html/rra/exchange_server_service_state_33.rrd \
--step 300 \
DS:service_state:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
I'm sorry, I'm new to Cacti, I have been doing some research and it looks like I have to install something other than SNMP on my boxes, some people are using the Nagios agent from the looks of it and others are using a windows WMI gateway. If I have to install something can you point me in the right direction, if not where do I run these pearl scripts in debug mode.cigamit wrote:Actually, I was wanting the perl script results for when it polled the service.
Thanks for all your help
No, you don't have to install anything other than SNMP, Windows LanManager records the info in SNMP. You are getting info from SNMP about the service, its just a matter of figuring out why Cacti is seeing them as Down, then you can walk them to correctly see them as Up.arosenau wrote:I'm sorry, I'm new to Cacti, I have been doing some research and it looks like I have to install something other than SNMP on my boxes, some people are using the Nagios agent from the looks of it and others are using a windows WMI gateway. If I have to install something can you point me in the right direction, if not where do I run these pearl scripts in debug mode.cigamit wrote:Actually, I was wanting the perl script results for when it polled the service.
Thanks for all your help
Just run your log in MEDIUM mode (or DEBUG).
Console
Settings >> General >> Poller Logging Level
Then check the Cacti Log after the next polling. Look for a line like this.
Console
Settings >> General >> Poller Logging Level
Then check the Cacti Log after the next polling. Look for a line like this.
Also, make sure the host that you are checking is running SNMPv2c mode, not v1 or it won't see it.10/26/2006 04:25:07 PM - CACTID: Poller[0] Host[2] DS[23] SS[0] SERVER: /var/www/html/scripts/win_services.php win_services 10.1.0.1 UCS001 2 2 get servstate 25.65.86.71.55.32.65.108.101.114.116.32.77.97.110.97.103.101.114.32.83.101.114.118.101.114, output: 1
Who is online
Users browsing this forum: No registered users and 0 guests