by Victor Pineda » Wed Dec 08, 2021 10:25 pm
Hi gormank,
Thanks for your reply.
Assuming you're using Nagios Core, are you putting the .cfg files in the correct dir?
**That's right, I add the files in the correct path and also add them in the nagios.cfg file
Have you checked the nagios.log file for information regarding new hosts / services?
**I found this in the last lines of the log:
[1639019371] Warning: Return code of 127 for check of service 'SSH' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019411] Warning: Return code of 127 for check of service 'Swap Usage' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019481] Warning: Return code of 127 for check of service 'Current Load' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019501] Warning: Return code of 127 for check of service 'Total Processes' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019521] Warning: Return code of 127 for check of service 'Current Users' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019561] Warning: Return code of 127 for check of service 'HTTP' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019591] Warning: Return code of 127 for check of service 'PING' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019631] Warning: Return code of 127 for check of service 'Root Partition' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019671] Warning: Return code of 127 for check of host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019671] Warning: Return code of 127 for check of service 'SSH' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019711] Warning: Return code of 127 for check of service 'Swap Usage' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019781] Warning: Return code of 127 for check of service 'Current Load' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019801] Warning: Return code of 127 for check of service 'Total Processes' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019821] Warning: Return code of 127 for check of service 'Current Users' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019861] Warning: Return code of 127 for check of service 'HTTP' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019891] Warning: Return code of 127 for check of service 'PING' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
[1639019931] Warning: Return code of 127 for check of service 'Root Partition' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Can you post one of the host / service configs not working?
## 'FTPTRANSFER.#######.COM' host definition
define host{
use generic-noping-webhost-ssl
host_name FTPTRANSFER.######.COM
alias ftptransfer.######.com
display_name ---------
address FTPTRANSFER.########.COM
check_command check_ssh
check_command check_ftp
max_check_attempts 5
notifications_enabled 0
notification_interval 0
notification_period 24x7
notification_options d,u,r
contact_groups Helpdesk
_react_instructions
icon_image globe.png
notes
_location AWS
_lob Brokerage, GTM
_env Production
_role SFTP Server
_current_os n/a
_current_os_ver n/a
_target_os TBD
_target_os_ver TBD
_apps App: FTP Server
_svcs Svc: File Integration
_url sftp:ftptransfer.######.com
_nat Dynamic
_os_owner GS-Wintel
_db_owner GS-Wintel
_app_owner GS-Wintel
_bus_owner
_strategy Invest (SFTP service consolidation)
### Service definition
define service{
use generic-service
host_name TRANSFER.#########.COM
service_description ftptranfer.#######.com port 21
is_volatile 0
check_period 24x7
max_check_attempts 5
normal_check_interval 760
retry_check_interval 360
notifications_enabled 0
contact_groups
_react_instructions
notification_interval 0
notification_period 24x7
notification_options c,r,s
check_command check_tcp!21
}
Thanks in advance.
Victor Pineda