Page 1 of 2
Issue with TSM Backup
Posted: Thu Mar 15, 2018 9:48 am
by keerthi.seetharaman
Hello Team,
We have few servers where we have configured for a service called as "Check TSM Backup" and we found that it is throwing an critical error called as " NRPE: Command 'tsmmonitor' not defined."
We have a script called as tsmbackup.sh defined in $Arg1' and the command that we have used is check_xi_by_ssh.
Can you please help or suggest what needs to be done as this is impacting production servers and this needs to be fixed as soon as possible. Screenshot attached for your ref.
Re: Issue with TSM Backup
Posted: Thu Mar 15, 2018 10:52 am
by lmiltchev
Are you sure that the "NRPE: Command 'tsmmonitor' not defined." message is generated by this particular service? You are using check_by_ssh, not check_nrpe...
Can you show us the
nagios-tsmbackup.sh script from the remote server?
What are the permissions of the nagios-tsmbackup.sh script and the nagios_scripts directory?
Code: Select all
ls -lad /home/nagios/nagios_scripts
ls -la /home/nagios/nagios_scripts/nagios-tsmbackup.sh
Run the following commands from the command line on the Nagios XI server, and show the output:
Code: Select all
su nagios
/usr/local/nagios/libexec/check_by_ssh -H <client ip> -C "/home/nagios/nagios_scripts/nagios-tsmbackup.sh"
/usr/local/nagios/libexec/check_by_ssh -H <client ip> -C "/home/nagios/nagios_scripts/nagios-tsmbackup.sh" -v
Re: Issue with TSM monitor
Posted: Fri Mar 16, 2018 3:46 am
by keerthi.seetharaman
Hello Team,
Apologize for the wrong screenshot. Basically the servers are Linux servers and I have corrected the subject also
Please find the screenshot of the command and attached the script of tsmmonitor also.
Please suggest what needs to be done.
Re: Issue with TSM Backup
Posted: Fri Mar 16, 2018 10:14 am
by lmiltchev
Thanks for the update! Let check a few things:
1. Can you run the the tsmmonitor script locally on the remote box as nagios user?
Code: Select all
su nagios
/usr/local/nagios/libexec/tsmmonitor 'dbbkp'
2. Is NRPE running as a "standalone" daemon or under xinetd?
Code: Select all
netstat -nap|grep :5666
cat /etc/xinetd.d/nrpe
3. Have you restarted NRPE/xinetd after adding the "tsmmonitor" command to the nrpe.cfg?
4. Did you add the Nagios XI server's IP to nrpe.cfg file?
Code: Select all
grep 'allowed_hosts=\|dont_blame_nrpe=' /usr/local/nagios/etc/nrpe.cfg
5. Can you pass a different argument to the "tsmmonitor" command successfully? Run the following command on the Nagios XI server, and show the output:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <client ip> -c tsmmonitor -a '-h'
Note: I copied the script to one of my test machines, and can run a check from my XI box against the remote machine just fine:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 192.168.3.30 -c tsmmonitor -a '-V' | cut -d \< -f 1
tsmmonitor version 2.2
Re: Issue with TSM Backup
Posted: Mon Mar 19, 2018 3:17 am
by keerthi.seetharaman
Hello Team,
I have attached the screenshot as suggested from your end.
Please do let us know in case if any more details are required.
Re: Issue with TSM Backup
Posted: Mon Mar 19, 2018 9:06 am
by lmiltchev
NRPE can run as a standalone daemon or under xinted but not both. I suspect, this is what is causing the problem. Try using one or the other to see if this is going to fix your issue.
For example, you can temporarily stop xinetd, restart nrpe, and try your check again. Or you could kill NRPE process, restart xinetd, and rerun the check. If you are going to use NRPE as a standalone daemon, and you need to have xnetd running, you will need to remove the "/etc/xinetd.d/nrpe" config.
Re: Issue with TSM Backup
Posted: Tue Mar 20, 2018 3:58 am
by keerthi.seetharaman
Hello Team,
We have killed the nrpe and restarted the xinetd but still we are unable to complete this check.
Please schedule a webex as it has impacted the whole server as soon as possible.
Re: Issue with TSM Backup
Posted: Tue Mar 20, 2018 4:36 pm
by tgriep
Run this as root on the remote server.
If you see the NRPE agent running as a service kill it off and restart xinetd to load the Agent using xinetd.
I an guessing that there are 2 copies of the agent installed and the one that is used with xinetd will not start as the other copy is still running.
Re: Issue with TSM Backup
Posted: Tue Mar 20, 2018 7:55 pm
by keerthi.seetharaman
Hello Team,
We have already did that and found that only one agent is running on the server.
Can you please schedule a webex session instead of steps as this server is critical one.
Re: Issue with TSM Backup
Posted: Wed Mar 21, 2018 12:10 pm
by tgriep
If you create a ticket, and include the link to this post, we can schedule a remote session with you to resolve the issue.
To create a ticket, you can use the following link.
https://support.nagios.com/tickets/
This URL is a guide on what is needed to create a ticket.
https://support.nagios.com/kb/article/c ... r-769.html