Search found 10 matches

by jeswanth
Tue Apr 26, 2016 5:48 pm
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Re: Monitor Cache read hits

Here we go - root@v183:~# cat /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defa...
by jeswanth
Tue Apr 26, 2016 11:47 am
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Re: Monitor Cache read hits

Removed the password for user 'nagios' and added sudo infront of fscli command. I'm able to execute the command locally on the remote system. nagios@v183:/root$ /usr/local/nagios/libexec/check_FSCacheReadsv1.sh Warning! Cache reads are ( % = 56 54 0 0 ) less than 80% But if I execute the command fro...
by jeswanth
Mon Apr 25, 2016 5:48 pm
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Re: Monitor Cache read hits

Here is the output - [root@v121 04:13:55 ~ ]# ls /etc/ | grep xinetd xinetd.d [root@v121 04:15:56 ~ ]# ls /etc/xinetd.d/ nrpe nsca [root@blrfsserv121 04:16:01 ~ ]# cat /etc/xinetd.d/nrpe # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = REUSE socket_type = stre...
by jeswanth
Sun Apr 24, 2016 4:08 am
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Re: Monitor Cache read hits

Thanks lmiltchev! Sorry for the delayed reply! I've tried editing /etc/sudoers with the recommendations provided. Defaults:nagios !requiretty nagios ALL=NOPASSWD: /sbin/fscli * But not sure what would be the default password for user 'nagios'. Ref: https://assets.nagios.com/downloads/nagiosxi/docs/X...
by jeswanth
Thu Apr 21, 2016 3:46 am
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Re: Monitor Cache read hits

Thanks for the inputs Box293! Ran /usr/local/nagios/libexec/check_FSCacheReadsv1.sh with user 'nagios'. The script doesn't work as expected. I'm using fscli commands in the script and that needs root privileges. So, I added nagios ALL=(ALL) ALL in /etc/sudoers on the client system. However, that doe...
by jeswanth
Wed Apr 20, 2016 9:11 pm
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Re: Monitor Cache read hits

I've changed the file ownership to 'nagios' user. Output - root@v183:~# ls -l /usr/local/nagios/libexec/check_FSCacheReadsv1.sh -rwxr-xr-x 1 nagios nagios 601 Apr 20 09:13 /usr/local/nagios/libexec/check_FSCacheReadsv1.sh and then tried executing a command from nagios server. Here is the output - [r...
by jeswanth
Wed Apr 20, 2016 2:14 pm
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Re: Monitor Cache read hits

Thanks for the reply Kennedy! I've defined the command earlier from GUI (Core config manager -> Commands -> $USER1$/check_FSCacheReadsv1.sh and $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_FSCacheReadsv1) and applied the changes. However that doesn't reflect in nrpe.cfg. I've added the command at th...
by jeswanth
Wed Apr 20, 2016 9:30 am
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Re: Monitor Cache read hits

Attaching the screenshot of the script output.

Thanks in advance!!
by jeswanth
Wed Apr 20, 2016 9:21 am
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Re: Monitor Cache read hits

Thanks for the reply lmiltchev!!

I wrote a shell script and trying to deploy as a plugin. I've attached the script to the email

Client machine is Ubuntu server 14.04.
by jeswanth
Wed Apr 20, 2016 2:09 am
Forum: Nagios XI
Topic: Monitor Cache read hits
Replies: 18
Views: 3340

Monitor Cache read hits

Hello, I'm trying to deploy a plugin using doc - https://assets.nagios.com/downloads/nagiosxi/docs/Managing-Plugins-in-Nagios-XI.pdf and getting error: NRPE: Command 'check_FSCacheReadsv1' not defined define service { host_name 10.242.48.183 service_description check_FSCacheReadsv1 display_name chec...