Page 1 of 1

Monitor multiples url in single graph

PostPosted: Wed Jan 12, 2022 1:25 pm
by reema.pal
Requirement : Combined multiples url in single graph

My progress till now
I have implemented Nagiosgraph with Nagios
i am able to successfully monitor single host and single web urls in nagios graph
image.png

Now we need to monitor multiple web urls in a single graph,
my progress to achieve this
1. I have added the below line in /usr/local/nagios/share/side.php file under Trends word:
<li><a href="<?php echo $cfg["cgi_base_url"];?>/showgroup.cgi" target="<?php echo $link_target;?>">Graphs by Group</a></li>

2. After Uncommented the below in the nagiosgraph.conf file
# Location of showgroup control file (required for showgroup.cgi)
groupdb = /usr/local/nagios/nagiosgraph/etc/groupdb.conf

I Got below output
image.png

Reference Link: https://sysadminote.com/how-to-install- ... in-nagios/

i explored the blog and find below yellow colour highlighted line my problem is i am not able to understand how to create group in groupdb.conf file ,Kindly help me to configure the same.
- Use URLs as canned queries. For example, define a 'temperatures'
group in the groupdb.conf file that combines temperature data from
multiple hosts and service types, then create a link to that group:

http://server/cgi-bin/showgroup.cgi?group=temperatures
Reference Link : https://github.com/JasonRivers/nagiosgr ... README.pod