how can see all of my host sensor on one page

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

how can see all of my host sensor on one page

Post by baber »

hi

i have a problem i have added some host to my nagios monitoring but just have a problem i have take a pic from my problem and attached for example my localhost some sensors show on page 1 and one of them show on page 2

how can put all sensors for my localhost on one page



best regards
Babak
Attachments
p2.jpg
p1.jpg
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: how can see all of my host sensor on one page

Post by bwallace »

Sorry if stating the obvious, but have you tried increasing the value in the "Limit Results" drop down?
Attachments
results Core.jpg
results Core.jpg (10.16 KiB) Viewed 2658 times
Be sure to check out the Knowledgebase for helpful articles and solutions!
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

Re: how can see all of my host sensor on one page

Post by baber »

so thanks
if i change that it won\t be fix for all time and every time and maybe that is temporary how can fix it for all times?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: how can see all of my host sensor on one page

Post by ssax »

Edit this file:

Code: Select all

/usr/local/nagios/etc/cgi.cfg
Add this:

Code: Select all

result_limit=0
That will disable the limit, you can adjust it to another number if you'd like.

Thank you
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: how can see all of my host sensor on one page

Post by rkennedy »

@ssax has the easy answer.

You can also recompile Core, and change cgiutils.c, look for result_limit = 100; and change that to result_limit = 0;, then recompile. This will set the default to show _everything_, rather then 100.
Former Nagios Employee
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

Re: how can see all of my host sensor on one page

Post by baber »

ssax wrote:Edit this file:

Code: Select all

/usr/local/nagios/etc/cgi.cfg
Add this:

Code: Select all

result_limit=0
That will disable the limit, you can adjust it to another number if you'd like.

Thank you

thanks

but i think you did not understand my question correctly 2 notice:

1 - i don't want show all hosts on one page
2 - for example if i have 30 host i want nagios show them complete means if my localhost put on page 1 show all localhost sensors on page 1 not show 3 of localhost sensors on page 1 and 2of sensors show on page 2

how can solve this problem ?

best regards
babak
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: how can see all of my host sensor on one page

Post by ssax »

Unfortunately that functionality doesn't exist, you would need to modify the C code for the CGIs. You can create a feature request for it here if you'd like:

https://github.com/NagiosEnterprises/nagioscore

Thank you
Locked