thold showing only ip and not hostname

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
jlim0930
Posts: 40
Joined: Thu Oct 27, 2005 12:07 am

thold showing only ip and not hostname

Post by jlim0930 »

when i recieve down/up alerts from thold i am getting the IP's instead of the name set for it.

example :
Host Error : xxx.xxx.xxx.xxx is DOWN

Host Error : xxx.xxx.xxx.xxx is DOWN
Message : Host did not respond to SNMP

i believe the code is in /plugins/thold/setup.php

Code: Select all

$subject = "Host Error : " . $hosts[$host_id]["hostname"] . " is DOWN";
is there anyway to change it so that it will state the name instead of the ip ?
jlim0930
Posts: 40
Joined: Thu Oct 27, 2005 12:07 am

Post by jlim0930 »

since no one replied

i chaged the

Code: Select all

$subject = "Host Error : " . $hosts[$host_id]["hostname"] . " is DOWN";
to

Code: Select all

$subject = "Host Error : " . $hosts[$host_id]["description"] . " is DOWN";
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests