Service Monitoring Update
-
MOHAMMAD1412
- Posts: 9
- Joined: Sat Feb 20, 2016 8:39 am
Service Monitoring Update
Hi All,
I am new user to Nagios Tool.I like to know how to update the IP Address of an Service getting Monitored.User getting warning alerts stating the service is not responding.
Thanks In advance
I am new user to Nagios Tool.I like to know how to update the IP Address of an Service getting Monitored.User getting warning alerts stating the service is not responding.
Thanks In advance
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Service Monitoring Update
This would be in a host definition file, most likely in /usr/local/nagios/etc/objects/
After making the change you'll need to restart the nagios service:
What version of Nagios Core are you using?
After making the change you'll need to restart the nagios service:
Code: Select all
service nagios restartAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
MOHAMMAD1412
- Posts: 9
- Joined: Sat Feb 20, 2016 8:39 am
Re: Service Monitoring Update
Hi
Thanks for the update !!
I already updated the Hostname IP with the new one in hosts.cfg file but still it showing warning alert in console.
Please let me know if any more configuration file needs to be updated.
Thanks for the update !!
I already updated the Hostname IP with the new one in hosts.cfg file but still it showing warning alert in console.
Please let me know if any more configuration file needs to be updated.
Re: Service Monitoring Update
Can you post your services.cfg and/or hosts.cfg file with the appropriate information showing what service/host you are monitoring?
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Service Monitoring Update
Also - can you post a screenshot of what you're seeing? It will help us to know what we're looking for in the configuration files you post.
Former Nagios Employee
-
MOHAMMAD1412
- Posts: 9
- Joined: Sat Feb 20, 2016 8:39 am
Re: Service Monitoring Update
Hi All,
Thanks for the update !!
As requested please find the hosts.cfg,service.cfg and command.cfg
Hosts.cfg
define host {
use generic-host
host_name portal
alias portal
contact_groups unix-xxxx, portal-xxxx
address XX.XXX.XX.XXX
}
Service.cfg
define service{
use xxxx-service
hostgroup_name portal-xxxx
service_description PORTAL-HTTP
normal_check_interval 5
retry_check_interval 2
max_check_attempts 3
contact_groups portal-xxxx
notification_interval 120
notification_options w,u,c,r
check_command xxx_check_portal
}
command.cfg
define command{
command_name xxx_check_portal
command_line /usr/local/nagios/libexec/portal-check -H portal.xxx.xxx
}
Thanks In advance
Thanks for the update !!
As requested please find the hosts.cfg,service.cfg and command.cfg
Hosts.cfg
define host {
use generic-host
host_name portal
alias portal
contact_groups unix-xxxx, portal-xxxx
address XX.XXX.XX.XXX
}
Service.cfg
define service{
use xxxx-service
hostgroup_name portal-xxxx
service_description PORTAL-HTTP
normal_check_interval 5
retry_check_interval 2
max_check_attempts 3
contact_groups portal-xxxx
notification_interval 120
notification_options w,u,c,r
check_command xxx_check_portal
}
command.cfg
define command{
command_name xxx_check_portal
command_line /usr/local/nagios/libexec/portal-check -H portal.xxx.xxx
}
Thanks In advance
- Attachments
-
- Service Alert
- service alert.png (11.03 KiB) Viewed 2591 times
Re: Service Monitoring Update
It looks as though you are hard-coding the portal address in your check command:
Try changing that to -h $HOSTADDRESS$ and it will pick up the host address of the machine, not a hard-coded value.
Code: Select all
command_line /usr/local/nagios/libexec/portal-check -H portal.xxx.xxx
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Service Monitoring Update
@eloyd is right - give this a try and let us know if you have any further questions.
Former Nagios Employee
-
MOHAMMAD1412
- Posts: 9
- Joined: Sat Feb 20, 2016 8:39 am
Re: Service Monitoring Update
Hi All,
Thanks for your updates !!
Issue got resolved. The problem was with the URL which is getting monitored.Once updated the URL with the new one , issue got fixed.
Thanks
Thanks for your updates !!
Issue got resolved. The problem was with the URL which is getting monitored.Once updated the URL with the new one , issue got fixed.
Thanks
Re: Service Monitoring Update
Glad to see it resolved.
Going to close this thread out now, but feel free to make a new one if you ever need assistance in the future!
Going to close this thread out now, but feel free to make a new one if you ever need assistance in the future!
Former Nagios Employee