Ad Widget

Collapse

Win32 Agent Extension

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeff.showers
    Junior Member
    • Aug 2006
    • 18

    #1

    Win32 Agent Extension

    Hi all, I'm sure I'm doing something wrong here, but nevertheless I need the help. I'm trying to add in a perl script that I wrote to tell me the daily max connections to an Oracle DB. I have the script written and working correctly, I'm just having a devil of a time adding it into the agent.

    UserParameter=oracle.maxconcurrent,perl d:\zabbix\zscripts\maxconcurrent.pl

    Using that, the agent spins up blank perl processes that sit and wait for me to kill them off. Any thoughts on how to get this to work properly?
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    trying putting perl d:\zabbix\zscripts\maxconcurrent.pl in either double quotes or single quotes... I'm thinking it's only running the perl part... not using all of it.

    Comment

    • jeff.showers
      Junior Member
      • Aug 2006
      • 18

      #3
      Gave the single and double quotes a try, it sets the UserParameter as being "Not Supported". Turned them both on in the host items list, and doesn't pull any information and never see perl show up in the Task Manager.

      Also tried wrapping the command in a .bat file for Zabbix to call, and got the endlessly running perl processes.

      What I'm beginning to wonder is if the DBD::Oracle libraries are failing to get loaded or something of the like when the system runs the command. Which would be odd to say the least since Zabbix is set to run as the service account that I've tested the perl scripts on the command-line with.

      Comment

      • jeff.showers
        Junior Member
        • Aug 2006
        • 18

        #4
        Now for some REAL fun.... I got fed up with what I was running into with the client not running the script right, so.... I have windows scheduler do it and just have the agent cat out the contents of a file that I'm dropping the results into.

        Well, the agent performs the cat and sends the value to the Zabbix server ... and then promptly STOPS reporting ANYTHING ELSE. *sigh*

        Comment

        • jeff.showers
          Junior Member
          • Aug 2006
          • 18

          #5
          Some more details in case someone might look and have an idea.... The server is Windows 2000 Server SP4, the agent is Zabbix Win32 1.1 (downloaded from the zabbix site on Friday), and running Oracle 8.1.7 as the only service/application

          Comment

          Working...