Issue with TSM Backup
-
keerthi.seetharaman
- Posts: 92
- Joined: Thu Jan 11, 2018 7:55 am
Issue with TSM Backup
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.
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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
Keerthi Prashanth Seetharaman
Keerthi Prashanth Seetharaman
Re: Issue with TSM Backup
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?
Run the following commands from the command line on the Nagios XI server, and show the output:
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.shCode: 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" -vBe sure to check out our Knowledgebase for helpful articles and solutions!
-
keerthi.seetharaman
- Posts: 92
- Joined: Thu Jan 11, 2018 7:55 am
Re: Issue with TSM monitor
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.
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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
Keerthi Prashanth Seetharaman
Keerthi Prashanth Seetharaman
Re: Issue with TSM Backup
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?
2. Is NRPE running as a "standalone" daemon or under xinetd?
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?
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:
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:
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'Code: Select all
netstat -nap|grep :5666
cat /etc/xinetd.d/nrpe
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.cfgCode: Select all
/usr/local/nagios/libexec/check_nrpe -H <client ip> -c tsmmonitor -a '-h'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.2Be sure to check out our Knowledgebase for helpful articles and solutions!
-
keerthi.seetharaman
- Posts: 92
- Joined: Thu Jan 11, 2018 7:55 am
Re: Issue with TSM Backup
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.
I have attached the screenshot as suggested from your end.
Please do let us know in case if any more details are required.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
Keerthi Prashanth Seetharaman
Keerthi Prashanth Seetharaman
Re: Issue with TSM Backup
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
keerthi.seetharaman
- Posts: 92
- Joined: Thu Jan 11, 2018 7:55 am
Re: Issue with TSM Backup
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.
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.
Thanks & Regards,
Keerthi Prashanth Seetharaman
Keerthi Prashanth Seetharaman
Re: Issue with TSM Backup
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.
Code: Select all
ps -ef |grep nrpeI 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
keerthi.seetharaman
- Posts: 92
- Joined: Thu Jan 11, 2018 7:55 am
Re: Issue with TSM Backup
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.
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.
Thanks & Regards,
Keerthi Prashanth Seetharaman
Keerthi Prashanth Seetharaman
Re: Issue with TSM Backup
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
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
Be sure to check out our Knowledgebase for helpful articles and solutions!