LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-10-2009, 07:32 AM   #1
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Rep: Reputation: 17
Nagios: Check backupexec services on windows server


Hello,

I've got a problem monitoring the backupexec services with Nagios. On the Nagios server i made a new config file containing the following entries for each backupexec service:
Code:
define command{
command_name check_nt_beagent
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v SERVICESTATE -d SHOWALL -l BackupExecAgentBrowser
}
define service{
        use                     generic-service
        host_name               servername
        service_description     Backup-Exec-Agent-Browser
        check_command           check_nt_beagent
        }
After i restarted Nagios, i got 5 critical errors saying the backupexec services could not be found (BackupExecAgentBrowser: Not found).

In order to check the command, i ran /usr/local/nagios/libexec/check_nt -H servername -p 12489 -v SERVICESTATE -d SHOWALL -l BackupExecAgentBrowser from the command prompt and got a message saying the service is started. So it seems the command is okay.

Can anybody tell me why Nagios can not find the backupexec services? Any help will be appreciated.
 
Old 11-10-2009, 07:59 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by TalkingMarble View Post
Hello,

I've got a problem monitoring the backupexec services with Nagios. On the Nagios server i made a new config file containing the following entries for each backupexec service:
Code:
define command{
command_name check_nt_beagent
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v SERVICESTATE -d SHOWALL -l BackupExecAgentBrowser
}
define service{
        use                     generic-service
        host_name               servername
        service_description     Backup-Exec-Agent-Browser
        check_command           check_nt_beagent
        }
After i restarted Nagios, i got 5 critical errors saying the backupexec services could not be found (BackupExecAgentBrowser: Not found).

In order to check the command, i ran /usr/local/nagios/libexec/check_nt -H servername -p 12489 -v SERVICESTATE -d SHOWALL -l BackupExecAgentBrowser from the command prompt and got a message saying the service is started. So it seems the command is okay.

Can anybody tell me why Nagios can not find the backupexec services? Any help will be appreciated.

did you run this command from the command line as the nagios user?
if this works, can y ou also try adding this as the check_command

Code:
check_command           check_nt_beagent!servername
 
Old 11-10-2009, 08:43 AM   #3
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Original Poster
Rep: Reputation: 17
I ran the command at the command line with root priviledges. I just ran the same command as the nagios user and now get a message "name or service not known". It looks like the nagios user has not enough priviledges to execute the command.

Why can the nagios user request status about service like DHCP and W3SVC but not from the backupexec services? Is this because the backupexec service are running under a priviledged account?

Can you tell me what i need to do so i can check the backupexec services?
 
Old 11-10-2009, 09:57 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by TalkingMarble View Post
I ran the command at the command line with root priviledges. I just ran the same command as the nagios user and now get a message "name or service not known". It looks like the nagios user has not enough priviledges to execute the command.

Why can the nagios user request status about service like DHCP and W3SVC but not from the backupexec services? Is this because the backupexec service are running under a priviledged account?

Can you tell me what i need to do so i can check the backupexec services?
I would think so, but hopefully you could tell me this
Also it is best to see the full command you run with the output...copied and pasted is best....
Check the server to see what permisssions backupexec runs under. you can always add the nagios user with the needed permissions....
 
Old 11-11-2009, 02:14 AM   #5
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Original Poster
Rep: Reputation: 17
I checked my command issued with the nagios account, and noticed that i forgot to change the $HOSTADDRESS$ variable to the real name of the backupexec server. I ran the command with the correct hostaddress and noticed it now returns the status of the backupexec service.

/usr/local/nagios/libexec/check_nt -H servername -p 12489 -v SERVICESTATE -d SHOWALL -l BackupExecAgentBrowser
BackupExecAgentBrowser: Started

So afterall it got nothing to do with priviledged. My apologies for any inconvenience caused.

Eventually the problem is solved. All credits go to my colleague who found that check_nt seams to be outdated by check_nrpe.

To make things work do the following:
-on the particular windows servers open the NSC.ini file, uncomment allow_arguments and change its value from 0 to 1.
-use this code in the cfg file for the windows server

Code:
define command{
command_name check_nt_beagent
command_line $USER1$/check_nrpe -H servername -c CheckServiceState -a ShowAll BackupExecAgentBrowser
}

define service{
        use                     generic-service
        host_name               servername
        service_description     Backup-Exec-Agent-Browser
        check_command           check_nt_beagent
        }
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios - check RAM usage on remote server mikeshn Linux - Software 9 08-04-2011 02:44 AM
Nagios 3.1.2 + RHEL 5.3 You don't have permission to access /nagios/ on this server psix Linux - Server 12 05-14-2011 06:26 AM
Windows server monitorig by nagios: The system cannot find the path specified. sarajevo Linux - Software 2 06-06-2009 12:38 AM
Backup Linux with BackupExec for Win Server nanvil Linux - Newbie 2 10-10-2007 05:23 AM
LXer: Keep Tabs on Network Services with Nagios LXer Syndicated Linux News 0 04-29-2006 04:21 PM


All times are GMT -5. The time now is 07:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration