i cant make non-official plugins to work
Re: i cant make non-official plugins to work
I remember i also tried another check_printer script. exactly the same problem.
I have just used the check_snmp plugin and it works. (sort off)
I have just used the check_snmp plugin and it works. (sort off)
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: i cant make non-official plugins to work
What are your permissions on check_snmp?
Re: i cant make non-official plugins to work
-rwxr-xr-x 1 root wheel 138700 Jun 25 13:06 check_snmp
-rwxr-xr-x 1 root wheel 32647 Sep 26 09:58 check_snmp_printer
I hope i am not asking a very stupid question but i can't edit check_snmp it's unreadable, is this supposed to be like this?
check_snmp_printer is readable in clean text
-rwxr-xr-x 1 root wheel 32647 Sep 26 09:58 check_snmp_printer
I hope i am not asking a very stupid question but i can't edit check_snmp it's unreadable, is this supposed to be like this?
check_snmp_printer is readable in clean text
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: i cant make non-official plugins to work
check_snmp is a binary file, and would not be readable via a normal editor. You would actually want to look at the source code it was compiled from. The other is likely a perl or some other script. As for your permissions, they normally should be owned by both the nagios user and group. Do you know if there is a reason this is not the case? You can try: To try and get them running properly. I realize they have everyone read and execute, but that is less than ideal.
Code: Select all
chmod nagios:nagios /path/to/pluginNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: i cant make non-official plugins to work
Sorry for this late reaction.
Before i did anything (chmod) it reads: -rwxr-xr-x 1 root wheel 32647 Sep 26 09:58 check_snmp_printer
root wheel should be nagios nagios right?
Before i did anything (chmod) it reads: -rwxr-xr-x 1 root wheel 32647 Sep 26 09:58 check_snmp_printer
root wheel should be nagios nagios right?
Re: i cant make non-official plugins to work
Correct.root wheel should be nagios nagios right?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: i cant make non-official plugins to work
I changed it to nagios nagios
Still the plugin may be missing 127 error.
Still the plugin may be missing 127 error.
Re: i cant make non-official plugins to work
What is the output of:
Code: Select all
grep USER1 /usr/local/nagios/etc/resource.cfgFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: i cant make non-official plugins to work
Code: Select all
# Nagios supports up to 32 $USERx$ macros ($USER1$ through $USER32$)
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/libexecIs this normal? i have the feeling i did something wrong or i forgot something
Re: i cant make non-official plugins to work
What is the listing of:
Code: Select all
ls -la /usr/local/libexecHow did you install nagios? (source, repo, etc)Sander5 wrote: Is this normal? i have the feeling i did something wrong or i forgot something
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.