I realize this is not directly Nagios related, but the nagiosgraph forum is virtually dead for practical purposes and chances are that the question can be answered here.
This relates to version 1.5.2.
Probably a simple thing... it used to be possible to select graphs by left-clicking on their names in the upper right window of a nagiosgraph-page while holding ctrl on the keyboard. When you open a graph window, all graphs are shown by default. I. e. in a "CPU load" window you can pick only "load1" and "load5" to view them, with the mouse while holding ctrl, which makes all other graphs disappear.
After setting up nagiosgraph from scratch, I can only select one graph exclusivelsy. Holding ctrl and picking another one doesn't work any more. It is working in other installations, on the same client machine and the same browser.
And this is how it should be:
What do I need to set, and in which config file? Diff'ing the config files (I'm aware of) has not revealed anything.
TIA
Matthias
Nagiosgraph: how to select multiple graphs
Nagiosgraph: how to select multiple graphs
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
Re: Nagiosgraph: how to select multiple graphs
Unfortunately, since it's not our product we are very limited in the sort of solutions we can give. All I can say is that, on a fresh installation of nagiosgraph on top of Nagios Core 4.3.1, I was able to replicate this behavior of not being able to select multiple data sets.
On my install, it looks as if the underlying html is using <select> when it probably should be using <select multiple>. You might try re-compiling whatever CGI produces the overlay window with that in mind.
On my install, it looks as if the underlying html is using <select> when it probably should be using <select multiple>. You might try re-compiling whatever CGI produces the overlay window with that in mind.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Nagiosgraph: how to select multiple graphs
I've diff'ed the following cgi files:
with those from a working installation. They appear to be identical. They are working on CentOS 7, but are not working on Debian 8. Must be something else...
Code: Select all
export.cgi
show.cgi
showconfig.cgi
showgraph.cgi
showgroup.cgi
showhost.cgi
showservice.cgi
testcolor.cgi
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
Re: Nagiosgraph: how to select multiple graphs
If it's working fine on Cent7, I would check all packages installed on the machine and see if the similar ones are installed on the Debian machine.
I've also seen in the past, differences in the modules loaded by apache be the cause of this. Might be worth diffing these too.
I've also seen in the past, differences in the modules loaded by apache be the cause of this. Might be worth diffing these too.
Former Nagios Employee
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Nagiosgraph: how to select multiple graphs
In addition to what @rkennedy said, Debian appears to have a newer version of Apache. They are both the 2.4.x series, so I wouldn't imagine things would be that different, but it is a place where you might be able to do some digging around the <select> mentioned earlier.
Re: Nagiosgraph: how to select multiple graphs
Change nagiosgraph/etc/ngshared.pm:2460 (dataset selection)
from:
to:
Change nagiosgraph/etc/ngshared.pm:2467 (period selection)
from:
to:
https://gist.github.com/tmdoit/98dd1117 ... e1e906a387
from:
Code: Select all
$cgi->td($cgi->popup_menu(-name => 'db', -values => [], -size => DBLISTROWS, -multiple => 1)), "\n",
Code: Select all
$cgi->td($cgi->popup_menu(-name => 'db', -values => [], -size => DBLISTROWS, -multiple)), "\n",
Change nagiosgraph/etc/ngshared.pm:2467 (period selection)
from:
Code: Select all
$cgi->td($cgi->popup_menu(-name => 'period', -values => [@PERIOD_KEYS], -labels => \%period_labels, -size => PERIODLISTROWS, -multiple => 1)), "\n",
Code: Select all
$cgi->td($cgi->popup_menu(-name => 'period', -values => [@PERIOD_KEYS], -labels => \%period_labels, -size => PERIODLISTROWS, -multiple)), "\n",
Last edited by tmdoit on Fri Nov 17, 2017 4:57 am, edited 1 time in total.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact: