Ad Widget

Collapse

1 host server with 2 IP's on different ranges

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Coxroach1
    Junior Member
    • Mar 2019
    • 24

    #1

    1 host server with 2 IP's on different ranges

    Hi All,

    I have a virtual windows server with two network adapters.

    One as a 10.2.x.x ip, the other has 192.168.x.x - this is to allow communication on the main office vlan and the separate phone vlan.

    I have monitoring on the 10 range sorted as per a normal windows server but I would like to set up a telnet check to check connectivity from the host, using the 192.168 address to a telnet enabled device on the same IP range.

    below shows the config I have set up for it, and I am getting a "0" on the check but the telnet is working.

    Click image for larger version

Name:	Capture.JPG
Views:	1858
Size:	114.4 KB
ID:	391105
    Any advice would be great.

    Thanks.
  • Coxroach1
    Junior Member
    • Mar 2019
    • 24

    #2
    To add,
    I have added the 192.168 adapter into the host config on Zabbix to alolow me to specify it in the item, I haven't done anything to the agent config on the host.

    Also, I have tried this with the same lack of successs.

    Click image for larger version

Name:	Capture2.JPG
Views:	1909
Size:	111.7 KB
ID:	391110

    Comment

    • Coxroach1
      Junior Member
      • Mar 2019
      • 24

      #3
      Hi All,

      Any help on this would be amazing, I really want to get a check in place to make sure that a telnet service is working but none of the simple check configurations I try seem to work other than a ping.

      Thanks.

      Comment

      • gofree
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2017
        • 400

        #4
        I guess you need to cahnge zabbix item type to zabbix agent as simple checks are being performed from zabbix proxy/server.

        from docu:

        Simple checks are normally used for remote agent-less checks of services.

        Note that Zabbix agent is not needed for simple checks. Zabbix server/proxy is responsible for the processing of simple checks (making external connections, etc).

        Comment

        • Coxroach1
          Junior Member
          • Mar 2019
          • 24

          #5
          Thanks gofree , I have just started looking at rather than trying to get zabbbx to do it from a host to telnet server, to get the check to happen from the zabbix server itself.

          I have confirmed with putty that it works from the Zabbix server to telnet server, just trying to figure out how to turn that into a check. So far I have got to this point...
          Click image for larger version

Name:	zab2.JPG
Views:	1645
Size:	91.5 KB
ID:	391339

          Any further advice would be great.

          Thanks,

          Comment

          • Coxroach1
            Junior Member
            • Mar 2019
            • 24

            #6
            When I try to run the check in my last screenshot i get this error

            Click image for larger version

Name:	zab3.JPG
Views:	1607
Size:	12.3 KB
ID:	391341

            I just want it to telnet from itself to that IP and port and tell me if it works, I dont need to add the telnet server as a host. :-(

            Comment

            • gofree
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2017
              • 400

              #7
              guess you have the item wrong - the simple checks chceck if service is available and accepting connection - so basically your last check checks if telnet service is runnin on the ip you specified and listens port you specified = this os not a replacemenet to "telnet ip : port"
              Last edited by gofree; 06-12-2019, 13:22.

              Comment

              • Coxroach1
                Junior Member
                • Mar 2019
                • 24

                #8
                I have rechecked the item, using the select button to make sure iget the right one, but i still get the host not monitored error.

                Comment

                • gofree
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Dec 2017
                  • 400

                  #9
                  try to explain in simple human words what should be your check about ( i dont think youre check on screenshot is corresponding to what you trying to achieve )

                  Comment

                  • Coxroach1
                    Junior Member
                    • Mar 2019
                    • 24

                    #10
                    Thanks for taking the time gofree

                    My aim is as follows.

                    We have a Mitel phone system with a telnet service on it, when you connect to the telnet you can see the calls that are going through the system.

                    We have call reporting servers that pull that data, via telnet, and use it in reports.

                    I need to be able to monitor that the telnet server on the phone system is up and ideally accepting connections.

                    Ip of phone system 192.168.24.10, port it uses, 1752.

                    I can ping it and telnet to it from the Zabbix server using putty etc. so the networking routes and permissions should all be there.

                    Comment

                    • gofree
                      Senior Member
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Dec 2017
                      • 400

                      #11
                      1752 is the port where telnet service on the phone listens ? just to be sure

                      to which host is the item assigned ( whats the status of teh host enabled/disabled )

                      ?

                      Comment

                      • Coxroach1
                        Junior Member
                        • Mar 2019
                        • 24

                        #12
                        yes, 1752 is the listening port on the phone system. You can use default telnet port but you get a login request which I don't have credentials for, at this stage even knowing that the login request over default port was working would be a start.

                        At the moment it is assigned as an item to the Zabbix server however I have also tried assigning it to the server that in the real world is making the telnet call for the reporting. Neither work.


                        icmpping[192.168.24.10] - This works

                        net.tcp.service[telnet,192.168.24.10,1752] - This doesn't

                        Comment

                        • gofree
                          Senior Member
                          Zabbix Certified SpecialistZabbix Certified Professional
                          • Dec 2017
                          • 400

                          #13
                          if the port 1752 is not a port (custom port for telnet ) of telnet service running obviosuly your ceck will not work - because youre trying to check if telnet is running and responding on port 1752

                          I guess this port is port of another service ( not telnet ) which youd like to check - so basically you need to check if that port is responding - try net.tcp.port[<ip>,port] on zabbix agent or maybe simple check in this format net.tcp.service[tcp,192.168.24.10,1752]

                          Comment

                          • Coxroach1
                            Junior Member
                            • Mar 2019
                            • 24

                            #14
                            Thanks alot gofree , the net.tcp.service[tcp,192.168.24.10,1752] check works a treat!

                            Thank you so much for your time.

                            Comment

                            Working...