Ad Widget

Collapse

httpd and apache2 confusion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sylvain
    Junior Member
    • Jul 2007
    • 15

    #1

    httpd and apache2 confusion

    Hi,

    i'm new to zabbix, i have some experience with linux and windows administration, and i have idea of how to do the tricks

    First i had to create a new item and a new trigger for apache2, also i want to know if it's possible to modify the scripting in order to get a one-in-two-possible check: something like
    Code:
    {ZABBIX Server:proc.num[httpd].last(0)}<1 [B]OR[/B] {ZABBIX Server:proc.num[apache2].last(0)}<1
    knowing that i accept the idea of creating the new item and trigger but i want to do (after new hosts come in the monitoring circle) only the good check (apache1 or 2), because i would want to just modify one time Template_Linux and that's all with new hosts coming up with linux and agent installed (currently i disable apache1 or apache2 check for each case).

    Next, i searched and found in the forum that monitoring sql server performance was possible, but did not found something in the wiki.
    Same goes with exchange (but i just need to verify that its port is OK AND the banner come), and viewing windows logs.

    thank you supporting
  • sylvain
    Junior Member
    • Jul 2007
    • 15

    #2
    also i do not have any zabbix log created on a win32 client, i tried this
    LogFile=Zabbix_agentd.log
    LogFile=C:\Program Files\Zabbix Agent\Zabbix_agentd.log
    and this too
    LogFile="C:\Program Files\Zabbix Agent\Zabbix_agentd.log"
    discovery meet it, but do we need to add it manually in hosts ?

    thanks

    Comment

    • swaterhouse
      Senior Member
      • Apr 2006
      • 268

      #3
      Not sure about your trigger question.

      The windows log file should work, I have mine set like this:
      LogFile=C:\Program Files\Zabbix Agent\Zabbix_agentd.log

      What version of the agent are you running and are you sure it has started (after you set the logfile in the config file)?

      As for the SQL and Exchange templates I am sure they will get there, templates are new in 1.4. I will be working on building my SQL and Exchange templates over the next few weeks and will add them to the template page when they are done. I have already added a template for monitoring APC battery backup units and will probably upload one for monitoring Dell Open Manage status in the next few days as I clean it up and add features.

      Comment

      • sylvain
        Junior Member
        • Jul 2007
        • 15

        #4
        was my bad for logging, because i was using scotty http://www.zabbix.com/forum/showthre...highlight=nsis nsis source package, and debug was simply equal to 0 corrected.

        now i have a lot of

        2052:20070710:150521 Call to PdhCollectQueryData() failed: Aucune donnée à renvoyer.

        traduces like "nothing to send" in english
        the log is growing by 5kB by minute approximately.

        thanks for your stuff, keep up the good work; if i do some i will publish too. unfortunately, i'm just doing a work for 3 weeks but the side part is that i only work on that, and i think grabbing the banner of exchange or doing a simple SQL query will be enough.

        Comment

        • sylvain
          Junior Member
          • Jul 2007
          • 15

          #5
          also i had an answer for my trigger problem with the thread above

          Code:
          {Template_Linux:proc.num[httpd].last(0)}<1|{Template_Linux:proc.num[apache2].last(0)}<1

          Comment

          • sylvain
            Junior Member
            • Jul 2007
            • 15

            #6
            proc.num seems to work on windows however proc_cnt does not (contrary to what tell the documentation), but the pipe | did the trick for linux but not for windows (i know that windows in pain in ass with regulars).. so what to do next ?

            for linux no problem, but for windows this
            Code:
            {Template_Windows:proc.num[httpd.exe].last(0)}<1
            works, but this
            Code:
            {Template_Windows:proc.num[httpd.exe].last(0)}<1|{Template_Windows:proc.num[apache2.exe].last(0)}<1
            do not

            automatic monitoring of discovered interfaces ? where is it ? given that i have the latest version 1.4.1 how to enable it ? may i have a problem with permissions (that appeared with graphs) that shoot out this function ?

            i had to create host, graphs, add to map for a new discovery..

            Comment

            • sylvain
              Junior Member
              • Jul 2007
              • 15

              #7
              ok my bad, we have to create an action for auto-discovery.. btw would be nice if the documentation was up-to-date and with some descriptions about that

              Comment

              • chakatz
                Junior Member
                • Nov 2007
                • 4

                #8
                Originally posted by sylvain
                also i had an answer for my trigger problem with the thread above
                Code:
                {Template_Linux:proc.num[httpd].last(0)}<1|{Template_Linux:proc.num[apache2].last(0)}<1
                Does this actually work for you? I created a new item for apache2 and enabled it only on the apache2 servers. I also disabled the httpd item on the apache2 servers. I then edited the trigger like you said above and added the new part:
                Code:
                |{Template_Linux:proc.num[apache2].last(0)}<1
                But now I get "UNKNOWN" for the status of this trigger on all machines.

                Comment

                Working...