The log file does not have graph data in it. The log file can be deleted as needed.
Hi, did you manage to solve this? have a same problem and I am not sure, if I can delete nagiosgraph.log file without screwing graphs
The time zone of the Nagios-server and the desktop system on which the nagiosgraph view was showed where not equal. The timezones are equalized and the problem is solved.
In the attachment you see a view of a Nagios service in Nagiosgraph. With the cursor on the black cross I see the date and time "25.09.2022 21:13". (I draw the black cross with mspaint because snipping tool doesn't copy the black cross.) Below the black cross I see "Mon 06:00". Today it is Monday 26 September 2022. The "Mon 06:00" is correct but the "25.09.2022 21:13" is not correct. How can I fix that?
Hi expert I need to get a description about rules used to display data in graphs with reference to the annual graph: a) the values shown in the graph refer to the data considered with what granularity (eg maximum detection frequency referred to in the previous point, daily frequency, intraday frequency to be specified)? b) in the case of frequency of detection of the values different from that used for the representation of the same in the graph (ie the data shown in the graph does not correspond...
OS: REHL 8 Server hosted in AWS. Nagios core version 4.4.6 I have installed nagiosgraph following https://sysadminxpert.com/install-nagiosgraph-for-nagios-core-on-centos-7/ However, I choose the directory /usr/local/nagios/nagiosgraph/ to download and extract nagiosgraph-1.5.2 instead of /usr/src/ as documented in the link above. I'm getting a following error at https://<ip>/nagios/cgi-bin/showconfig.cgi (see attached)</ip> Clicking on the graph icon returns an 500 - Internal Server Error Location...
OS: REHL 8 Server hosted in AWS. Nagios core version 4.4.6 I have installed nagiosgraph following https://sysadminxpert.com/install-nagiosgraph-for-nagios-core-on-centos-7/ However, I choose the directory /usr/local/nagios/nagiosgraph/ to download and extract nagiosgraph-1.5.2 instead of /usr/src/ as documented in the link above. I'm getting a following error at https://<ip>/nagios/cgi-bin/showconfig.cgi (see attached)</ip> Clicking on the graph icon returns an 500 - Internal Server Error Location...
OS: REHL 8 Server hosted in AWS. Nagios core version 4.4.6 I have installed nagiosgraph following https://sysadminxpert.com/install-nagiosgraph-for-nagios-core-on-centos-7/ However, I choose the directory /usr/local/nagios/nagiosgraph/ to download and extract nagiosgraph-1.5.2 instead of /usr/src/ as documented in the link above. I'm getting a following error at https://<ip>/nagios/cgi-bin/showconfig.cgi</ip>
OS: REHL 8 Server hosted in AWS. Nagios core version 4.4.6 I have installed nagiosgraph following https://sysadminxpert.com/install-nagiosgraph-for-nagios-core-on-centos-7/ However, I choose the directory /usr/local/nagios/nagiosgraph/ to download and extract nagiosgraph-1.5.2 instead of /usr/src/ as documented in the link above. I'm getting a following error at https://<ip>/nagios/cgi-bin/showconfig.cgi</ip>
I find the description confusing, and to set a 30+ min graphed service, each try takes SO LONG. It goes as: stepsizes = HOST,SERVICE,DATABASE=600;HOST,SERVICE,.=1200;.,.,.=300 Which requieres ¿2 host? ¿2 service?, or it’s 2 settings in 1 line? Please explain syntax. Thanks in advance.
I find the description confusing, and to set a 30+ min graphed service, each try takes SO LONG. It goes as: stepsizes = HOST,SERVICE,DATABASE=600;HOST,SERVICE,.=1200;.,.,.=300 Which requieres ¿2 host? ¿2 service?, or it’s 2 settings in 1 line? Please explain. Thanks in advance.
It's been a while, I've been able to fix it. The difference is in /usr/local/nagios/etc/nagiosgraph/ngshared.pm. Two lines must be changed: $cgi->td($cgi->popup_menu(-name => 'db', -values => [], -size => DBLISTROWS, -multiple)), "\n", $cgi->td($cgi->popup_menu(-name => 'db', -values => [], -size => DBLISTROWS, -multiple => 1)), "\n", and $cgi->td($cgi->popup_menu(-name => 'period', -values => [@PERIOD_KEYS], -labels => \%period_labels, -size => PERIODLISTROWS, -multiple)), "\n", $cgi->td($cgi->popup_menu(-name...
Using version 1.5.2, the text in my graphs appear as squares. See screenshot below. CGI log. nginx log and standard nagiosgraph log show no errors. RRDtool 1.7.2
Using version 1.5.2, the text in my graphs appear as squares. See screenshot below. CGI log and standard nagiosgraph log show no errors.
Using version 1.5.2, the text in my graphs appear as squares. See screenshot below.
Hello, I'm using Nagios Version 4.3.2 and Nagiosgraph 1.5.2. Everything seems to be working fine with graphs. The only issue I'm having is with sevice PING. It creates visual graphs only if all settings across all its service definitions are the same. For example I have host1 and host2, for which I'm monitoring PING like this: define service{ use local-service host_name host1 service_description PING check_command check_ping!0.500,20%!0.800,60% action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$'...
Hello Alan, Thanks for reply. I looked through README file https://sourceforge.net/p/nagiosgraph/git/ci/master/tree/README and I agree with you. Default rule in map file is being applied to received data: In our environment has being installed Nagios Core server as well as nagiosgraph into custom path. root@srv149:~# less /var/www/vhosts/nagios/nagiosgraph/etc/map ... ... # default rule. if none of the other rules did anything, then check for # perfdata that meets the standard format. ... ... That...
The /etc/nagiosgraph/map file contains the regular expressions used to parse the data received. I suspect that these values are being parsed by the default rule, but they need custom rules.
Hello guys, I have compiled from source code Nagios Core v4.4.6 and then proceed based on this article https://sysadmins.co.za/how-to-setup-the-nagiosgraph-plugin-on-nagios-monitoring-server/ in order to install nagiosgraph plugin. I have chosen standalone layout for installation of plugin. Installation of plugin went all right until I wanted to see graphs in Nagios GUI for several services. This plugin doesn't generate graph for some services. First affected service is related to monitoring of CPU...
Solution : yum install perl-Digest-MD5
No ideas anyone?
Maybe the appended graph explains my problem. And hier some data from perfdata.log. Seems to be ok. 1588832161||MPLS FRB HSRP||ICMP||OK - 192.168.13.244: rta 26.707ms, lost 0%||rta=26.707ms;1000.000;2000.000;0; pl=0%;40;80;; rtmax=27.070ms;;;; rtmin=26.577ms;;;; 1588832161||MPLS FRB 8M||ICMP||OK - 10.200.20.21: rta 25.013ms, lost 0%||rta=25.013ms;1000.000;2000.000;0; pl=0%;40;80;; rtmax=25.119ms;;;; rtmin=24.935ms;;;; 1588832163||MPLS LIN HSRP||ICMP||OK - 192.168.10.245: rta 0.129ms, lost 0%||rta=0.129ms;1000.000;2000.000;0;...
Hello together, I have a strange problem in nagiosgraph 1.5.2 on debian with Nagios Core 4.4.5. Since last week there are no lines for rtmin and rdmax, but I can see the values from before. And I can see line for packet loss also after the problem. The Problem appears at all icmp-graphs from different checkpoints. I dumped one example rrd-file and can see the following: <!-- 2020-04-30 09:30:00 CEST / 1588231800 --> <row><v>2.310000000e+01</v></row> <!-- 2020-04-30 10:00:00 CEST / 1588233600 -->...
Hi, I am looking to modify the colors of the lines shown in my graph using the showgraph.cgi on a custom dashboard. My GET request currently looks like the following to show the last weeks graph from different services: showgraph.cgi?host=HOST1&service=SVC1&db=duration,data&geom=700x180&rrdopts=+-snow-777600+-enow-0 This works pretty well, but I don't like to use different colors on the dashboard, so I tried to modify them by adding to rrdopts: +-colors-FF0000 and I tried also color without s and...
The use of a disk fluctuated between 90 % and 95 %. Nagiosgraph shows with RRD an Y-axis from 0 % to 100%. Therefor the fluctuation in the line is very small. Is it possible to show only the Y-axis part from 85 % to 100 %, to see more fluctuation in the line. If yes, how can I configure this.
The use of a disk fluctuated between 90 % and 95 %. Nagiosgraph shows with RRD an Y-axis from 0 % to 100%. Therefor the fluctuation in the line is very small. Is it possible to show only the Y-axis part from 85 % to 100 %, to see more functuation in the line. If yes, how can I configure this.
My assumption was wrong. The number of rrd files was not the problem. The "check_interval" was the problem. The default check_interval of 5 minutes give a good result and not "-nan" values. A higher check_interval then +/- 12 minutes result in "-nan" values in the graph.
Hi guys, I am wondering if u can help me with the Graph rotation, because currently my Graph log file is 80GB big since it has been running for the past three years. And i can't find the option to rotate the log so my disk does not fill up that much. Kind regards Dx86
Hi all, First of all, thanks so much in advance. I have managed to install Nagios and Nagiosgraph and got to have it working, creating rrd files and graphs too. However, I'm tracking two SNMP OIDs using the check_snmp plugin. One of those returns a number correctly and allows good graphs to be created. However, the second one generates a number and adds a letter at the end of the output, which creates weird graphs. Here is the output from each of the SNMP checks: GOOD OUTPUT [root@server]# /usr/local/nmsysclient/opt/nagios/check_snmp...
Can some one help, am having issues with the pre-check checking required PERL modules Carp...1.26 CGI...3.63 Data::Dumper...2.145 Digest::MD5... FAIL File::Basename...2.84 File::Find...1.20 MIME::Base64...3.13 POSIX...1.30 RRDs... FAIL Time::HiRes...1.9725 checking optional PERL modules GD...2.49 Nagios::Config... FAIL checking nagios installation found nagios exectuable at /usr/bin/nagios checking web server installation found apache executable at /usr/sbin/httpd *** one or more problems were d...
No one can Helo me to undertand ? Thanks Emilio
Configure this in the configuration file /usr/local/nagiosgraph/etc/nagiosgraph.conf For all graphs: rrdopts=--logarithmic For some services: logarithmic=service1,service2
Sorry , I forgot the second image
I'm Using Nagiosgraph 1.5.2 and Nagios Core 4.3.4 In September recorder High level of CPU usage on one server (between 80-90%) I printed the graph Now I look the CPU graph of this server and these high level are disapeared from YEAR graph Why ? I attach today and September graph images thanks for the help Regards Emilio
I've had this happen every single time I've installed nagios & nagiosgraph, on CentOS and on Ubuntu/Debian, regardless of any instructions I've ever found. Somewhere I have stumbled upon a fix, or what exactly it is I have to change to get this working, but for the life of me I can't remember what it is. I currently have the second-to-latest version installed and I'm too scared to upgrade it lest I get this same error once again when I do.
Hi, I am trying to install nagiosgraph using the information from https://gryzli.info/2014/11/20/centos-6-x-rhel-6-x-apache-nagios-4-x-install-nagiosgraph-plugin/ and I have expirienced a couple of issues. The first one, when I tried to run cpan> install Nagios::Config, it just hung and went nowhere, so I instead run cpan -i Nagios::Config which seemed to work fine. After that I did the full install and everything seemed to work OK, however there was a problem when I restarted the apache server and...
I have created 2 customer services for Memory and Disk, but the graph will not display more than 3.96Kb, when of course memory can be 8Gb-16Gb-32Gb, the same happens to the Disk size, the Y axis is stuck in 3.96Kb, how and where can I change the Y axis value for it to display properly on this 2 custom graphs. Any help is welcome Nagios 2.1.4 Debian 4.9.2
Nagiosgraph use the rrdtool to generate the png. The rrdtool support the generation of a png with a logarithmic Y-axis. Is it possible to configure Nagiosgraph on such a way that it generate a png with a logarithmic Y-axis?
Nagiosgraph use the rrdtool to generate the png. The rrdtool support the generation of a png with a logarithmic Y-axis. Is it possible to Nagiosgraph on such a way that it generate a png with a logarithmic Y-axis?
its clear that the relevant lines in groupdb file are being read, I am pasting the lines below Current=localhost,HV L1&db=hvL1,ipos,ineg Voltage=localhost,HV L1&db=hvL1,vpos,vneg Increasing the debug levels is not helpful, because the only log info that I keep getting is Please install the perl module Nagios::Object to obtain groups from the Nagios configuration, or specify groups manually in the groupdb file. Am sorry that I am at deadend, with no help coming from the community.
It seems that the logging behaviour of nagiosgraph (v1.5.2) needs to be straightened out . I investigated the problem that I posted above. I noticed that if I introduce a syntax error in my entries into groupdb file, then Nagiosgraph promptly logs that there is a syntax error. However, when there is no error reported, I'd expect it do something instead of making an log entry suggesting there there is no entry at all in the groupdb file!
Hi, I have Nagiosgraph v1.5.2 working OK with Nagios Core v4.3.4 I ran into problems when I used groupdb , and I am requesting here for help. I explain below. I have a set of services such as below, with the identically named data in the individual DB's Service name "HV L1", and DB name "hvL1" tha has four data namely ipos,vpos,ineg,vneg As default behavious Nagiosgraph shows one graph per service, and all four data in same plot. All OK till here. I then want to separate two graphs for each service,...
In our Nagios configuration, we have in the directory ~nagios/etc/objects/ 23 services defined with "graphed-service" on. In the directory ~nagiosgraph/var/rrd// we have 600 *.rrd files that are continuously updated. (Also for nagios services where "graphed-service" is off. Like the ping service. I don't unserstand that.) When I defined a new nagios service with "graphed-service" on, we see in the nagiosgraph screen no graph lines and as values "-nan". When I switch the "graphed-service" on an other...
I would like the graphs not to include warn and crit columns but just the data column by default, is this possible? I could use datasetdb.conf but this only works when a dataset has exactly the same columns across all hosts but some checks have different columns (db), for example IPMI Temperature where one host may have CPU Temp and others may have CPU1 Temp. I would like somethine list this: service=Temperature&db=,data Thanks,
I have installed nagiosgraph using the install.pl script, and everything seems to have gone well. I found the changes required by the newer httpd service (Require all granted), and the services (nagios and httpd) are happy. When I browse to the default nagiosgraph folder, I get a 403 Forbidden error. In the httpd error_log, I see: AH01276: Cannot serve directory /usr/local/nagiosgraph/share/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden...
I have installed nagiosgraph using the install.pl script, and everything seems to have gone well. I found the changes required by the newer httpd service (Require all granted), and the services (nagios and httpd) are happy. When I browse to the default nagiosgraph folder, I get a 403 Forbidden error. In the httpd error_log, I see: AH01276: Cannot serve directory /usr/local/nagiosgraph/share/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden...
I have installed nagiosgraph using the install.pl script, and everything seems to have gone well. I found the changes required by the newer httpd service (Require all granted), and the services (nagios and httpd) are happy. When I browse to the default nagiosgraph folder, I get a 403 Forbidden error. In the httpd error_log, I see: AH01276: Cannot serve directory /usr/local/nagiosgraph/share/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden...
If you need any other info I can provide it, just let me know what you need.
I got the following error while building the RPM on a RHEL 7 server. [root@ft-nagios nagiosgraph-1.5.2]# make rpm-package rm -rf nagiosgraph-1.5.2 /usr/bin/perl "-MExtUtils::Manifest=manicopy,maniread" \ -e "manicopy(maniread(),'nagiosgraph-1.5.2', 'best');" mkdir nagiosgraph-1.5.2 mkdir nagiosgraph-1.5.2/share mkdir nagiosgraph-1.5.2/t mkdir nagiosgraph-1.5.2/examples mkdir nagiosgraph-1.5.2/etc mkdir nagiosgraph-1.5.2/debian mkdir nagiosgraph-1.5.2/utils mkdir nagiosgraph-1.5.2/cgi mkdir nagiosgraph-1.5.2/lib...
Nagiosgraph doesn't delete data files, so something else did, or the configuration changed.
Hello, I noticed, that all my nagiosgraphs were deleted. I only have data for the last two days. Is there a routine to purge old data? Where can I config it? This is new problem, earlier I have data for the last months. Christian
Fix not working multiple selection for data sets and periods
Nagiosgraph (version 1.5.2) works correct during my former Nagios version. My former Nagios version was. 4.1.1. After the upgrade to Nagios 4.3.4 no new data is collected. The Nagiosgraph diagrams still show the data until the upgrade date. How can I debug what goes wrong?
The file /usr/local/nagios/etc/nagios.cfg contains the line: process_performance_data=0 The value 0 is changed to 1 After the restart of nagios with "sudo service nagios restart" the problem was solved.
Nagiosgraph (version 1.5.2) works correct during my former Nagios version. I don't know what my former Nagios version was. 4.x.y ? After the upgrade to Nagios 4.3.4 no new data is collected. The Nagiosgraph diagrams still show the data until the upgrade date. How can I debug what goes wrong?
See screenshot
How can i cange the background color of the graph its self. See picture, I like to change the background of the graph erea to gray as this will improve readability of the graph. But this cann't be done in the nagiosgraph.conf I mean the erea where the lines are drawn
How can i cange the background color of the graph its self. See picture, I like to change the background of the graph erea to gray as this will improve readability of the graph. But this cann't be done in the nagiosgraph.conf
I restore the file nagios.cfg of Nagios v4.0.8 and my nagiosgraph draws again!
I suggest we can extract the Nagios 4.0.8 nagios.cfg for temporary solution.
me too. After I upgraded the Nagios 4.0.8 to Nagios 4.3.2 and replaced the old nagios.cfg with the new one, nagiosgraph does not draw any data any more. My nagiosgraph version is 1.5.2.
I fixed this issue on Ubuntu 16.04 by installing older version of CGI via cpan. apt-get remove libcgi-pm-perl cpan MARKSTOS/CGI.pm-3.65.tar.gz Aafter that I re-built nagiosgraph and now I do not see any errors in logs.
I fixedthis issue on Ubuntu 16.04 by installing older version of CGI via cpan. apt-get remove libcgi-pm-perl cpan MARKSTOS/CGI.pm-3.65.tar.gz Aafter that I re-built nagiosgraph and now I do not see any errors in logs.
nagios graph working great for localhost linux , on windows machines I have installed NSClient, in nagios Im collecting data but no graphs are showed check screenshot my . CFG define service{ use generic-service ; Name of service template to use host_name BLABLA service_description PING check_command check_ping!100.0,20%!500.0,60% action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&geom=1000x200' onMouseOver='showGraphPopup(this)' onMouseOut='hideGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HO$...
nagios graph working great for localhost linux , on windows machines I have installed NSClient, in nagios Im collecting data but no graphs are showed check screenshot my . CFG define service{ use generic-service ; Name of service template to use host_name BLABLA service_description PING check_command check_ping!100.0,20%!500.0,60% action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&geom=1000x200' onMouseOver='showGraphPopup(this)' onMouseOut='hideGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HO$...
nagios graph working great for localhost linux , on windows machines I have installed NSClient, in nagios Im collecting data but no graphs are showed check screenshot TY for any ideas
nagios graph working great for localhost linux , on windows machines I have installed NSClient, in nagios Im collecting data but no graphs are showed check screenshot http://imgur.com/a/1RrrQ TY for any ideas
nagios graph working great for localhost linux , on windows machines I have installed NSClient, in nagios Im collecting data but no graphs are showed check screenshot http://imgur.com/a/yDEZ7 TY for any ideas
Permission is ok: drwsrwsrwt 12 nagios nagios 4096 Jul 29 14:35 . drwxrwxrwx 6 root root 4096 Jul 29 14:37 .. drwxr-sr-x 2 nagios nagios 4096 Jul 29 14:26 dkms4prod
rrd proccessed but no rrd files are created Sat Jul 29 14:34:56 2017 insert.pl 36260 info processing output/perfdata: hostname:dkms4prod servicedesc:IVR Play Record InProgress 0 output:IVR Play Record InProgress 0 = 0 perfdata:Traffic=0, Min=0, Max=0; Sat Jul 29 14:34:56 2017 insert.pl 36260 debug createrrd(1501331665,dkms4prod,IVR Play Record InProgress 0,Traffic) Sat Jul 29 14:34:56 2017 insert.pl 36260 debug createrrd rrdfile is /usr/local/nagios/var/rrd/dkms4prod/IVR%20Play%20Record%20InProgress%200___Traffic.rrd...
One command defined in ncpa.cfg file as an example check_command check_ncpa!-t 'XXXXXXX' -P 5693 -M system/age
Does anyone ever checks this forum?
I have the standard nagiosgraph setup installed however not data is being displayed? I can elaborate more when needed. It does graph for local server services. Thank you
I have a similar issue in the log file however my local host is graphing but not any remote host is says "no data available:" in the graph window, have you gotten any help yet? I am new to this whole deal so I am searching. My log output is below Mon Jun 26 16:29:05 2017 insert.pl warn output/perfdata not recognized: Thanks
I know that by clicking CTRL + Left click we should be able to pick info what we need, but we cant on that server.
http://imgur.com/0FDwfdP we can’t select all of the durations. That is, we can only select one from HOUR, DAY, QTR, MONTH, YEAR instead of multiple. Neither type of Data Sets works.
Hello, i am having issues with one of our Nagios servers. Anytime i am clicking on nagiosgraphs and pressing on "+" sign on top right corner, i cannot pick multiple "Periods" of time or multiple "Data Sets". Holding CTRL and pressing doesn't help. Anytime i open graphs i can only pick either data/Warning/critical but not multiple instances. Same goes for time period: day/Week/Month/Quarter/Year cannot pick multiple graphs. Nagiosgraph version 1.5.2 Is there anyway to fix this?
Is it possible to add feature for regex recognisation in service group file? We use regex to match all services on all hosts for easier administration. thanks a lot.
This worked!! Thank you so much. Sorry for only seeing this now, never received a email that you replied on this. I'm so glad I actually came back and had your answer.
We use Nagios 4.1.1. I create a service to check the interface_load of a Fortinet firewall. In the perfdata.log file I see line's like: 1494488351||fortinet-firewall||firewall_interface_load||38524|| I think that this line miss the fifth field. An (correct) line in the perfdata.log file is: 1494494214||acdc||CPU load||CPU load : 1%||cpu_used=1;75;99;0 This line has a fifth field. In the file nagiosgraph.log is see the message: Thu May 11 10:53:20 2017 insert.pl 4723 warn outout/perfdata not recognized:...
Hello Neil, thank you for your investigation and all information around this strange show.cgi output. Sadly, all my nagios installations run on Ubuntu which I need to upgrade from 12.04 (where nagiosgraph runs fine) to new 16.04. This is my output from cgiDemo.pl Version: 4.26 Value of widget is blue Value of widget, second time, is blue CGI::param called in list context from ./cgiDemo.pl line 20, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named...
Hi John, in Nagios, open the service and under the "Service State Information" section, see if there is any data recorded for "Performance Data:" Then run a manual check of the service from within Nagios and immediately open the perfdata.log file to see if you can see if it is recording the same performance data from that service. Finally, check the nagiosgraph.log file to see if it's processing that data okay.
I wrote a couple of nagios plugins. One is "check_uptime". The output has performance data as follows: UPTIME OK Last reboot at 04/22/2017 01:02:03, Uptime: 9 days, 19 hours, 45 minutes|'up time'=848707s;64800:;14400:;; As you can see, up time is 848707s (UOM of s = seconds according to Nagios UOM documentation). However In the nagiosgraphs, the Y Axis shows this data as raw numeric data rather than time related data. e.g. 848707s gets displayed on the Y axis going down in 100 K increments: 900 K...
I wrote a couple of nagios plugins. One is "check_uptime". The output has performance data as follows: UPTIME OK Last reboot at 04/22/2017 01:02:03, Uptime: 9 days, 19 hours, 45 minutes|'up time'=848707s;64800:;14400:;; As you can see, up time is 848707s (UOM of s = seconds according to Nagios UOM documentation). However In the nagiosgraphs, the Y Axis shows this data as raw numeric data rather than time related data. e.g. 848707s gets displayed on the Y axis going down in 100 K increments: 900 K...
I wrote a couple of nagios plugins. One is "check_uptime". The output has performance data as follows: UPTIME OK Last reboot at 04/22/2017 01:02:03, Uptime: 9 days, 19 hours, 45 minutes|'up time'=848707s;64800:;14400:;; As you can see, up time is 848707s (UOM of s = seconds according to Nagios UOM documentation). However In the nagiosgraphs, the Y Axis shows this data as raw numeric data rather than time related data. e.g. 848707s gets displayed on the Y axis going down in 100 K increments: 900 K...
I wrote a couple of nagios plugins. One is "check_uptime". The output has perfromance data as follows: UPTIME OK Last reboot at 04/22/2017 01:02:03, Uptime: 9 days, 19 hours, 45 minutes|'up time'=848707s;64800:;14400:;; As you can see, up time is 848707s (UOM of s = seconds according to Nagios UOM documentation). However In the nagiosgraphs, the Y Axis shows this data as raw numeric data rather than time related data. e.g. 848707s gets displayed on the Y axis going down in 100 K increments: 900 K...
If it wasn't clear, this also resolved the error messages that were stacking up in apache's error_log.
OK, solved my problem. /etc/nagiosgraph/ngshared.pm is sensitive to the version of the perl module "CGI". The default version delivered by CentOS7 works fine: [root@ayr ~]# rpm -q perl-CGI perl-CGI-3.63-4.el7.noarch My problem was caused by having a custom-compiled version of CGI, installed by cpanm, on the one server suffering the problem. Ansible's great, as long as everybody promises to never login to the system & do anything custom, ever. [matush], with recent Ubuntu, and [Christian] with 2-yr-old...
Better demonstration that the data is NOT the problem: On the server displaying the problem: stop nagios move the contents of /var/spool/nagiosgraph/rrd/ elsewhere retrieve from elsewhere, the dsc1/ directory, back into the rrd/ directory run the show.cgi program again: [root@ayr rrd]# host=dsc1 service="Load Avg" /usr/lib/nagiosgraph/cgi-bin/show.cgi > /tmp/raw2.html CGI::param called in list context from /etc/nagiosgraph/ngshared.pm line 234, this can lead to vulnerabilities. See the warning in...
Hey, perl's CGI module... that takes me right back to the mid-'90's! That means I can skip the browser, & run it directly from the commandline, thusly: [root@ayr tmp]# host=dsc1 service="Load Avg" /usr/lib/nagiosgraph/cgi-bin/show.cgi > raw.html CGI::param called in list context from /etc/nagiosgraph/ngshared.pm line 234, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl5/CGI.pm line 412. I've attached the resultant...
No luck! I stopped nagios, moved the contents of /var/spool/nagiosgraph/rrd/ elsewhere, then restarted Nagios. I waited a minute to get some new data, reloaded 'show.cgi' in my browser, and ... it's still broken (still can't select multiple items from either scrolling list widget). So, I don't think it's the data.
I second [matush]'s problem, and his suspicion that it might be related to [Christian]'s year-and-a-half-old problem. CentOS7, nagios v4.2.4-2 (from EPEL), nagiosgraph v1.5.2. Clients: everything I've tested: Chrome & Firefox on Windows & Linux. I build my Nagios environments using ansible, so they should all be the same. In Dev & Test, I don't see this problem. And, I have one Prod server, the "Monitor-of-Monitors", which only monitors the actual Prod server, and I don't see this problem. But on...
I have a simple service to check a backup on a daily basis as follows: define service{ use generic-service,nagiosgraph check_period once-a-day normal_check_interval 1440 ; 24 hours host_name gb-console service_description Console Backups check_command check_nrpe!check_console_backups } The local command simply checks for the existence of the backup file and confirms it's not an empty file. An example of the output is as follows: OK: Backup is 13549113 bytes I have an entry in the map file as follows:...
I have a simple service to check a backup on a daily basis as follows: define service{ use generic-service,nagiosgraph check_period once-a-day normal_check_interval 1440 ; 24 hours host_name gb-console service_description Console Backups check_command check_nrpe!check_console_backups } The local command simply checks for the existence of the backup file and confirms it's not an empty file. An example of the output is as follows: OK: Backup is 13549113 bytes I have an entry in the map file as follows:...
Hello, I have discovered the same error in logs. Ubuntu 16.04, Nagios 4.3.1 and Nagiosgraph 1.5.2 I don't know if this is somehow related but I have noticed a problem when you click to "Update Graphs" button. Right after page is reloaded there is only a year graph with the only last "data set" selected and it's not possible to select in "+" multiple periods or data sets. Any idea? Regards, Matush
You can look in the "Customizing the Graphs" section of the readme, to see if there's...
At least I was close! Just adding the missing 'dots' and following the process you...