Team,
We are trying to add & monitor our Cisco Switch. below steps we followed.
# Configure => Configuration Wizards => Network Switch / Router
# Mentioned our Switch IP, selected SNMPv2c & mentioned community name.
# Selected Monitor Using: Port's Number => Clicked Next
# We received list of ports of our switch => Clicked Next => Finish
Then below process happens.
1 -
2 -
3 -
It fails & show this error. below logs we collected from "/usr/local/nagiosxi/var/cmdsubsys.log" file.
===========================
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2017-10-25 05:09:43-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `nagiosql.login'
0K ............... .......... ... ................ ....... 267K=0.1s
2017-10-25 05:09:45 (267 KB/s) - `nagiosql.login' saved [37381]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=xxxxxxx' -O nagiosql.loginLOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2017-10-25 05:09:45-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... ..
PROCESSED 0 COMMANDS
500 Internal Server Error
2017-10-25 05:10:25 ERROR 500: Internal Server Error.
2017-10-25 05:10:25 ERROR 500: Internal Server Error.
NAGIOSQL WRITE CONFIGS FAILED!\n
OUTPUT=NAGIOSQL WRITE CONFIGS FAILED!\n
RETURNCODE=5
PROCESSED 1 COMMANDS
===========================
Please help us why the network device addtition getting failed.
Regards,
Rohan
Unable to add network device in monitoring
Unable to add network device in monitoring
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Unable to add network device in monitoring
Hello, @lrnnetops. I'd like to see your system profile. To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it here or send it to me in pm. If you send it via pm please notify us here as well.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it here or send it to me in pm. If you send it via pm please notify us here as well.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Unable to add network device in monitoring
Hi npolovenko,
We downloaded the profile which you asked, we found that it collect most of the data including password which is stored in configuration files.
Due to security reason we wont be able to share the full profile zip file. can you help us with the files you require to debug the issue accordingly we will send those.
Attached file is the output of "View System Info".
Regards,
Rohan
We downloaded the profile which you asked, we found that it collect most of the data including password which is stored in configuration files.
Due to security reason we wont be able to share the full profile zip file. can you help us with the files you require to debug the issue accordingly we will send those.
Attached file is the output of "View System Info".
Regards,
Rohan
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Unable to add network device in monitoring
@lrnnetops, I see. Do you have any previously failed configurations in core config manager?
In your command line please run to see if nagios has any general config errors:
Please let us know the output. You can delete or highlight any sensitive information.
In your command line please run to see if nagios has any general config errors:
Code: Select all
su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.shAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Unable to add network device in monitoring
HI npolovenko,
I was busy with the new setup, was unable to reply.
We have configured a new Nagios Xi server with version "5.4.8". We added most of our devices successfully but its fails only when we try to add Cisco Switch. which having a lots of ports.
Configuration failed to write file even when i just check a single port to monitor.
Let us know how can we fixed this issue & add our Cisco switch in nagios XI.
Regards,
Rohan
I was busy with the new setup, was unable to reply.
We have configured a new Nagios Xi server with version "5.4.8". We added most of our devices successfully but its fails only when we try to add Cisco Switch. which having a lots of ports.
Configuration failed to write file even when i just check a single port to monitor.
Let us know how can we fixed this issue & add our Cisco switch in nagios XI.
Regards,
Rohan
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Unable to add network device in monitoring
@lrnnetops, Is the wizard on a new system failing because of the 500 Internal Server Error as well or is it a timing out issue this time? Can you click on view command output next to the failed snapshot in CCM and tell us what you see?
Can you edit /etc/php.ini file and change:
to
Then restart apache with:
After that please go through the wizard again and wait to see if it fails or not. Please also make sure that the SNMP community string is correct.
Can you edit /etc/php.ini file and change:
Code: Select all
max_execution_time = 30Code: Select all
max_execution_time = 300Then restart apache with:
Code: Select all
service httpd restartAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Unable to add network device in monitoring
Hi npolovenko,
Thank you for your help. your suggestion solved our issue.
Please mark this thread as resolved.
Regards,
Rohan
Thank you for your help. your suggestion solved our issue.
Please mark this thread as resolved.
Regards,
Rohan