Page 1 of 1

need to change Host Status Information

Posted: Wed Sep 09, 2015 2:26 pm
by zaji_nms
Dear Expert

The below is Host Detail (Host Status)

10.10.1.88 ,, Up ,, 27d 9h 2m 8s ,, 1/1 ,, 2015-09-09 22:02:14 ,, OK - 10.10.1.88: rta 2.188ms, lost 0%

The last info : OK - 10.10.1.88: rta 2.188ms, lost 0% : is Status Information. I want to add some more detail in this but do not know which script I have to change.

FYI, in the HOST config, no Check Command (its blank). Just there is Manage Templates is : xiwizard_switch_host

Appreciate your guidance....Please let us know /usr/local/nagios/libexec/ which script I have to edit.

Regards

Re: need to change Host Status Information

Posted: Wed Sep 09, 2015 3:01 pm
by lmiltchev
The "xiwizard_switch_host" template uses "check_icmp". You can view the usage of the plugin by running the following command in the CLI:

Code: Select all

/usr/local/nagios/libexec/check_icmp -h

Re: need to change Host Status Information

Posted: Fri Sep 11, 2015 7:34 am
by zaji_nms
Dear lmiltchev

Cannot edit ,, /usr/local/nagios/libexec/check_icmp

Just we want to add more SysUptime Only last part ,, 13 days, 8:45:07.10 in every Host UP Status (Host Status Information)

FYI, we are monitoring our customer router-CPE (end user device) and Auto Notification generate to them when links goes down, many time they do not reply as they know its due to power issue. Also we cannot follow-up all 100s of customer via email/phone call. When we do Monthly Availability Report, we do not know , it was down due to Power issue or our Last Mile provider network issue. If SysUpTime get added in the Host Status Information, will help us that it was due to some end user issue or our last mile provider issue. If SysUpTime is short (in minutes/hours) then customer side issue (customer responsibility) and if SysUpTime is more (in days) then our Last Mile Provider issue (ISP responsibility).

Appreciate your help. You can copy add new check_icmp as check_icmp_sysuptime and add SysUpTime info, we will copy new as below

cp /usr/local/nagios/libexec/check_icmp_sysuptime /usr/local/nagios/libexec/check_icmp

it will help to meet our SLA.

Please see the attached, picture say more than words, this is Host State History

Regards

Re: need to change Host Status Information

Posted: Fri Sep 11, 2015 9:47 am
by lmiltchev
If you overwrote the "check_icmp", all of the checks that are using it would fail. You would be better off to leave it alone and create a service that would use "check_icmp_sysuptime". This way, you will have the ping and the uptime. You can also modify the host command to override the "check_icmp", which is inherited from the template if you wish, i.e.

Code: Select all

./check_snmp -H <ip address> -C <community> -o .1.3.6.1.2.1.1.3.0
SNMP OK - Timeticks: (143043700) 16 days, 13:20:37.00 |
example01.PNG
Hope this helps.