Re: disk_check plugin issue

Kaouther Mechri <[email protected]> Wed, 27 Jun 2018 15:28:37 +0200
Newsgroups gmane.network.nagios.plugins
Message-ID <CAK2O9BY2XYdTguHDoE1JHJ8mD=0p_dXHGaGg4wjUhbjnXhkBXQ__11554.6880675995$1530105998$gmane$org@mail.gmail.com>
--000000000000a4457a056f9f970b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Soumaya

Are you using nrpe or nsca checks  ?


Best regards
Kaouther


On Wed, Jun 27, 2018 at 11:23 AM, soumaya saddi <[email protected]>
wrote:

> Hello,
>
> I am writing to you today in order to solve the check_disk issue I am
> having. I am using Icinga2 as a monitoring solution and I would like to
> check the disk of my monitored hosts.
>
> The issue with the check_disk plugin is that it doesn't take any ip
> address as an input/parameter. So when I check the disk of a host it
> actually check the disk of my local machine which is the monitoring serve=
r
> and not the host I want to monitor.
>
> Is there a way to modify this plugin in order to make the check on the
> hosts and not on my local machine?
>
> I tried to modify the check_disk script but I found out it is a binary
> file :(
>
> I hope to hear soon from you and thank you so much.
>
> Faithfully yours
>
>
>
> *Soumaya SADDI=C3=89tudiante en Master II =C3=A0 la Sorbonne Universit=C3=
=A9*
> *Sp=C3=A9cialit=C3=A9 - R=C3=A9seaux et S=C3=A9curit=C3=A9  *
>
> *+33 6 15 78 08 77*
> [image: https://www-npa.lip6.fr/~fourmaux/LOGO_SCIENCES_SU_med.jpg]
>

--000000000000a4457a056f9f970b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello Soumaya=C2=A0<div><br></div><div>Are you using nrpe =
or nsca checks=C2=A0 ?=C2=A0</div><div><br></div><div><br></div><div>Best r=
egards=C2=A0</div><div>Kaouther=C2=A0</div><div><br></div></div><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, Jun 27, 2018 at 11:=
23 AM, soumaya saddi <span dir=3D"ltr">&lt;<a href=3D"mailto:soumaya.saddi@=
gmail.com" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<=
br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left=
:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><span style=3D"font-size=
:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:n=
one;display:inline">Hello,</span><br style=3D"font-size:12.8px;text-decorat=
ion-style:initial;text-decoration-color:initial"><br style=3D"font-size:12.=
8px;text-decoration-style:initial;text-decoration-color:initial"><span styl=
e=3D"font-size:12.8px;text-decoration-style:initial;text-decoration-color:i=
nitial;float:none;display:inline">I am writing to you today in order to sol=
ve the check_disk issue I am having. I am using Icinga2 as a monitoring sol=
ution and I would like to check the disk of my monitored hosts.</span><br s=
tyle=3D"font-size:12.8px;text-decoration-style:initial;text-decoration-colo=
r:initial"><br style=3D"font-size:12.8px;text-decoration-style:initial;text=
-decoration-color:initial"><span style=3D"font-size:12.8px;text-decoration-=
style:initial;text-decoration-color:initial;float:none;display:inline">The =
issue with the check_disk plugin is that it doesn&#39;t take any ip address=
 as an input/parameter. So when I check the disk of a host it actually chec=
k the disk of my local machine which is the monitoring server and not the h=
ost I want to monitor.</span><br style=3D"font-size:12.8px;text-decoration-=
style:initial;text-decoration-color:initial"><br style=3D"font-size:12.8px;=
text-decoration-style:initial;text-decoration-color:initial"><span style=3D=
"font-size:12.8px;text-decoration-style:initial;text-decoration-color:initi=
al;float:none;display:inline">Is there a way to modify this plugin in order=
 to make the check on the hosts and not on my local machine?</span><br styl=
e=3D"font-size:12.8px;text-decoration-style:initial;text-decoration-color:i=
nitial"><br style=3D"font-size:12.8px;text-decoration-style:initial;text-de=
coration-color:initial"><span style=3D"font-size:12.8px;text-decoration-sty=
le:initial;text-decoration-color:initial;float:none;display:inline">I tried=
 to modify the check_disk script but I found out it is a binary file :(</sp=
an><br style=3D"font-size:12.8px;text-decoration-style:initial;text-decorat=
ion-color:initial"><br style=3D"font-size:12.8px;text-decoration-style:init=
ial;text-decoration-color:initial"><span style=3D"font-size:12.8px;text-dec=
oration-style:initial;text-decoration-color:initial;float:none;display:inli=
ne">I hope to hear soon from you and thank you so much.</span><br clear=3D"=
all" style=3D"font-size:12.8px;text-decoration-style:initial;text-decoratio=
n-color:initial"><div style=3D"font-size:12.8px;text-decoration-style:initi=
al;text-decoration-color:initial"><div class=3D"m_-7341948999598831085gmail=
-m_-7150489001838534859gmail_signature"><br></div><div class=3D"m_-73419489=
99598831085gmail-m_-7150489001838534859gmail_signature">Faithfully yours</d=
iv></div><br clear=3D"all"><div><div class=3D"m_-7341948999598831085gmail_s=
ignature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><b><span=
 style=3D"font-family:times new roman,serif"><span style=3D"color:rgb(11,83=
,148)">Soumaya SADDI<br><br>=C3=89tudiante en Master II =C3=A0 la Sorbonne =
Universit=C3=A9</span></span></b></div><div><b><span style=3D"font-family:t=
imes new roman,serif"><span style=3D"color:rgb(11,83,148)">Sp=C3=A9cialit=
=C3=A9 - R=C3=A9seaux et S=C3=A9curit=C3=A9 =C2=A0</span></span></b><br><sp=
an><div><b><span style=3D"font-family:times new roman,serif"><span style=3D=
"color:rgb(11,83,148)"></span></span></b></div></span><b><span style=3D"fon=
t-family:times new roman,serif"><span style=3D"color:rgb(11,83,148)">+33 6 =
15 78 08 77<br></span></span></b></div><div><img src=3D"https://www-npa.lip=
6.fr/~fourmaux/LOGO_SCIENCES_SU_med.jpg" alt=3D"https://www-npa.lip6.fr/~fo=
urmaux/LOGO_SCIENCES_SU_med.jpg" width=3D"96" height=3D"38"></div><div><spa=
n><span></span></span></div></div></div></div>
</div>
</blockquote></div><br></div>

--000000000000a4457a056f9f970b--