Re: NRDP
Posted: Fri Jun 24, 2016 9:31 am
Thanks @eloyd!
@peter19x - that should do the trick, let us know if you have further questions.
@peter19x - that should do the trick, let us know if you have further questions.
Code: Select all
[root@GSIP_MGNT_A checkresults]# usermod apache -a -G nagcmd,nagios
usermod: user 'nagcmd,nagios' does not existCode: Select all
[root@GSIP_MGNT_A checkresults]# usermod -a -G nagcmd apache
[root@GSIP_MGNT_A checkresults]# groups apache
apache : apache nagcmd checkmkCode: Select all
-rwxrwx---. 1 apache nagcmd 228 Jun 27 09:53 coRycNjCode: Select all
[1467022444] Error: Got check result for service 'dbstatus' on host 'sbc-siplab02'. Unable to find serviceCode: Select all
define host{
host_name sbc-siplab02
address 172.25.25.11
check_command check-host-alive
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 5
contact_groups admins
notification_interval *
notification_period workhours
}
define service{
host_name sbc-siplab02
service_description dbstatus
check_period 24x7
max_check_attempts 5
normal_check_interval 5
retry_check_interval 1
}Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgCode: Select all
/home/nagiosscripts/send_nrdp.sh -u http://172.25.28.119/nrdp/ -t nb65fgtadI39 -H "sbc-siplab02" -s "dbstatus" -S 2 -o "DB status is DOWN"