Monitor multiples url in single graph

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
reema.pal
Posts: 2
Joined: Wed Jan 12, 2022 1:10 pm

Monitor multiples url in single graph

Post by reema.pal »

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
Locked