Unable to add network device in monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Unable to add network device in monitoring

Post 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
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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Unable to add network device in monitoring

Post 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
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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Unable to add network device in monitoring

Post 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
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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Unable to add network device in monitoring

Post by lrnnetops »

Hi npolovenko,

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

Please mark this thread as resolved.

Regards,
Rohan
Locked