Page 1 of 1

Unable to add network device in monitoring

Posted: Wed Oct 25, 2017 7:31 am
by lrnnetops
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 -
1.JPG
2 -
2.JPG
3 -
network-device-adding-error.JPG
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

Re: Unable to add network device in monitoring

Posted: Wed Oct 25, 2017 10:12 am
by npolovenko
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.

Re: Unable to add network device in monitoring

Posted: Thu Oct 26, 2017 11:08 am
by lrnnetops
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

Re: Unable to add network device in monitoring

Posted: Thu Oct 26, 2017 11:48 am
by npolovenko
@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:

Code: Select all

su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Please let us know the output. You can delete or highlight any sensitive information.

Re: Unable to add network device in monitoring

Posted: Thu Nov 16, 2017 1:19 pm
by lrnnetops
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.
cisco-switch-conf-error.JPG
configuration-snapshot-details.JPG
Regards,
Rohan

Re: Unable to add network device in monitoring

Posted: Thu Nov 16, 2017 1:49 pm
by npolovenko
@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:

Code: Select all

max_execution_time = 30
to

Code: Select all

max_execution_time = 300

Then restart apache with:

Code: Select all

service httpd restart
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.

Re: Unable to add network device in monitoring

Posted: Wed Nov 29, 2017 2:44 pm
by lrnnetops
Hi npolovenko,

Thank you for your help. your suggestion solved our issue.

Please mark this thread as resolved.

Regards,
Rohan