Page 1 of 1

Order column service

Posted: Thu Aug 02, 2018 5:38 pm
by alex3105
I was looking at the following link for a similar problem.

https://support.nagios.com/forum/viewto ... =7&t=27312

Since I am adding switches but these are not ordered in a logical or human way .. I wanted to ask if someone could have ordered them

CPU
Device Fan
Power Supply
Port G1/0/1
Port G1/0/10
Port G1/0/11
Port G1/0/12
Port G1/0/2
Port G1/0/3
Port G1/0/4
Port G1/0/5
Port G1/0/6
Port G1/0/7
Port G1/0/8

Thanks..

Re: Order column service

Posted: Fri Aug 03, 2018 3:41 am
by danjoh
What we do here is simply to "prefix" single digit ports with a zero in the check output and the sorting problem is solved.

Code: Select all

Port G1/0/01
Port G1/0/02
Port G1/0/03
Port G1/0/04
Port G1/0/05
Port G1/0/06
Port G1/0/07
Port G1/0/08
Port G1/0/10
Port G1/0/11
Port G1/0/12
Of cause this is only possible with checks that you has written yourself or you have the possibility and skills to change the check.

Re: Order column service

Posted: Fri Aug 03, 2018 3:58 pm
by npolovenko
@danjoh, Thanks for the recommendation!

Re: Order column service

Posted: Sun Aug 05, 2018 10:44 pm
by alex3105
Excellent.. Thanks..!!