Ad Widget

Collapse

some questions: ping printer, vb scripts, cpu.load ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Phil2
    Junior Member
    • Jan 2011
    • 16

    #1

    some questions: ping printer, vb scripts, cpu.load ...

    Hello,

    I have some questions to Zabbix, it would be amazing if you can help me.

    I use version 1.8.3 on a Linux centos server and most of my hosts/servers are windows 2003/2008 servers.
    On each Windows server run the Zabbix agent.(http://www.suiviperf.com/zabbix/).

    All works fine, but now my questions:

    - Is it possible to ping a printer or switch behind the Windows server and if it unreachable/down to get a warning? If yes, where can I find a manuel or please can you tell me the steps?
    - Is it possible to run vb or bat scripts on the Windows server / zabbix agent and if it get a “false” code, to get a warning? Where I can find a manuel or do you now the steps?
    - What means the system.cpu.load when I have 7 as threshold, how much percent are 7?
    Is it possible to get the infos and warnings in percent on a windows server?

    Best Regards,
    Phil
    Last edited by Phil2; 18-01-2011, 18:48.
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    Originally posted by Phil2
    - Is it possible to ping a printer or switch behind the Windows server and if it unreachable/down to get a warning? If yes, where can I find a manuel or please can you tell me the steps?
    What do you mean by "behind the Windows server" ?
    If the printer is connected on the network, it can be pinged as any network equipment, you just need to know its IP address or DNS name.
    If it is physically attached to the windows server (parallel, serial or USB), you will probably need to get directly this information from Windows server itself with zabbix agent.

    Originally posted by Phil2
    - Is it possible to run vb or bat scripts on the Windows server / zabbix agent and if it get a “false” code, to get a warning? Where I can find a manuel or do you now the steps?
    Yes of course, you need to use UserParameter in zabbix agent.
    Originally posted by Phil2
    - What means the system.cpu.load when I have 7 as threshold, how much percent are 7?
    Is it possible to get the infos and warnings in percent on a windows server?
    CPU load has nothing to do with CPU percent utilization.
    If you want to know CPU utilization, you'd better use system.cpu.util item.

    Hope this helps,
    JBo

    Comment

    • Phil2
      Junior Member
      • Jan 2011
      • 16

      #3
      Hi JBo,

      Thanks for your help!

      Do you mean i must add the printer to the hosts at the Zabbix Webinterface like a server?
      I thought i must do this with the agent conf.

      I will try all your instructions.

      Thanks a lot!

      Best Regards,
      Phil

      Comment

      • JBo
        Senior Member
        • Jan 2011
        • 310

        #4
        Hi,

        Originally posted by Phil2
        Do you mean i must add the printer to the hosts at the Zabbix Webinterface like a server?
        Yes, that is what I do.

        Regards,
        JBo

        Comment

        • Phil2
          Junior Member
          • Jan 2011
          • 16

          #5
          ok thanks!
          which item i must use to ping a printer or other device? is it icmpping or agent.ping?

          Comment

          • JBo
            Senior Member
            • Jan 2011
            • 310

            #6
            Hi,

            Originally posted by Phil2
            ok thanks!
            which item i must use to ping a printer or other device? is it icmpping or agent.ping?
            icmpping obviously since you can't install zabbix agent on a printer

            Regards,
            JBo

            Comment

            • Phil2
              Junior Member
              • Jan 2011
              • 16

              #7
              JBo, please can you give me an example for the ping item.
              Whats the settings for the item, the application and the trigger?
              Maybe you can make some screenshots, it would be amazing!

              The printer dont have a official ip address, just a private 192.168... to give the host the offical ip from the router/modem (like by the windows server) is enough?

              Thanks!

              Best Regards,
              Phil

              Comment

              • JBo
                Senior Member
                • Jan 2011
                • 310

                #8
                Hi,

                Originally posted by Phil2
                JBo, please can you give me an example for the ping item.
                Whats the settings for the item, the application and the trigger?
                Maybe you can make some screenshots, it would be amazing!
                Well, you have to do your homework
                Template_Standalone is a good start for item and trigger examples (it contains icmpping check).
                You'll also find a lot of information in Zabbix documentation

                Originally posted by Phil2
                The printer dont have a official ip address, just a private 192.168... to give the host the offical ip from the router/modem (like by the windows server) is enough?
                Do you mean that Zabbix cannot join directly the printer ?
                You have not described your network setup. In case you are trying to monitor a remote site where the only device that can be joined is the Windows server, you will not be able to monitor directly the printer.
                You will have to ping your printer from zabbix agent installed on Windows server. It is currently discussed in another thead.

                Hope this helps
                JBo

                Comment

                • Phil2
                  Junior Member
                  • Jan 2011
                  • 16

                  #9
                  I tried to describe my network setup in the last posts .

                  Thanks for the thread, but it describe the settings for a linux agent and not for windows, do you know how i can use the ping command on a windows zabbix agent?

                  Best Regards,
                  Phil

                  Comment

                  • bbrendon
                    Senior Member
                    • Sep 2005
                    • 870

                    #10
                    Are the zabbix server and the windows agent _not_ on the same network? Is that why you want to ping the printer using the windows server/agent?

                    If you're trying to ping a printer with a windows agent, don't quote me (I've been out of touch for awhile), but I think you'll have to invent that feature with a userparameter. I don't think the agent has ICMP capabilities, though you can check the docs.
                    Unofficial Zabbix Expert
                    Blog, Corporate Site

                    Comment

                    • Phil2
                      Junior Member
                      • Jan 2011
                      • 16

                      #11
                      Hi bbrendon,

                      Zabbix server and windows agent are not on the same network.
                      And yes this is why i want ping the printer using the windows agent.

                      I know i must use the userparameter but i cannot find a solution or a manuel which describe the steps for the windows agent or the agent on a windows host.

                      Best Regards,
                      Phil

                      Comment

                      • JBo
                        Senior Member
                        • Jan 2011
                        • 310

                        #12
                        Hi Phil,

                        If you just want to know if the printer is up, it may be easier to check some TCP port from zabbix agent rather than ICMP ping since the agent can do it without external scripts.
                        You can use net.tcp.port[IP,PORT] with IP, IP address of the printer and PORT, TCP port to check.

                        Depending on your printer model you'll have to find out which ports are open.
                        Often, ports 515 (LPD), 9100 (HP JetDirect) or even 80 (a lot of printers have an embedded web server) are opened.

                        Hope this helps,
                        JBo

                        Comment

                        • Phil2
                          Junior Member
                          • Jan 2011
                          • 16

                          #13
                          Hi JBo,

                          I tried it but it does not work.

                          My settings - windows agent:
                          UserParameter=net.tcp.port,192.168.114.200,80

                          Zabbix webinterface item:
                          zabixx_agent
                          net.tcp.port[192.168.114.200,80]
                          numberic
                          and standard settings

                          Zabbix webinterface trigger:
                          {Springerg.:net.tcp.port[192.168.114.200,80].last(0)}=0
                          and standard settings

                          On the server log i get this error message:
                          Springerg.:net.tcp.port[192.168.114.200,80]] error: Type of received value [Der Befehl "192.168.114.200" ist entweder falsch geschrieben oderkonnte nicht gefunden werden] is not suitable for value type [Numeric (unsigned)]
                          it have a problem with the command.

                          Comment

                          • JBo
                            Senior Member
                            • Jan 2011
                            • 310

                            #14
                            Hi,

                            Originally posted by Phil2
                            My settings - windows agent:
                            UserParameter=net.tcp.port,192.168.114.200,80
                            You don't need to do that, net.tcp.port is internal to zabbix agent.
                            No need to define a UserParameter.

                            Originally posted by Phil2
                            Zabbix webinterface item:
                            zabixx_agent
                            net.tcp.port[192.168.114.200,80]
                            numberic
                            and standard settings
                            This part seems OK.

                            Hope this helps,
                            JBo

                            Comment

                            • Phil2
                              Junior Member
                              • Jan 2011
                              • 16

                              #15
                              ok it think i am on the right way...
                              but now if i disconnect the lan-cabel from the printer i get only a message at the server log and not in the webinterface or mail:
                              29069:20110124:163933.530 Item [Springerg.:net.tcp.port[192.168.114.200,80]] error: Get value from agent failed: ZBX_TCP_READ() failed [Interrupted system call]

                              Comment

                              Working...