Page 1 of 1

Bandwidth Usage Report Error

Posted: Wed Jun 01, 2016 2:07 pm
by zuehaaro
I have been working with Nagios for a class and during the demonstration the instructor and all the students ran into this error while installing Nagiosgraph. "No valid devices are being monitored at this time."

I found another post on this forum that had a similar issue, but not a working solution.
I did post the same information that was requested in that forum that might be helpful in a word document containing screenshots of the error, the output of tail -f /var/log/httpd/error_log and a sample of the section of lines that were marked with errors in /usr/local/nagios/html/includes/utils-xmlsysstat.inc.php.

I have attached this information in a word document to this post.
Bandwidth report error.docx

Re: Bandwidth Usage Report Error

Posted: Wed Jun 01, 2016 4:47 pm
by tgriep
It looks like there are some errors in the mysql database, can you login as root to the XI server, run the following to repair it and see if this resolves the issue?

Code: Select all

cd /usr/local/nagiosxi/scripts
./repair_databases.sh

Re: Bandwidth Usage Report Error

Posted: Wed Jun 01, 2016 4:57 pm
by zuehaaro
Tried the repair. Did not fix the error.

Re: Bandwidth Usage Report Error

Posted: Wed Jun 01, 2016 6:59 pm
by Box293
Can you please post the full output of running the repair_databases.sh please.
zuehaaro wrote:all the students ran into this error while installing Nagiosgraph.
Nagiosgraph is not part of XI. Why are you trying to install this when XI already has graphing built in?

In relation to the Bandwidth Usage Report, had you run the Network Switch / Router wizard to monitor a device. This report is based off services created by that wizard.

Re: Bandwidth Usage Report Error

Posted: Thu Jun 02, 2016 6:12 pm
by zuehaaro
After seeing Box293's post I realize that I have confused two separate issues in my initial posting. The Nagiosgraph issue is another issue that has to do with the rrd directory not having any information. When I go to IPaddress/nagios/cgi-bin/show.cgi I get the error "No data in rrd directory /var/nagios/rrd."

This issue with the bandwidth report is most likely not related to nagiosgraph.

I have since attempted to use the switch/router wizard, but the wizard is unable to detect ports on the router. It says that this is most likely due to the switch being down, not at the correct address, or having SNMP support disabled. I know that the router is working and at the correct address, but I have been unable to access SNMP options. I am using a Linksys E1200 router for this home network. I cannot get into configuration mode from the GUI interface. I also am not able to telnet into the router because it simply gives me a "cannot connect on port 23 (default)" error. I have already enabled remote connection from the GUI interface and selected any IP address, but still cannot connect.

I have also posted the output of the database repair log here.
repairoutput.txt

Re: Bandwidth Usage Report Error

Posted: Thu Jun 02, 2016 6:32 pm
by Box293
After checking the repair output, the database seems fine. Are you still seeing messages indicating that there is still a database problem?
zuehaaro wrote: The Nagiosgraph issue is another issue that has to do with the rrd directory not having any information. When I go to IPaddress/nagios/cgi-bin/show.cgi I get the error "No data in rrd directory /var/nagios/rrd."
show.cgi does not come in Nagios XI and hence we cannot support your issue. Nagiosgraph is not part of XI. Why are you trying to install/use this when XI already has graphing built in?

zuehaaro wrote:I have since attempted to use the switch/router wizard, but the wizard is unable to detect ports on the router. It says that this is most likely due to the switch being down, not at the correct address, or having SNMP support disabled. I know that the router is working and at the correct address, but I have been unable to access SNMP options.
You are going to need to be able to confirm your snmp settings before proceeding.

Re: Bandwidth Usage Report Error

Posted: Fri Jun 03, 2016 8:03 am
by zuehaaro
I talked with someone at Linksys about my router model E1200 and was told that while it can support SNMP, it does not have a configuration mode or any select able options for it meaning that it can only act as a pass through. Judging by this response I think I can assume that because this home class router does not have SNMP support I will not be able to retrieve any data from bandwidth reports in Nagios.

Re: Bandwidth Usage Report Error

Posted: Fri Jun 03, 2016 10:34 am
by rkennedy
Ah - only some home router will support SNMP checking unfortunately. It'd be pretty cool if they enabled it all around!

Let us know if you have any further questions about Nagios.