Unable to add network device in monitoring
Posted: Wed Oct 25, 2017 7:31 am
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
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