Search found 6 matches
- Fri May 01, 2015 6:21 am
- Forum: Open Source Nagios Projects
- Topic: Pass in varaible to nrpe
- Replies: 1
- Views: 971
Pass in varaible to nrpe
Hi all, I am trying to pass in a variable to an nrpe agent through nagios. I have a nagios server and have defined a global environment variable e.g test_var=Hi I can manually check that this varaible can be called by doing a ./check_nrpe -H 123.456.7.8 -c pass_arg -a $test_var However when I try an...
- Thu Apr 16, 2015 6:18 am
- Forum: Open Source Nagios Projects
- Topic: SSHing with Nagios NRPE
- Replies: 1
- Views: 1311
SSHing with Nagios NRPE
Hi all, Unfortunatly I cannot post in nagios core, so have had to post here. If anybody can move this post that would be great! I currently have two servers. Server A has nagios core on it. Server B has nrpe on it When an alarm is raised e.g a file doesnt exist I disable notifications (http://old.na...
- Wed Jan 07, 2015 9:50 am
- Forum: Open Source Nagios Projects
- Topic: Unable to access /var/log files
- Replies: 6
- Views: 5577
Re: Unable to access /var/log files
Sorry i forgot to edit my original post. Ive been trying all sorts to get it working. The script is located locally on the same box and i can log into the user nrpe/nagios shell and run it (again locally) however on the nagios website/dashboard this does not display the information i was previosulay...
- Wed Jan 07, 2015 6:00 am
- Forum: Open Source Nagios Projects
- Topic: Unable to access /var/log files
- Replies: 6
- Views: 5577
Re: Help with Nagios
Just an update. I can run the script to cat the file when i am logged into nagios (su nrpe -s /bin/bash) however on the webpage this displays nothing to me. Well it displays a '\n' The script I am running consists of: #!/bin/bash echo $(pwd) echo $(whoami) #echo $(hostname) echo $(ls -l /var/log/mes...
- Wed Jan 07, 2015 2:47 am
- Forum: Open Source Nagios Projects
- Topic: Unable to access /var/log files
- Replies: 6
- Views: 5577
Re: Help with Nagios
Hi,
The only edit i added to the /etc/sudoers file was:
nrpe ALL=NOPASSWD: ALL
The only edit i added to the /etc/sudoers file was:
nrpe ALL=NOPASSWD: ALL
- Tue Jan 06, 2015 11:23 am
- Forum: Open Source Nagios Projects
- Topic: Unable to access /var/log files
- Replies: 6
- Views: 5577
Unable to access /var/log files
Hello all (unfortunatly I cannot post in the Nagios core forum - so have had to post here) I am trying to cat a log file held in /var/logs/ e.g /var/log/messages. I appreciate this is likely to be a large file but bare with me! I can create any other file by doing a touch file1 put some random stuff...