Windows and CACTI

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

Moderators: Developers, Moderators

Post Reply
balbino.caballero
Posts: 9
Joined: Tue Aug 10, 2010 7:12 pm

Windows and CACTI

Post by balbino.caballero »

Good Night,

I've been for around 2 weeks trying to figure out what's going on with my CACTI installation. It's a fresh install in Windows 2003 Server.

My problem is this: When I run cacti, I don't get any graphs. I've already discarded all the information of article http://forums.cacti.net/viewtopic.php?t=11747 .

To avoid giving permissions to the IIS_XXXX user and IUSR_XXX accounts on Windows 2003, I've created and account called cacti with its own password and gave the permissions as stated in the article.

After a complete check I've done to my installation, and after viewing the log cacti file included, the rrdtool installed is working fine. Also right know I've debug mode in the poller configuration and the graphs configuration.

If I checked the graphs information with the debugging mode of graphs, the RRdTool says nothing, empty.

Attached to this email, is included information regarding the configuration I have extracted from Cacti Technical Support Page. The only wrong thing I've got is the rrdtool that the page says is the wrong one, but I've already downloaded from rrdtool.org from version 1.0 to 1.3.X and I've got the same result.

What I can't understand is why cacti is not showing graphs if everything working fine? Is it an rrdtool issue? can somebody help me with this because I'm going nuts with this and MRTG is not graphing correctly what I need to view.

thanks for any help
Attachments
Technical Support screenshot I've extracted from my cacti installation with all the things installed.
Technical Support screenshot I've extracted from my cacti installation with all the things installed.
Console -- Utilities -- Technical Support_1281486038295.png (221.78 KiB) Viewed 4431 times
output_cacti_log.txt
Output of the Cacti log file
(76.09 KiB) Downloaded 110 times
rrdTool Version Used
rrdTool Version Used
rrdtool_version.PNG (13.54 KiB) Viewed 4431 times
Graph Management Debug Mode sample
Graph Management Debug Mode sample
Console -- Graph Management -- (Edit)_1281486862303.png (57.62 KiB) Viewed 4431 times
Result of the graphing process [Empty :..( ]
Result of the graphing process [Empty :..( ]
Graphs -- Tree Mode_1281486886590.png (75.98 KiB) Viewed 4431 times
balbino.caballero
Posts: 9
Joined: Tue Aug 10, 2010 7:12 pm

More Information missed in the previews post

Post by balbino.caballero »

Attached is more info of my problem
Attachments
Console -- Cacti Settings_1281487211436.png
Console -- Cacti Settings_1281487211436.png (61.86 KiB) Viewed 4429 times
Console -- Cacti Settings_1281487222197.png
Console -- Cacti Settings_1281487222197.png (56.57 KiB) Viewed 4429 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) for the rrdtool version issue, click save on the Settings -> General page to make sure the settings are set in the db.

2) have you applied all the 0.8.7g patches?
3) running PIA ?
4) Typically when rrdtool says: blank -- it's a lack of proper NTFS security permissions. You entirely sure the cacti account you created has read/execute permissions on cmd.exe and rrdtool.exe? Sysinternals Process Monitor will reveal why rrdtool is broken...
balbino.caballero
Posts: 9
Joined: Tue Aug 10, 2010 7:12 pm

File Permissions

Post by balbino.caballero »

Attached File Permissions to the cacti user I've created for both files.


Cacti already patched with the 0.8.7g files stated in cacti.net download oficial patches section.
Attachments
rrdtool_permissions.PNG
rrdtool_permissions.PNG (66.82 KiB) Viewed 4412 times
cmd_permissions.PNG
cmd_permissions.PNG (83.88 KiB) Viewed 4412 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

BSOD2600 wrote: Sysinternals Process Monitor will reveal why rrdtool is broken...
fire it up and look through the logs when you try to view a graph.
balbino.caballero
Posts: 9
Joined: Tue Aug 10, 2010 7:12 pm

Process Monitor Log File

Post by balbino.caballero »

Already done the process monitor before.. and everything seems to be running smoothly

Attached is the log file capture for the rrdtool process and the cmd.exe respectively
Attachments
LogFile.txt
(590.78 KiB) Downloaded 116 times
cmd_php.txt
(1.96 MiB) Downloaded 138 times
balbino.caballero
Posts: 9
Joined: Tue Aug 10, 2010 7:12 pm

Cacti Log after viewing graphics

Post by balbino.caballero »

Attached Cacti Log when I try to view graphics. For this I enabled everything for debugging purposes.
Attachments
Console -- Utilities -- View Cacti Log File_1281574114376.png
Console -- Utilities -- View Cacti Log File_1281574114376.png (135.73 KiB) Viewed 4351 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Please repost those in the native PML file format.

A very quick look through cmd_php.txt and I don't see rrdtool.exe even running... which is obviously not good.

Does cmd.exe have read/execute permissions on c:\rrdtool\ folder per chance?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Moving to WIndows
R.
balbino.caballero
Posts: 9
Joined: Tue Aug 10, 2010 7:12 pm

Post by balbino.caballero »

I've past the last three days watching the Process Monitor log, and analyzing all the stuff done until today, and still nothing.

The process Monitor every 5 minutes as stated in the scheduled task, the rrdtool runs and writes the info in the rrd files located in the RRA folder of my cacti installation.

I've already made some tests for the rrdtool checking if it's working from command line, and all the tests I've made are working, but the graphs aren't displayed.

Just as a curiosity: If my setup is using an another user instead of the IUSR_xxx AND IIS_xxx accounts to do the job, aren't there any things that should i check specifically in that user? Maybe I'm forgetting something that I've missed during the installation setup and I can't see it clearly?

Any ideas of what's going wrong?

thx..
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

rrdtool is called via different methods/users for Cacti.
* The Cacti scheduled task user. This process is started off by php.exe poller.php (which in tern either launches cmd.php or spine.exe). These processes do the data collection and invoke rrdtool update commands.
* The IIS anonymous user, typically IIS_WPG and IUSR_XXX. The IIS WWW service, invokes cmd.exe which in tern invokes the rrdtool.exe graph command. From your previous trace, I see cmd.exe running but not rrdtool.exe...

Is the cacti scheduled task using your 'cacti' user account too?

To validate it's a permission issue, you could temporarily grant the 'cacti' user account Admin rights, and then check if the graphs start to display.
balbino.caballero
Posts: 9
Joined: Tue Aug 10, 2010 7:12 pm

Information Verified

Post by balbino.caballero »

Ladies and Gentlemen, boyz and girlz... as a rule of thumb in a windows installation. If you're going to create variables to work for a specific software, always, but ALWAYS remember to create them as SYSTEM VARIABLES!!!

After logging inside the cacti user, I've noticed that it sends me an error every time it was running, stating the "module not found" message. To my surprise, the variables for SNMPCONFPATH and MIBSDIR where user variables (administrator variables).

After creating these variables in my target system, I'm still getting no images. Attached the cacti log from today after correcting the issue.

I've already granted the cacti user administrator rights, and in the local PC (domain server) it doesn't show the graphs..

Also I've noticed something... If I go to Console->Devices I've associated the devices I've registered with the SMP Generice device and cacti puts the status "not being graphed".

Could be a missing plugin?
Attachments
Console -- Utilities -- View Cacti Log File_1282352202234.png
Console -- Utilities -- View Cacti Log File_1282352202234.png (1.07 MiB) Viewed 4081 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) please post log files as attachments and not screenshots.

2) the cacti log output looks fine

3) Obviously still some misconfiguration if graphs are not being rendered. fire up Sysinternals Process Monitor, click on a graph, save the log and attach it.
balbino.caballero
Posts: 9
Joined: Tue Aug 10, 2010 7:12 pm

Process Monitor Log

Post by balbino.caballero »

Attached is the Process Monitor Log captured whe I log to the equipment as the cacti user, and when I tried to view a Graph from Graph tree.

This log is from today.

cheers,
balbino.caballero
Posts: 9
Joined: Tue Aug 10, 2010 7:12 pm

LogFile

Post by balbino.caballero »

I've done the Process Monitor LogFile Capture... please download it from
https://sites.google.com/site/balbinocaballero/

Sorry to post it like that, but my account already reached the 5MB quota.. :cry:
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests