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 Usage Report Error
Bandwidth Usage Report Error
You do not have the required permissions to view the files attached to this post.
Re: Bandwidth Usage Report Error
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.shBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bandwidth Usage Report Error
Tried the repair. Did not fix the error.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Bandwidth Usage Report Error
Can you please post the full output of running the repair_databases.sh please.
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.
Nagiosgraph is not part of XI. Why are you trying to install this when XI already has graphing built in?zuehaaro wrote:all the students ran into this error while installing Nagiosgraph.
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Bandwidth Usage Report Error
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.
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.
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Bandwidth Usage Report Error
After checking the repair output, the database seems fine. Are you still seeing messages indicating that there is still a database problem?
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: 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."
You are going to need to be able to confirm your snmp settings before proceeding.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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Bandwidth Usage Report Error
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
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.
Let us know if you have any further questions about Nagios.
Former Nagios Employee