[solved] Apache server won't start

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

Moderators: Developers, Moderators

hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

For testing I gave the Everyone group Full Control on the Default Web Site. Now my cacti.log file has new entries BUT still no new rrd files and no joy on the graphs. Poller cache shows same number of rows (773) as before. Cacti.log file is attached - in full dev level debug for one cycle as far as I could tell.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Apache server won't start - no other web servers present

Post by BSOD2600 »

Well at least we know things are working, which is good... but permission issues still remain somewhere, which is why no updates since.

The Windows Task for the poller is running every 5 minutes, right? Does this user account have admin permissions? task running with highest privileges?
Reviewed http://docs.cacti.net/manual:088:1_inst ... e_security?
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

I have the poller task scheduled in Cacti (see pic). I did check the IIS_IUSRS Group and - you may recall previously I had no members in this group - it has a single user IIS APPPPOOL (also see pic). If I create a Windows Task for the poller should I disable the poller settings in Cacti?
Attachments
poller.JPG
poller.JPG (65.53 KiB) Viewed 2984 times
IIS USRS group member.JPG
IIS USRS group member.JPG (20.3 KiB) Viewed 2984 times
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

I configured a Windows Task for php poller.php to run every 5 minutes using the local administrator account. It has run successfully (per Task Scheduler) 3 times thus far yet no new rrd files are created in the rra folder. I checked permissions against your link and found that I didn't have the IIS_IUSRS group with correct access for Net-SNMP, RRD-Tool, or PHP folders. That group now has Full Access rights to each of these folders (this was done prior to the creation of the Windows Task) and still no new rrd files and no data on the graphs.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Apache server won't start - no other web servers present

Post by BSOD2600 »

Ah, missing windows task is one source of your problems as the Cacti poller was never even getting invoked. no, do not disable the cacti poller settings (per your pic).

no new rrd files will be created unless you created additional Data Sources (or graphs). They should be updated every polling cycle though. Start with the cacti.log. What entries are present from the latest polling cycle? do you see Cacti collecting SNMP & script data from devices?
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

Should the Windows Task call "php poller.php" or cmd.php? I got no results with the former (with Poller enabled in Cacti>Settings also) so I tried the latter (also with Poller enabled in Cacti>Settings), still no results. I made that change yesterday and in looking at the Task Manager logs I see it ran successfully until early this morning before I arrived - it fails to start every cycle now with the following error: Task Scheduler failed to start instance "{5f365045-1124-4658-98bb-71258b5dbab6}" of "\CACTI PHP POLLER" task for user "RV08SYSLOG\Administrator". Additional Data: Error Value: 2147942593.

I added another Device and waited a poll cycle, still no new rrd files. No new Cacti log entries with logging level set to Low but if I set it to Dev Debug level I do see new entries (below). I have 3976 rows in SNMP Cache so I presume SNMP data is or at least was being collected (no time stamps in the cache entries).

01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('deletion_verification', 'on')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('reindex_method', '1')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_retries', '3')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_port', '161')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_timeout', '500')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_priv_protocol', 'DES')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_priv_passphrase', '')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_auth_protocol', 'MD5')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_password', '')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_username', '')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_community', 'Beatter')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_ver', '2')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('rrdtool_version', 'rrd-1.2.x')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('snmp_version', 'net-snmp')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('log_perror', 'on')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('log_pwarn', '')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('log_pstats', '')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('log_verbosity', '2')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('log_export', '')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('log_graph', '')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('log_snmp', '')"
01/27/2014 03:11:30 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "replace into settings (name,value) values ('log_destination', '1')" o see entries (below).
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

Switched task back to php poller.php, it now runs without errors. Still no new rrds, with new device.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Apache server won't start - no other web servers present

Post by BSOD2600 »

please follow the installation guide from start to finish - http://docs.cacti.net/manual:088:1_inst ... er_windows
many of the issues you're encountering are due to misconfiguration.

yes, the task needs to run php poller.php

Also follow http://docs.cacti.net/manual:087:4_help.2_debugging for pointers on where things are breaking.
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

In going through the manual step by step I found 1) IIS_IUSRS group did NOT have Read/Execute rights to cmd.exe (does now) 2) php.ini items were uncommented out but had no spaces before/after the = sign (they do now) 3) php -m output as well as snmpwalk still shows missing modules - you said the php missing modules are not used by cacti, how about the missing modules - previously reported - in the snmpwalk output? 4) in my configured Windows Task I had a typo in the argument field (wwrwoot rather than wwwroot in the path to poller.php.

I again ran the "php poller.php" as the device I added most recently still showed in Console>Devices as having Status=Unknown, after running poller.php it has since had status = Up. I set the cacti.log setting to Debug waiting for the next Windows Task to run. After the task ran I now have graphs on the new device but still no data on any graphs. I also have new rrd files in the rra folder, with the time stamp of the Task rather than the time stamp of my manually running poller.php.

In looking over the cacti.log file vs. the debugging page on the web site I see no errors such as the examples shown on that page. The only entries that look like errors to me are these:

CMDPHP: Poller(0) Host(1) DS[7] WARNING: Result from CMD not valid. Partial Result: U

Is there a version of the debugging page for Windows installs perhaps?
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

Hold the phone - now getting graph data with no further changes, ~ 30 minutes after the most recent changes (Windows Task argument field typo correction).
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Apache server won't start - no other web servers present

Post by BSOD2600 »

sounds like its working now? :)

Next time, I would suggest removing all the components and using the windows installer. it helps with the small errors which can cause the various issues you've experienced ;)
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

Believe I am SOLD on the use of the Windows Installer. Yes it is working just populating it with over a hundred different network switches and routers 8)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests