LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Any NagiosXI users here? Need help (https://www.linuxquestions.org/questions/linux-software-2/any-nagiosxi-users-here-need-help-937795/)

brokenpromises 04-02-2012 09:31 PM

Any NagiosXI users here? Need help
 
Hi Guys,

Im trialling nagiosXI and it isnt going very well. Everything was running alright until I tried to add a new hostgroup through the interface, this happened;

Code:

Checking services...
Error: Service check command 'check_xi_service_snmp' specified in service 'Battery Status' for host 'APC Smart-UPS 5000' not defined anywhere!
Error: Service check command 'check_xi_service_snmp' specified in service 'Output Load' for host 'APC Smart-UPS 5000' not defined anywhere!
Error: Service check command 'check_xi_service_snmp' specified in service 'Power State' for host 'APC Smart-UPS 5000' not defined anywhere!
Error: Service check command 'check_xi_service_snmp' specified in service 'Remaining Battery Charge' for host 'APC Smart-UPS 5000 AKL' not defined anywhere!
Error: Service check command 'check_xi_service_snmp' specified in service 'Replace Battery Flag' for host 'APC Smart-UPS 5000' not defined anywhere!
Error: Service check command 'check_xi_service_snmp' specified in service 'Battery Status' for host 'APC Smart-UPS 5000 ' not defined anywhere!
Warning: Service 'Battery Status' on host 'APC Smart-UPS 5000 ' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp' specified in service 'Output Load' for host 'APC Smart-UPS 5000 ' not defined anywhere!
Warning: Service 'Output Load' on host 'APC Smart-UPS 5000 ' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp' specified in service 'Power State' for host 'APC Smart-UPS 5000 ' not defined anywhere!
Warning: Service 'Power State' on host 'APC Smart-UPS 5000 ' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp' specified in service 'Remaining Battery Charge' for host 'APC Smart-UPS 5000 ' not defined anywhere!
Warning: Service 'Remaining Battery Charge' on host 'APC Smart-UPS 5000 ' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp' specified in service 'Replace Battery Flag' for host 'APC Smart-UPS 5000 ' not defined anywhere!
Warning: Service 'Replace Battery Flag' on host 'APC Smart-UPS 5000 ' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp' specified in service 'Battery Status' for host 'APC Smart-UPS RT 5000 RM XL AKL' not defined anywhere!
Error: Service check command 'check_xi_service_snmp' specified in service 'Output Load' for host 'APC Smart-UPS RT 5000 RM XL AKL' not defined anywhere!
Error: Service check command 'check_xi_service_snmp' specified in service 'Power State' for host 'APC Smart-UPS RT 5000 RM XL AKL' not defined anywhere!
Error: Service check command 'check_xi_service_snmp' specified in service 'Remaining Battery Charge' for host 'APC Smart-UPS RT 5000 RM XL AKL' not defined anywhere!
Error: Service check command 'check_xi_service_snmp' specified in service 'Replace Battery Flag' for host 'APC Smart-UPS RT 5000 RM XL AKL' not defined anywhere!
Error: Service check command 'check_xi_service_snmp_win_load' specified in service 'CPU Usage' for host 'O-DR1' not defined anywhere!
Warning: Service 'CPU Usage' on host 'O-DR1' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp_win_storage' specified in service 'Drive C: Disk Usage' for host 'O-DR1' not defined anywhere!
Warning: Service 'Drive C: Disk Usage' on host 'O-DR1' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp_win_storage' specified in service 'Drive D: Disk Usage' for host 'O-DR1' not defined anywhere!
Warning: Service 'Drive D: Disk Usage' on host 'O-DR1' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp_win_storage' specified in service 'Drive Z: Disk Usage' for host 'O-DR1' not defined anywhere!
Warning: Service 'Drive Z: Disk Usage' on host 'O-DR1' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp_win_process' specified in service ' Movement v1.0b' for host 'O-DR1' not defined anywhere!
Warning: Service ' Movement v1.0b' on host 'O-DR1' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp_win_process' specified in service 'SQL Server' for host 'O-DR1' not defined anywhere!
Warning: Service 'SQL Server' on host 'O-DR1' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp_win_storage' specified in service 'Virtual Memory Usage' for host 'O-DR1' not defined anywhere!
Warning: Service 'Virtual Memory Usage' on host 'O-DR1' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp_win_load' specified in service 'CPU Usage' for host 'O-SAFE1' not defined anywhere!
Warning: Service 'CPU Usage' on host 'O-SAFE1' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp_win_storage' specified in service 'Drive C: Disk Usage' for host 'O-SAFE1' not defined anywhere!
Warning: Service 'Drive C: Disk Usage' on host 'O-SAFE1' has no default contacts or contactgroups defined!
Error: Service check command 'check_xi_service_snmp_win_storage' specified in service 'Drive D: Disk Usage' for host 'O-SAFE1' not defined anywhere!

There are about a 100 of these errors. I have no idea what caused them, I just went to add a host group and clicked "Apply".

Anyone?

chrism01 04-03-2012 12:16 AM

Lets start here
Code:

Error: Service check command 'check_xi_service_snmp' specified in service ' ... not defined anywhere!
This says you don't have the relevant check cmd installed (or the path doesn't see it).
In my std nagios install, check_... progs are in /usr/local/nagios/libexec, you should have a similar dir somewhere.

Code:

has no default contacts or contactgroups defined!
On my system /usr/local/nagios/etc/objects/contacts.cfg

On a more general level, you need to check nagios.cfg (/usr/local/nagios/etc on my system)

HTH

brokenpromises 04-03-2012 12:21 AM

Hi Chris,

Thanks for the reply. The problem is within nagiosXI, it claims the commands don't exist however they do;

And when I run a

Code:

$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg


Code:

Total Warnings: 57
Total Errors:  0

Things look okay - No serious problems were detected during the pre-flight check

it returns some warnings but definitely no errors. But when I try to 'commit' the changes from within the NagiosXI web interface it doesn't want any of it!

This leads me to beleive the error is within the NagiosXI web interface... not sure where to start looking!

brokenpromises 04-03-2012 12:29 AM

Issue resolved -- I was logged in as my personal user account, but I logged in as 'nagiosadmin' which is the administrative account created as install and commited the changes and it went right through. Odd.

angel115 04-03-2012 04:46 AM

Quote:

Originally Posted by brokenpromises (Post 4643253)
Issue resolved

If so, please mark your thread as solved (Thread Tool > Mark this thread as solved)

And thank you for your feedback on how you solve the issue.


All times are GMT -5. The time now is 07:57 PM.