[Check_mk (english)] Check Host ip adress

Hi list,

I wonder if it is possible to check if a server has the right IP address configured.

Does the inventory which detects the server services and also interfaces keeps a track about the IP values of the interfaces ?

Thks

···

Guillaume Comte

06 25 85 02 02 | guillaume.comte@blade-group.com
90 avenue des Ternes, 75 017 Paris

Hi Guillaume,

Unfortunately ‘inventory’ doesn’t do that.

IP addresses aren’t stored (well, except the one you enter upon host creation ofcourse).

Easiest way I know of is to use a custom SNMP script to get this information from the devices.

Arno.

On Behalf Of Guillaume Comte

···

Hi list,

I wonder if it is possible to check if a server has the right IP address configured.

Does the inventory which detects the server services and also interfaces keeps a track about the IP values of the interfaces ?

Thks

Guillaume Comte

06
25 85 02 02 |
guillaume.comte@blade-group.com

90 avenue des Ternes, 75 017 Paris

Just my two cents … I think a local check could do the trick however you would have to either:
- hardcode the IP address you are expecting in the actual check, which kinda sucks
- use some automated tool such as ansible to create / populate the IP address into the local check upon provisioning or some other key point

···

On 19 Jun 2017, at 12:08, Arno Wijnhoven <arnow@vsnsystemen.nl<mailto:arnow@vsnsystemen.nl>> wrote:

Hi Guillaume,

Unfortunately ‘inventory’ doesn’t do that.
IP addresses aren’t stored (well, except the one you enter upon host creation ofcourse).

Easiest way I know of is to use a custom SNMP script to get this information from the devices.

Arno.

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de] On Behalf Of Guillaume Comte
Sent: vrijdag 16 juni 2017 12:35
To: checkmk-en@lists.mathias-kettner.de<mailto:checkmk-en@lists.mathias-kettner.de>
Subject: [Check_mk (english)] Check Host ip adress

Hi list,
I wonder if it is possible to check if a server has the right IP address configured.
Does the inventory which detects the server services and also interfaces keeps a track about the IP values of the interfaces ?
Thks

--
Guillaume Comte
06 25 85 02 02 | guillaume.comte@blade-group.com<mailto:guillaume@blade-group.com>
90 avenue des Ternes, 75 017 Paris
[http://www.code-shadow.com/img/blades.png]
_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de<mailto:checkmk-en@lists.mathias-kettner.de>
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

I don’t know if this is what you are talking about, but I setup a
cron job
to pull the hostnames and IP addresses using livestatus, then verify
that
the DNS entry for the IP matches the hostname. If any do not match,
it sends me an email. That’s how I catch when the admins re-ip or
re-name
a host without telling us.

···

On 06/20/2017 10:55 AM, Marius Pana
wrote:

  Just my two cents … I think a local check could do the trick

however you would have to either:
- hardcode the IP address you are expecting in the
actual check, which kinda sucks

    - use some automated tool such as ansible to create

/ populate the IP address into the local check upon provisioning
or some other key point

            On 19 Jun 2017, at 12:08, Arno Wijnhoven

<arnow@vsnsystemen.nl >
wrote:

                  Hi

Guillaume,

                  Unfortunately ‘inventory’ doesn’t do

that.

                  IP addresses aren’t stored (well,

except the one you enter upon host creation
ofcourse).

                  Easiest way I know of is to use a

custom SNMP script to get this information from
the devices.

Arno.

From: checkmk-en
[mailto:checkmk-en-bounces@lists.mathias-kettner.de] **On Behalf Of ** Guillaume
Comte
Sent: vrijdag 16
juni 2017 12:35
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk
(english)] Check Host ip adress

Hi list,

                      I wonder if it is possible to check if a

server has the right IP address configured.

                    Does the inventory which detects the server

services and also interfaces keeps a track about
the IP values of the interfaces ?

Thks

                            -- 

** Guillaume
Comte**

06 25 85
02 02 | guillaume.comte@blade-group.com

                                              90 avenue des Ternes,

75 017 Paris

                                               ![](http://www.code-shadow.com/img/blades.png)

            checkmk-en mailing list

            checkmk-en@lists.mathias-kettner.de

            [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)
_______________________________________________
checkmk-en mailing list

checkmk-en@lists.mathias-kettner.dehttp://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Thanks to point me to the livestatus, i wasn’t aware of this functionnality and it gives me much more idea of what i could achieve using it

I will dig this way

Thanks again

···

2017-06-20 18:42 GMT+02:00 Jam Mulch spammagnet10@gmail.com:

I don't know if this is what you are talking about, but I setup a

cron job

to pull the hostnames and IP addresses using livestatus, then verify

that

the DNS entry for the IP matches the hostname. If any do not match,

it sends me an email. That's how I catch when the admins re-ip or

re-name

a host without telling us.



  On 06/20/2017 10:55 AM, Marius Pana

wrote:

  Just my two cents … I think a local check could do the trick

however you would have to either:
- hardcode the IP address you are expecting in the
actual check, which kinda sucks

    - use some automated tool such as ansible to create

/ populate the IP address into the local check upon provisioning
or some other key point

            On 19 Jun 2017, at 12:08, Arno Wijnhoven

<arnow@vsnsystemen.nl >
wrote:

                  Hi

Guillaume,

                  Unfortunately ‘inventory’ doesn’t do

that.

                  IP addresses aren’t stored (well,

except the one you enter upon host creation
ofcourse).

                  Easiest way I know of is to use a

custom SNMP script to get this information from
the devices.

Arno.

From: checkmk-en
[mailto:checkmk-en-bounces@lists.mathias-kettner.de] **On Behalf Of ** Guillaume
Comte
Sent: vrijdag 16
juni 2017 12:35
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk
(english)] Check Host ip adress

Hi list,

                      I wonder if it is possible to check if a

server has the right IP address configured.

                    Does the inventory which detects the server

services and also interfaces keeps a track about
the IP values of the interfaces ?

Thks

                            -- 

** Guillaume
Comte**

06 25 85
02 02 | guillaume.comte@blade-group.com

                                              90 avenue des Ternes,

75 017 Paris

                                               ![](http://www.code-shadow.com/img/blades.png)

            checkmk-en mailing list

            checkmk-en@lists.mathias-kettner.de

            [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)
_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Guillaume Comte

06 25 85 02 02 | guillaume.comte@blade-group.com
90 avenue des Ternes, 75 017 Paris