Search found 22 matches

by Toddles18
Wed Mar 02, 2016 11:54 am
Forum: Help: General
Topic: Custom parameters to a script server query
Replies: 11
Views: 3166

Re: Custom parameters to a script server query

I found this trick, which doesn't require modifying any cacti code and is a simple solution http://forums.cacti.net/viewtopic.php?f=6&t=55704
by Toddles18
Wed Mar 02, 2016 11:50 am
Forum: Scripts and Templates
Topic: Passing parameters to a query script
Replies: 10
Views: 5750

Re: Passing parameters to a query script

A trick to get what you need without modifying stock cacti code.

http://forums.cacti.net/viewtopic.php?f=6&t=55704
by Toddles18
Wed Mar 02, 2016 11:48 am
Forum: Informational/HOWTO's
Topic: Pass custom parameters to Script Server Query arg_prepend
Replies: 0
Views: 4029

Pass custom parameters to Script Server Query arg_prepend

The problem I found was I needed to be able to pass a custom value to a DataQuery per host. This functionality is available natively with regular Script Input Methods, but not via Script Queries. In my case I'm collecting Microsoft SQL Server Statistics. I needed to be able to pass the ODBCName for ...
by Toddles18
Tue Jan 07, 2014 1:13 pm
Forum: Help: General
Topic: [solved] PHP Script server only recording 2 of 3 values
Replies: 1
Views: 552

Re: PHP Script server only recording 2 of 3 returned values

Well apparently I jinxed it by posting here, in a good way. It's working now. I did go into my datatemplate and changed the dropdown for cpuidle datasource to be cpuother, saved, and then changed back to cpuidle. maybe that fixed it.
by Toddles18
Tue Jan 07, 2014 1:07 pm
Forum: Help: General
Topic: [solved] PHP Script server only recording 2 of 3 values
Replies: 1
Views: 552

[solved] PHP Script server only recording 2 of 3 values

I wrote a PHP Script server file, it is returning values just fine for 2 of the 3 values, however the 3rd never gets stored in the rrd file. Here's my script file, pretty simple <?php #!/usr/bin/php -q /* do NOT run this script through a web browser */ if (!isset($_SERVER["argv"][0]) || is...
by Toddles18
Fri Apr 24, 2009 11:58 am
Forum: Help: General
Topic: [solved] Problem with Script Server
Replies: 3
Views: 842

I figured it out.

the Script Server doesn't care about anything that is directly printed from within the function. It needs the values to be returned.

Changing it from print $b; to return $b fixes it.
by Toddles18
Fri Apr 24, 2009 11:46 am
Forum: Help: General
Topic: [solved] Problem with Script Server
Replies: 3
Views: 842

Cacti Version - 0.8.7d Plugin Architecture - 2.4 Poller Type - Cactid v Server Info - Windows NT 6.0 Web Server - Apache/2.2.11 (Win32) PHP/5.2.8 PHP - 5.2.8 PHP Extensions - bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard...
by Toddles18
Fri Apr 24, 2009 10:36 am
Forum: Help: General
Topic: [solved] Problem with Script Server
Replies: 3
Views: 842

[solved] Problem with Script Server

I'm attempting to create a script server script, however I'm getting a u at the end of my results everytime. I've created an extremely basic test based on the script server walkthrough here http://docs.cacti.net/manual:087:3a_advanced_topics.2_php_script_server Here is my ss_test.php file <?php /* d...
by Toddles18
Wed Apr 22, 2009 12:05 pm
Forum: Help: General
Topic: [solved] access to view graphs without having to log in
Replies: 1
Views: 727

[solved] access to view graphs without having to log in

I've recently built a new cacti server using 8.7d. In my old version, 8.6i I had somehow configured it to not require you to login to look at the graphs. I'd like to do the same with my new install. How do you set that up? nevermind, figured it out. Guest now has a checkbox and has to be enabled.
by Toddles18
Tue Apr 21, 2009 9:32 am
Forum: Help: Windows Specific
Topic: internal Net-Snmp error condition detected in Cacti snmp_get
Replies: 4
Views: 4137

I got the permissions for CMD.exe fixed. First you need to disable UAC, then reboot. Then take ownership of the file. Then you can set permissions. it still didn't fix the problem when running as cmd though, still waiting on 2/2 pollers. Still getting the 04/21/2009 10:29:34 AM - SPINE: Poller[0] ER...
by Toddles18
Tue Apr 21, 2009 7:38 am
Forum: Help: Windows Specific
Topic: internal Net-Snmp error condition detected in Cacti snmp_get
Replies: 4
Views: 4137

I did install Net-SNMP. How do I stop utilizing it? Do I just break the paths on the path page? Is there an .ini setting that needs to be changed? An uninstall? Can't rename cmd.exe to copy my modified file, can't overwrite it either that I can tell. I'll work on trying to figure out how to do that....
by Toddles18
Mon Apr 20, 2009 3:28 pm
Forum: Help: Windows Specific
Topic: internal Net-Snmp error condition detected in Cacti snmp_get
Replies: 4
Views: 4137

internal Net-Snmp error condition detected in Cacti snmp_get

I'm seeing many lines like the following in my cacti error log. 04/20/2009 04:07:09 PM - SPINE: Poller[0] ERROR: An internal Net-Snmp error condition detected in Cacti snmp_get I'm also seeing a ton of snmp timeouts on machines that are working just fine with my old cacti install. A couple of questi...
by Toddles18
Fri Apr 17, 2009 2:07 pm
Forum: Help: Windows Specific
Topic: Spine Stripping Slashes from path?
Replies: 4
Views: 1756

The poller cache shows backslashes as well.
by Toddles18
Fri Apr 17, 2009 8:01 am
Forum: Help: Windows Specific
Topic: Spine Stripping Slashes from path?
Replies: 4
Views: 1756

I don't understand why it is switching my slashes. In my XML file it is using forward slashes.

Code: Select all

	<script_path>d:/php/php.exe -q d:/Apache2.2/htdocs/cacti/scripts/php_mssql_dbsizes.php</script_path>