Issue with TSM Backup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
keerthi.seetharaman
Posts: 92
Joined: Thu Jan 11, 2018 7:55 am

Issue with TSM Backup

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
Keerthi Prashanth Seetharaman
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with TSM Backup

Post 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
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 monitor

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
Keerthi Prashanth Seetharaman
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with TSM Backup

Post 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
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

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
Keerthi Prashanth Seetharaman
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with TSM Backup

Post 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.
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

Post 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.
Thanks & Regards,
Keerthi Prashanth Seetharaman
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue with TSM Backup

Post by tgriep »

Run this as root on the remote server.

Code: Select all

ps -ef |grep nrpe
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.
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

Post 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.
Thanks & Regards,
Keerthi Prashanth Seetharaman
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue with TSM Backup

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked